I'm using the seaglass look and feel in my application. How do I set the height for a JButton? It seems like there is no way to have a custom height. I took a look at the documentation: http://seaglass.googlecode.com/svn/doc/client-properties.html and I tought I had to use JComponent.sizeVariant = scale to solve the problem, but it doesn't work. How can I solve this?
Thanks trashgod, I tried this:
try {
UIManager.setLookAndFeel("com.seaglasslookandfeel.SeaGlassLookAndFeel");
} catch(Exception e) {
e.printStackTrace();
}
JButton button = new JButton("Test");
button.putClientProperty("JComponent.sizeVariant", "scale");
JPanel panel = new JPanel(new BorderLayout());
panel.add(button);
panel.setPreferredSize(new Dimension(500, 400));
JFrame frame = new JFrame();
frame.setContentPane(panel);
frame.pack();
frame.setVisible(true);
but doesn't seem to work either. Thanks anyway for your effort.