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 14:00:32 GMT

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

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

Alexey,

You are right: the defaults aren't specified.

But there is no difference between  defaults in 1.4.2 and 1.5 (I've verified this) and the
defaults are widely used in swing.
I think we should create our own HarmonyLookAndFeel (and use it as default maybe) but metal
one should looks like bar of metal.

> [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-4798-test-fix.patch, HARMONY-4798.patch, 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