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 12811 - Wrong indentation, after set Icon from URL
Summary: Wrong indentation, after set Icon from URL
Status: CLOSED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P4 blocker (vote)
Assignee: Tomas Pavek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-06-13 13:25 UTC by Marian Mirilovic
Modified: 2003-06-30 18:28 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 Marian Mirilovic 2001-06-13 13:25:23 UTC
[nb_dev](209),[jdk1.3.1](rc1)

Wrong indentation if you set (JCheckBox-Icon) icon as URL, next lines are
indented wrong :

-------%<---------

        jCheckBox1.setBackground(new java.awt.Color (153, 153,
204));                     
        jCheckBox1.setRolloverIcon(new javax.swing.JLabel()
{                             
            public javax.swing.Icon getIcon()
{                                           
                try
{                                                                     
                    return new
javax.swing.ImageIcon(                                     
                        new
java.net.URL("http://www.netbeans.org/rollover.gif")          
                   
);                                                                    
                } catch (java.net.MalformedURLException e)
{                              
               
}                                                                         
                return
null;                                                              
           
}                                                                             
       
}.getIcon());                                                                     
    jCheckBox1.setIcon(new javax.swing.ImageIcon("/home/icon.gif"));      
   
jCheckBox1.setAlignmentY(0.4F);                                                       
   
jCheckBox1.setAlignmentX(0.3F);                                                       
  
----------%<--------------
Comment 1 Tomas Pavek 2001-06-19 17:49:34 UTC
Fixed.
Comment 2 Marian Mirilovic 2001-06-20 08:42:54 UTC
verified in [nb_dev](20010620)
Comment 3 Quality Engineering 2003-06-30 18:28:52 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.