Skip to main content

Java 1.7: MetalLookAndFeel - (some) components too small

2 replies [Last post]
tsinger
Offline
Joined: 2003-06-10
Points: 0

When running following code sample

	public static void main(String[] args) {<br />
		SwingUtilities.invokeLater(new Runnable() {<br />
			public void run() {<br />
				try {<br />
					UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());<br />
				}<br />
				catch (Exception e) {<br />
					e.printStackTrace();<br />
				}</p>
<p>				final JPanel panel = new JPanel();<br />
				panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));<br />
				panel.add(new JLabel("Query"));<br />
				panel.add(new JCheckBox("Never"));<br />
				panel.add(new JRadioButton("Off"));</p>
<p>				final JFrame frame = new JFrame("Components-too-small-Test");<br />
				frame.setContentPane(panel);<br />
				frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);<br />
				frame.pack();<br />
				frame.setVisible(true);<br />
			}<br />
		});<br />
	}

on Java 1.7.0-ea-b52 (Windows Vista Business 32-bit, cleartype antialiasing enabled), all components are too small and their text not (fully) visible. Is this a known issue?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tsinger
Offline
Joined: 2003-06-10
Points: 0

Do other users also can reproduce this problem?

alexfromsun
Offline
Joined: 2005-09-05
Points: 0

Hello Tsinger

Yes, this is a known issue -

6797139

Thanks

alexp