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 40995 - [JDK1.5.0] Browse button doesn't invoke JFileChooser
Summary: [JDK1.5.0] Browse button doesn't invoke JFileChooser
Status: VERIFIED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC All
: P2 blocker (vote)
Assignee: issues@installer
URL:
Keywords: JDK_SPECIFIC
: 41179 46691 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-15 09:35 UTC by dmladek
Modified: 2004-08-12 23:46 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 dmladek 2004-03-15 09:35:32 UTC
RH9, NetBeansIDE-release36-200403141830 and java
version "1.5.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition
(build 1.5.0-beta2-b41)
Java HotSpot(TM) Client VM (build 1.5.0-beta2-b41,
mixed mode)
====================================================

On my RH9 linux I have more jdks installed. One of
them is jdk1.5 beta. Even though I don't have it
set as my default (by $JAVA_HOME, etc. variable),
the installer starts using this jdk1.5.
when I wish to browse to to the different NB
install dir. No JFileChooser appeared:-(

IMHO, this is more jdk1.5 bug... but if you could
check it, please. Thanks
Comment 1 Jaromir Uhrik 2004-03-16 09:58:06 UTC
The problem is on Win2K too --> "All" platform
Comment 2 zikmund 2004-03-16 10:03:48 UTC
Seems to be a problem of JDK 1.5 or problem of parent window setting
-- see issue #39322.

George, can you please investigate, if it is NetBeans installer bug or
JDK bug? Thanks.
Comment 3 George Hernandez 2004-03-18 16:42:06 UTC
Looks like the jdk is throwing an exception, so I'll need to file a bug:
(Mar 18, 2004 8:30:15 AM), Setup.product.install,
com.sun.installer.JDKSelection
Panel, dbg, ===> Action Performed(), instnce of.
java.lang.ClassCastException: java.lang.Integer
   at javax.swing.plaf.basic.BasicFileChooserUI.getMnemonic(Unknown
Source)

   at javax.swing.plaf.basic.BasicFileChooserUI.installStrings(Unknown
Source)
   at
com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installStrings(U
nknown Source)
   at
javax.swing.plaf.basic.BasicFileChooserUI.installDefaults(Unknown Source)
   at javax.swing.plaf.basic.BasicFileChooserUI.installUI(UnknownSource)
   at
com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installUI(Unknow
n Source)
   at javax.swing.JComponent.setUI(Unknown Source)
   at javax.swing.JFileChooser.updateUI(Unknown Source)
   at javax.swing.JFileChooser.setup(Unknown Source)
   at javax.swing.JFileChooser.<init>(Unknown Source)
   at javax.swing.JFileChooser.<init>(Unknown Source)
   at
com.sun.installer.JDKSelectionPanel.actionPerformed(JDKSelectionPanel.java:290)
   at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
   at javax.swing.AbstractButton$Handler.actionPerformed(UnknownSource)
   at javax.swing.DefaultButtonModel.fireActionPerformed(UnknownSource)
   at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
   at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
Source)
   at java.awt.Component.processMouseEvent(Unknown Source)
   at javax.swing.JComponent.processMouseEvent(Unknown Source)
   at java.awt.Component.processEvent(Unknown Source)
   at java.awt.Container.processEvent(Unknown Source)
   at java.awt.Component.dispatchEventImpl(Unknown Source)
   at java.awt.Container.dispatchEventImpl(Unknown Source)
   at java.awt.Component.dispatchEvent(Unknown Source)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
   at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
   at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
   at java.awt.Container.dispatchEventImpl(Unknown Source)
   at java.awt.Component.dispatchEvent(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForHierarchy(UnknownSource)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(UnknownSource)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.run(Unknown Source)
Wizard.getExitCode(): called after WizardServices is shutdown.
Wizard.getExitCode(): called after WizardServices is shutdown.
Comment 4 zikmund 2004-03-22 09:14:56 UTC
*** Issue 41179 has been marked as a duplicate of this issue. ***
Comment 5 zikmund 2004-05-28 13:00:27 UTC
Increasing priority to P2 since JDK 1.5.0 is our target JDK.
Comment 6 Vladimir Hudec 2004-06-08 12:28:17 UTC
This is due to the BasicFileChooserUI inconsistency 
between JDK 1.4 and JDK 1.5

JDK bug has been submitted (5059770)
Comment 7 Vladimir Hudec 2004-06-08 19:27:20 UTC
Provided workaround in the code. It should work in the next build.
Comment 8 zikmund 2004-06-10 13:06:08 UTC
Verified.
Good job Vlado, thanks.
Comment 9 zikmund 2004-07-29 17:45:50 UTC
*** Issue 46691 has been marked as a duplicate of this issue. ***
Comment 10 ssoong 2004-08-12 23:39:42 UTC
WRT to comments posted at Issue 46691,
JDK 1.5.0 beta 3? ?

At http://java.sun.com/j2se/index.jsp, the latest sun is offering is 
only beta 2. Anyone of you could lend me an insider connection to get 
beta3 latest?

I downloaded the latest nb build netbeans-4_0-daily-bin-200408111800-
windows-11_Aug_2004_1800. Browse button still doesn't work with my 
JDK 1.5.0 beata 2.
Comment 11 _ ttran 2004-08-12 23:46:10 UTC
try Tiger build 59 

http://java.sun.com/j2se/1.5.0/snapshots/