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 237716 - “Maximize use of native look and feel” disables file chooser UI
Summary: “Maximize use of native look and feel” disables file chooser UI
Status: REOPENED
Alias: None
Product: contrib
Classification: Unclassified
Component: Quick Filechooser (show other bugs)
Version: 7.3.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks: 82821
  Show dependency tree
 
Reported: 2013-10-28 13:37 UTC by eliademoga
Modified: 2013-10-30 15:07 UTC (History)
1 user (show)

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 eliademoga 2013-10-28 13:37:48 UTC
Steps:
- installed Netbeans 7.3.1;
- installed plugin.

Result:
- it works for the "Open Project..." dialog window;
- it doesn't work for the "Open file..." dialog window.

OS:

Linux xxxxxxx-xxxxxx 3.5.0-42-generic #65~precise1-Ubuntu SMP Wed Oct 2 20:57:18 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Java

java version "1.7.0_25"
OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.12.04.2)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

Thank you
Comment 1 Jesse Glick 2013-10-28 16:06:45 UTC
Try restarting NetBeans, perhaps. Works for me in File » Open and has worked for years. Anyway you would need to be more specific about what “doesn't work”. Also check NetBeans 7.4 (not that it should matter).
Comment 2 eliademoga 2013-10-29 07:28:06 UTC
Hello Jesse,

I've been using Netbeans 7.1.2 for a while now and the File » Open worked perfectly with the plugin. Btw: I stuck with 7.1.2 exactly for this reason (it didn't work for me on NB 7.2 either).

Then I switched recently to Netbeans 7.3.1 and I realized that the File » Open window is the same with the plugin as without it and I have no idea on how to switch between the two layouts. There is no switch button as it was in Netbeans 7.1.2. Is there any other way to switch to the quick file chooser layout for the box?

Note: I have switched to 7.3.1 having 7.1.2 already installed and imported all the config and projects from it. Then I saw that the Open file dialog is not shown as expected. I uninstalled and re-installed the plugin, re-installed NB 7.3.1, but with no good result. After that, I uninstalled both NB 7.1.2 and NB 7.3.1 (erased all their configuration and cache -> maybe I forgot something?) and installed NB 7.3.1 and the plugin with the same result as before.

I don't know what to do. I would really like to use the plugin.
Any idea?

Thanks
Comment 3 Jesse Glick 2013-10-29 15:26:21 UTC
You should not need to do anything special; just enabling the plugin (in any version of NetBeans) should suffice for File » Open to use the alternate UI. Works fine when I try it on a fresh 7.3.1 installation using a fresh user directory.

My immediate suspicion is a bug in IcedTea. Have you tried with the Oracle JDK?

Where are you getting the plugin from—preconfigured Plugin Portal update center, manual download, etc.? What version is shown as installed in Tools » Plugins—2.18?

Does your log file show any warnings mentioning this plugin?

Do you have any other plugins enabled which do special things with Swing, like install alternate UIs? Do you switch to a special Look & Feel (--laf)?
Comment 4 eliademoga 2013-10-30 07:14:01 UTC
Found it.

I have previously checked the "Maximize use of native look an feel" checkbox. I had no idea that it would override the layout for the Open file dialog window.

I unchecked the box and it's back to normal.
Thank you very much for your answer.

Best regards,
Cristian
Comment 5 Jesse Glick 2013-10-30 13:37:00 UTC
Never even heard of such a checkbox. Under Tools » Options » Miscellaneous » Windows I guess. Affects WindowManagerImpl.toggleUseNativeFileChooser and thus ${nb.native.filechooser}. Oddly, some places such as OpenProject.show check

  Boolean.getBoolean("nb.native.filechooser") && Utilities.isMac()

whereas others such as OpenFileAction.actionPerformed check only

  Boolean.getBoolean("nb.native.filechooser")

which would explain the difference in behavior between File » Open Project and File » Open File on Linux. @saubrecht what is the purpose of this checkbox, why is it used in some places only on Macs and in others on all platforms, and why does it have such a generic and mysterious label when apparently what it changes is specifically file choosers?
Comment 6 Stanislav Aubrecht 2013-10-30 15:07:24 UTC
(In reply to Jesse Glick from comment #5)
> and File » Open File on Linux. @saubrecht what is the purpose of this
> checkbox,
To allow native file chooser on Mac OS X
> why is it used in some places only on Macs and in others on all
> platforms, 
Looks like a bug
> and why does it have such a generic and mysterious label when
> apparently what it changes is specifically file choosers?
Don't remember any more, probably recommended wording from our former HIE team