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.
Step to reproduce: 1. Open the formatting options and go to Java -> Imports 2. Select "Use Single class Import". 3. Click the button "Add" that allow to define a Package that have to use star import. 4. In the JTable containing the list of the packages that have to use star import is correctly added an empty entry with a checkbox. Write "java" on this line. 5. Click on the "Apply" button to save the change. Problem. The change is correctly saved but the JTable entry that has been just inserted is not shown anymore.
Similar issue in the next table (Import Layout) Try to add a package and then rearrange with move up and move down buttons. Product Version: NetBeans IDE Dev (Build 201508160002) Java: 1.8.0_60-ea; Java HotSpot(TM) 64-Bit Server VM 25.60-b23 Runtime: Java(TM) SE Runtime Environment 1.8.0_60-ea-b25 System: Windows 7 version 6.1 running on amd64; Cp1252; en_IE (nb)
Build: 201508230002 I think it is a painting problem. Closing and opening the Options Dialog shows the entries.
I can reproduce this problem only if the change in the table was not confirmed by enter. E.g. I've just typed java.io and pushed 'Apply' without pressing enter.
As described the JTable table is not shown anymore. But I find if you do this 1.Open the formatting options and go to Java -> Imports 2. Select "Use Single class Import". 3. Click the button "Add" that allow to define a Package that have to use star import. 4. In the JTable containing the list of the packages that have to use star import is correctly added an empty entry with a checkbox. Write "java" on this line. 5. Click "Apply" and the entry disappears. 6. Repeat steps 1 to 4 again 7. DO NOT click "Apply" but un-tick the check box on the java entry. 8. Now click apply and the java entry is still inserted. 9. Now tick the check box and click "Apply" 10. The entry is still viewable. 11 Click "OK" and then open up Java -> Imports again and the java entry with the check box is still viewable. The problem may be with the check box code.