This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When using TitledBorder with some other Border, the new() for internal border is generated on the new line with the same indentation level. Example: jButton1.setBorder (new javax.swing.border.TitledBorder( new javax.swing.border.MatteBorder(3, 3, 3, 3, java.awt.Color.pink), "Title")); Exam2: jButton1 = new javax.swing.JButton (); jButton1.setBorder (new javax.swing.border.TitledBorder( new javax.swing.border.MatteBorder(1, 1, 1, 1, new javax.swing.ImageIcon (getClass ().getResource ("/tutorial/colorpicker/ColorPreview.gif"))), "Title")); jButton1.setText ("jButton1");
Priority is changed to P4 (normal).