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.
Summary: | Wrong Browse/Add Jar Dialog Box Shows | ||
---|---|---|---|
Product: | platform | Reporter: | MackSix |
Component: | Directory Chooser | Assignee: | Ondrej Vrabec <ovrabec> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | mmirilovic, vriha |
Priority: | P3 | ||
Version: | 7.2 | ||
Hardware: | PC | ||
OS: | Windows Vista | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 216099 | ||
Bug Blocks: | |||
Attachments: |
Screenshot
Screenshot Screenshot log file Startup XML, NPSS, LOG, Screenshots screenshot with damaged Home button |
Created attachment 118293 [details]
Screenshot
Created attachment 118294 [details]
Screenshot
Product Version: NetBeans IDE Dev (Build 201204150400) Java: 1.7.0_03; Java HotSpot(TM) Client VM 22.1-b02 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb) cannot reproduce in: Product Version: NetBeans IDE Dev (Build 20120416-b588a93c890c) Java: 1.7.0_03; Java HotSpot(TM) Client VM 22.1-b02 System: Windows 7 version 6.1 running on x86; Cp1250; en_US (nb) Next time you see this error, please attach messages.log. There might be some exceptions or warnings related to this problem... Created attachment 118364 [details]
log file
It happened after installing:
Product Version: NetBeans IDE Dev (Build 201204160400)
Java: 1.7.0_03; Java HotSpot(TM) Client VM 22.1-b02
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Here is the log file.
This was on the second restart and I had opened a couple of project forms in the GUI editor and was previewing them with different look & feel from the context menu in Navigator. It may have something to do with that, not sure. Will try to reproduce. I restarted Netbeans and the dialog boxes are back to normal.
Thanks for the log, it doesn't contain anything interesting though... (In reply to comment #6) > Thanks for the log, it doesn't contain anything interesting though... I think this is happening on startup in every case. Would the startup XML and CLI Timeline be any help? I don't know anything about them, but I learned to generate them. I had this bug happen while generating them. See attached Zip with those files and the corresponding messages.log file. Created attachment 118391 [details]
Startup XML, NPSS, LOG, Screenshots
This is interesting, If I create the NPSS snapshot and generate the starup XML, his is repeatable each time I use these steps: 1.) Start NetBeans and open a project with a JFrame form and open it up in the Editor in design mode. 2.) Shutdown NetBeans while project and JFrame form is still open. 3.) Make sure you have the Welcome tab open in the Editor so that is shows on next startup. 3.) Setup NetBeans to create NPSS snapshot using these instructions http://wiki.netbeans.org/FitnessViaCLITimeLine 4.) Start NetBeans with -J-Dorg.netbeans.log.startup=xml and -J-Dorg.netbeans.log.startup.logfile=filename to generate startup XML. 5.) As soon as you can see "File" on menu, immediately click on it with mouse and move mouse button down the menu and back up. 6.) Then click on the tab with JFrame form and bring it in focus. Wait until the Design shows. 7.) Click on File>>Open File and the "Open" dialog box will show Metal Look & Feel and extra toolbar icons. This is repeatable using the steps described. (In reply to comment #10) > This is repeatable using the steps described. Fine, but it's still a cosmetic issue, so P4 These File browser dialog boxes now show Metallic L&F full times without doing anything special to coax it to happen. Product Version: NetBeans IDE Dev (Build 201205060400) Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb) (In reply to comment #12) > These File browser dialog boxes now show Metallic L&F full times without doing > anything special to coax it to happen. > Does it happen also with a clean user dir? (In reply to comment #13) > (In reply to comment #12) > > These File browser dialog boxes now show Metallic L&F full times without doing > > anything special to coax it to happen. > > > Does it happen also with a clean user dir? I deleted the user dir and cache and restarted and it did not do it. I opened a small Java SE project and then closed NetBeans. I restarted it and the File>>Open File dialog shows Metal L&F Can you attach that project here? Does it contain any GUI forms? If so, can you reproduce the problem while having only Java source files opened? (In reply to comment #15) > Can you attach that project here? Does it contain any GUI forms? If so, can you > reproduce the problem while having only Java source files opened? It has nothing to do with opening the project. I deleted the user dir again and it momentarily fixed it and on restart it went back to Metal L&F and I did not open any files. *** Bug 212506 has been marked as a duplicate of this bug. *** I don't think it is related to java project, as described in issue #212506, it happens with PHP settings as well Just for information, sometimes the Home button in the Dialog is not "rendered" correctly, there is no icon and it is extremely small (guess 1/4 in compared to other buttons) Created attachment 120775 [details]
screenshot with damaged Home button
(In reply to comment #19) > Just for information, sometimes the Home button in the Dialog is not "rendered" > correctly, there is no icon and it is extremely small (guess 1/4 in compared to > other buttons) Yep, I see the button missing most of the time, but only when the dialog is rendered in the wrong L&F. This is regression, not sure why it was put at P4, it ought to be P1 and fixed for 7.2. Standa, do we know the reason ? ... or root cause of this issue ? Looks like a bug in DirChooser - during startup the dirchooser initializes UIManager defaults and asks for FileChooser UI class. In some cases the defaults are initialized to MetalFileChooserUI. This is most likely happening when the dir chooser module is initialized before the correct look&feel is set. Could we somehow postpone initialization or set L&F sooner ? hopefully fixed. btw i think it's a side-effect of #c08ac834bf6a Thanks a lot for the fix, I'll verify it tomorrow Integrated into 'main-golden', will be available in build *201206150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/2bb3c590df06 User: Ondrej Vrabec <ovrabec@netbeans.org> Log: #211215 - Wrong Browse/Add Jar Dialog Box Shows waiting for window system to load before changing the chooser UI I'm no longer able to reproduce, verified Product Version: NetBeans IDE Dev (Build 201206150001) Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21 System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb) |
Created attachment 118292 [details] Screenshot I have noticed that sometimes the wrong Browse/Add Jar dialog box is shown. The dialog box is in at least 3 different locations with 3 different names. It will show the Metal Look & Feel folder icons and have 2 extra buttons (Desktop & Details). All the toolbar buttons have different icons on them. Not sure how to reproduce it, although it was soon after a new installation of NetBeans. See Attached Screenshots.