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 11:34:35 GMT

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

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

Swing has pluggable Look&Feel mechanism. Users can change them.

I believe we can't copy RI colors and look, however we must adhere to their feel.

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