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 69538 - createExtComponent not called when Windows L&F changes
Summary: createExtComponent not called when Windows L&F changes
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: All Windows XP
: P4 blocker with 1 vote (vote)
Assignee: issues@editor
URL:
Keywords: L&F
: 70232 131788 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-11-29 15:54 UTC by cahrens
Modified: 2009-12-03 09:38 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 cahrens 2005-11-29 15:54:41 UTC
This bug is fallout from issue 30972 and is visible in the NetBeans IDE 4.1.  
If I switch the system colors on Windows, a new UI class is created (installUI 
is called).  However, the original extComponent is still being displayed 
(EditorUI's createExtComponent on the new UI instance is never called) and 
thus line numbers disappear.

To reproduce:
Start NetBeans 4.1 on Windows XP
Make sure that Line Numbers are being displayed in a file (under View menu)
Go to Windows Display properties and change Color Scheme
Note that line numbers have now disappeared in the file that was visible at 
the time of the change
Bring up the Edit menu-- it leaves a large grey block that is never repainted
Try turning on and off line numbers-- nothing happens.
Comment 1 Miloslav Metelka 2005-11-30 10:18:36 UTC
Reproduced.
Not sure what would be the best fix in this case but either resurrect the
original gutter components or remove them and create new ones. Marking for
future preliminarily.
Comment 2 Martin Roskanin 2005-12-12 08:43:24 UTC
*** Issue 70232 has been marked as a duplicate of this issue. ***
Comment 3 novakm 2007-10-16 09:42:27 UTC
I could not reproduce in latest build of 6.0 - marking as FIXED. Reporter, could you verify, please?
Comment 4 cahrens 2007-10-16 16:13:07 UTC
This is still broken in the version of 6.0 Beta that I have:

Product Version: NetBeans IDE 6.0 Beta 1 (Build 200709141330)

Do I need to download something else?  I reproduced it by having a file open in the Editor with line numbers on and 
then changing the Color Scheme via Windows' Display options.
Comment 5 Jan Becicka 2008-03-03 18:04:27 UTC
I cannot reproduce. Probably specific to JDK or something.
Comment 6 cahrens 2008-03-03 18:09:15 UTC
I can still reproduce this with 

Product Version: NetBeans IDE 6.0 (Build 200711261600)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Userdir: C:\WINNT\Profiles\croberts\.netbeans\6.0

To reproduce, follow these steps:

Make sure that Line Numbers are being displayed in a file (under View menu)
Go to Windows Display properties and change Color Scheme
Note that line numbers have now disappeared in the file that was visible at 
the time of the change
Try turning on and off line numbers-- nothing happens.

Comment 7 Vitezslav Stejskal 2008-03-04 10:44:11 UTC
It seems to work on Ubuntu/Gnome with Metal and GTK l&f. But I'm not sure changing color scheme on Gnome does the same
as on Windows. Anyway, could you please try with different look and feel, eg. try passing '--laf
javax.swing.plaf.metal.MetalLookAndFeel' as a commandline parameter when starting Netbeans. Thanks
Comment 8 cahrens 2008-03-04 19:46:12 UTC
I could not reproduce the problem when I passed in '--laf
javax.swing.plaf.metal.MetalLookAndFeel' as a commandline parameter when starting Netbeans. 
Comment 9 Vitezslav Stejskal 2008-03-05 11:17:08 UTC
Thanks! So it seems to be in the Windows l&f.
Comment 10 Vitezslav Stejskal 2008-04-02 10:26:51 UTC
*** Issue 131788 has been marked as a duplicate of this issue. ***
Comment 11 David Strupl 2009-03-31 15:47:30 UTC
Resolving all issues with milestone "future" as LATER. If you feel strongly that
it should be implemented please reopen and set the target milestone to "next".
Comment 12 Quality Engineering 2009-11-02 10:55:40 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX
Comment 13 jaredmac42 2009-12-02 13:56:39 UTC
Is there a reason this won't be fixed? We are still receiving customer calls about this issue. It isn't just the case where you change your Windows display properties, but also when you're using programs like WebEx, that this becomes a problem.
Comment 14 Vitezslav Stejskal 2009-12-03 09:38:10 UTC
Please feel free to reopen this report if you think that this is an important problem that has to be fixed.