Menu

#45 Straight line as buttonborder

open
5
2006-05-24
2006-05-24
Anonymous
No

JFrame jf = new JFrame();
JButton jb = new JButton("a button");
//jb.setBorder(BorderFactory.createTitledBorder(""));
jf.getContentPane().add(jb);
jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
jf.pack();
jf.setVisible(true);

without the setborder the Napkin LAF shows straight
lines for this button!

with the setborder everything seems allright

Discussion


Log in to post a comment.

MongoDB Logo MongoDB