harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Pavlenko (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-4798) [classlib][swing] JButton looks very different from RI's
Date Fri, 14 Sep 2007 11:28:32 GMT
[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


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