harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Irlyanov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-4798) [classlib][swing] JButton looks very different from RI's
Date Fri, 14 Sep 2007 12:13:32 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-4798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12527482
] 

Dmitry Irlyanov commented on HARMONY-4798:
------------------------------------------

I think we can copy the look because the represented example is specified Metal look and feel
and some of the swing applications use extenshion of Metal one (instead of more correct -
BasicLookAndFeel) and they are right because this look and feel is the full-fledged part of
j2se with all it's default values (Colors, fonts, font sizes) and look. Maybe the combination
of gradients can differs, but the color is the competent default value

> [classlib][swing] JButton looks very different from RI's
> --------------------------------------------------------
>
>                 Key: HARMONY-4798
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4798
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Andrey Pavlenko
>         Attachments: Harmony.PNG, RI.PNG
>
>
> There are many differences with RI's implementation of JButton: colors, gradient, focus
painting, rollover painting. The following code demonstrates the issue:
> import javax.swing.JButton;
> import javax.swing.JFrame;
> import javax.swing.WindowConstants;
> public class Test {
> 	public static void main(String[] args) throws Exception {
> 		final JFrame f = new JFrame();
> 		final JButton b1 = new JButton("B1");
> 		final JButton b2 = new JButton("B2");
> 		final JButton b3 = new JButton();
> 		f.add(b1, "West");
> 		f.add(b2, "East");
> 		f.add(b3, "Center");
> 		f.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
> 		f.setSize(300, 300);
> 		f.setVisible(true);
> 	}
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message