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 254444 - [81cat] Wrong behavior of "Packages To Use Star Import" JTable
Summary: [81cat] Wrong behavior of "Packages To Use Star Import" JTable
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 8.1
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-17 15:08 UTC by -Silver-
Modified: 2015-08-31 17:49 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 -Silver- 2015-08-17 15:08:10 UTC
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.
Comment 1 -Silver- 2015-08-18 09:24:41 UTC
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)
Comment 2 manikantannaren 2015-08-24 06:59:14 UTC
Build: 201508230002

I think it is a painting problem. Closing and opening the Options Dialog shows the entries.
Comment 3 Jiri Prox 2015-08-24 14:00:41 UTC
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.
Comment 4 Baxam 2015-08-31 17:49:32 UTC
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.