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.

Bug 3480 - Wrong indentation in generated code for borders
Summary: Wrong indentation in generated code for borders
Status: CLOSED INVALID
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: Petr Nejedly
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-08-18 22:38 UTC by Petr Nejedly
Modified: 2002-07-19 15:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Nejedly 1999-08-18 22:38:57 UTC
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");
Comment 1 Marek Grummich 2000-07-25 09:41:59 UTC
Priority is changed to P4 (normal).