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 87071 - Switching between windows system look and feel causes netbeans crash
Summary: Switching between windows system look and feel causes netbeans crash
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
: 86662 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-10-13 09:54 UTC by Jana Maleckova
Modified: 2009-11-02 11:04 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
87071 (2.72 KB, text/plain)
2006-10-13 09:55 UTC, Jana Maleckova
Details
StackTrace 2 (1.23 KB, text/plain)
2006-10-30 13:06 UTC, Jana Maleckova
Details
screenshot (40.25 KB, application/octet-stream)
2006-11-06 14:25 UTC, Jana Maleckova
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jana Maleckova 2006-10-13 09:54:29 UTC
NetBeans IDE Dev (Build 200610121800)
1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b99
Windows XP version 5.1 running on x86
cs_CZ (nb); Cp1250

Description:
============
1. be sure your windows system appearance is set in section "Windows and
buttons" on windows XP style
2. start your IDE with clear userdir
3. create new application with new jFrame and insert in it e.g. jbutton. Let
focus on this button
4.switch windows appearance to Windows Classic Syle
5. After that IDE has problems to recover itselfs and exception occures.
Then it's not possible to continue working with IDE because everywhere you
click, new exception releases.

Stack Trace:
============
java.lang.NullPointerException
	at
com.sun.java.swing.plaf.windows.WindowsComboBoxUI$XPComboBoxButton.getState(WindowsComboBoxUI.java:404)
	at
com.sun.java.swing.plaf.windows.XPStyle$GlyphButton.paintComponent(XPStyle.java:709)
	at javax.swing.JComponent.paint(JComponent.java:1022)
	at javax.swing.JComponent.paintChildren(JComponent.java:859)
	at
org.openide.explorer.propertysheet.ComboInplaceEditor.paintChildren(ComboInplaceEditor.java:487)
	at javax.swing.JComponent.paint(JComponent.java:1031)
Comment 1 Jana Maleckova 2006-10-13 09:55:34 UTC
Created attachment 35186 [details]
87071
Comment 2 Stanislav Aubrecht 2006-10-13 10:24:07 UTC
i don't think that changing look and feel at run time is supported
Comment 3 Marian Mirilovic 2006-10-13 12:39:38 UTC
Me neither ...
Comment 4 Stanislav Aubrecht 2006-10-18 08:24:04 UTC
*** Issue 86662 has been marked as a duplicate of this issue. ***
Comment 5 Stanislav Aubrecht 2006-10-19 11:03:47 UTC
fixed in trunk

Checking in InplaceEditorFactory.java;
/cvs/openide/explorer/src/org/openide/explorer/propertysheet/InplaceEditorFactory.java,v
 <--  InplaceEditorFactory.java
new revision: 1.5; previous revision: 1.4
done
Checking in RendererFactory.java;
/cvs/openide/explorer/src/org/openide/explorer/propertysheet/RendererFactory.java,v
 <--  RendererFactory.java
new revision: 1.8; previous revision: 1.7
done
Comment 6 Jana Maleckova 2006-10-30 13:05:22 UTC
NetBeans IDE Dev (Build 200610261800)
1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b99
Windows XP version 5.1 running on x86
cs_CZ (nb); Cp1250

NPE occured again but according to different steps.

1. be sure your windows system appearance is set in section "Windows and
buttons" on Windows Classic Style
2. the same as before
3. switch windows appearance to Windows XP Syle
4. try to build the application (ctrl-F11) then exception occured

another note is that everything seems to be switched in new apperance correctly
but just palette remains in Classic Style :(
Stack Trace:
===========
java.lang.NullPointerException
	at
com.sun.java.swing.plaf.windows.WindowsProgressBarUI.getBox(WindowsProgressBarUI.java:250)
	at
javax.swing.plaf.basic.BasicProgressBarUI.setAnimationIndex(BasicProgressBarUI.java:924)
	at
com.sun.java.swing.plaf.windows.WindowsProgressBarUI.setAnimationIndex(WindowsProgressBarUI.java:190)
	at
javax.swing.plaf.basic.BasicProgressBarUI.incrementAnimationIndex(BasicProgressBarUI.java:982)
Comment 7 Jana Maleckova 2006-10-30 13:06:30 UTC
Created attachment 35629 [details]
StackTrace 2
Comment 8 Stanislav Aubrecht 2006-10-30 14:04:07 UTC
cc'ing progress module owner
Comment 9 Stanislav Aubrecht 2006-10-30 16:18:45 UTC
fixed problems in the common palette

Checking in PalettePanel.java;
/cvs/core/palette/src/org/netbeans/modules/palette/ui/PalettePanel.java,v  <-- 
PalettePanel.java
new revision: 1.19; previous revision: 1.18
done
Checking in CategoryList.java;
/cvs/core/palette/src/org/netbeans/modules/palette/ui/CategoryList.java,v  <-- 
CategoryList.java
new revision: 1.15; previous revision: 1.14
done
Comment 10 Milos Kleint 2006-11-02 07:24:14 UTC
made sure there are no cached components without a parent. issue is fixed now?

Checking in
progressui/src/org/netbeans/modules/progress/ui/StatusLineComponent.java;
/cvs/core/progressui/src/org/netbeans/modules/progress/ui/StatusLineComponent.java,v
 <--  StatusLineComponent.java
new revision: 1.6; previous revision: 1.5
Comment 11 Jana Maleckova 2006-11-06 14:20:13 UTC
Issue seems to be fixed. No exceptions occure and common palette's look and feel
 adapts new configuration.

there is another issue which is connected with changing system appearance,
exactly windows XP style is not fully switched to Classic Style and vice versa.
Mainly colors of tabs are not correct. See screenshot in attachment. 

But in my opinion, this issue is not essential, so I decrease priority to number
4. Also I am not sure if this problem is a part of bug solved before. But for
now, I reopen this issue again. If you don't agree, there is no problem to set
issue as   verified and create new one. 
Comment 12 Jana Maleckova 2006-11-06 14:25:20 UTC
Created attachment 35797 [details]
screenshot
Comment 13 Lukas Hasik 2008-04-10 21:16:45 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 14 Stanislav Aubrecht 2008-11-21 09:01:48 UTC
no easy fix for this bug
Comment 15 Quality Engineering 2009-11-02 11:04:16 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX