harmony-commits mailing list archives

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

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

Alexey A. Ivanov commented on HARMONY-4798:
-------------------------------------------

Dmitry,

Could you give a link where colors, font, font sizes and other things are specified?

Harmony implements Metal but it just looks differently. Compare L&F of 1.4.2 and 1.5.

In contrast, I am for different look of Harmony so that anyone could instantly say "Hey, it's
Harmony". But it implies that Metal L&F of Harmony should look good!


P.S. I don't consider this issue a bug. I guess it's better to start a discussion of this
issue on the dev list.

> [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