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 190405 - Editor Tabs not updated when switching Files with Keyboard
Summary: Editor Tabs not updated when switching Files with Keyboard
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: PC Windows ME/2000
: P3 normal with 2 votes (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-17 00:47 UTC by bht
Modified: 2013-06-06 11:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
gif file of a broken section of the tab header (2.92 KB, image/gif)
2010-09-17 00:47 UTC, bht
Details
New gif file of a brokeen section of the tab header (3.29 KB, image/gif)
2010-10-20 01:06 UTC, bht
Details
Test result with Nimbus L&F (5.98 KB, image/gif)
2010-10-21 10:00 UTC, bht
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bht 2010-09-17 00:47:10 UTC
Created attachment 102054 [details]
gif file of a broken section of the tab header

Happens when there are more tabs than fit in screen width.

When switching with [Ctrl+Tab] between tabs to a file with a tab that is not currently in view.

If one tab is shown right, and I use [Ctrl+Tab] to switch to another file whose tab is not shown at this stage, then the current tab is removed and below it two other split-in-half tabs (as in the attached gif file) are shown below it, but the new tab of the new file is not shown.

If I switch to another application, away from NetBeans and then back to it, then the tabs are refreshed correctly.

Also if I move the mouse pointer over the tabs, then the tabs refresh correctly.

The file type of the files I am switching is all java, and I don't have any windows open that are associated with them eg navigator, palette.

It reproduces always on my computer. This is annoying because when using svn version control, the file names are difficult to see on the list of [Ctrl+Tab] (dark blue on black), so it is even more important I need to see the name of the current file in the tab.
Comment 1 Stanislav Aubrecht 2010-09-17 07:47:52 UTC
pls provide jdk and nb version info, thanks
Comment 2 bht 2010-09-17 08:32:24 UTC
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b07)
Java HotSpot(TM) Client VM (build 17.0-b17, mixed mode, sharing)

Product Version: NetBeans IDE 6.9 (Build 201006101454)
Java: 1.6.0_21; Java HotSpot(TM) Client VM 17.0-b17
System: Windows 2000 version 5.0 running on x86; Cp1252; en_NZ (nb)
Userdir: C:\Documents and Settings\Administrator\.netbeans\6.9
Comment 3 Stanislav Aubrecht 2010-10-19 14:06:48 UTC
cannot reproduce in nb 20100728, jdk 1.6.0_22, windows xp
Comment 4 bht 2010-10-20 01:06:12 UTC
Created attachment 102505 [details]
New gif file of a brokeen section of the tab header

Between my first report and this update, I have:
- changed my graphics hardware
- changed my graphics driver
- installed a new version of NetBeans netbeans-trunk-nightly-201010190000-javase-windows.exe

The error reproduces as easily as before. These are the steps I do to reproduce the problem:

Install
netbeans-trunk-nightly-201010190000-javase-windows.exe
Do not import settings
Set full screen
Turn off the editor toolbar
Turn off line numbers
Turn off diff sidebar
Minimize all other windows eg Project window so the editor is the only window.
Resolution is 1280 * 1024; font size large fonts 125% normal size (120 dpi)
Create a simple example project:
Menu|File|New Project|Samples|Java|GUI Form Examples
Edit all files:
Antenna
ContactEditor
Find
JCheckBox
JButton
JLabel
JTextField
JTextComponent
JComponent
Component
ImageObserver
MenuContainer
Serializable

You might need to swap to files that are not shown in the tabs for quite a few times, but in my case,

At the first switch to a file that is is not shown on tabs, the tabs are not completely re-rendered as shown in the attached new image.

I guess the effect is easier to reproduce with lower screen resolutions.
So please try to set your screen resolution to 800 * 600 to get a better chance to reproduce and fix the problem.
Comment 5 Stanislav Aubrecht 2010-10-20 08:58:50 UTC
is this reproducible also when using metal or nimbus l&f?
Comment 6 bht 2010-10-20 18:06:54 UTC
How do I change the L&F of NetBeans itself?
Comment 7 Stanislav Aubrecht 2010-10-21 09:36:33 UTC
use either --laf Metal or --laf Nimbus command line params
Comment 8 bht 2010-10-21 10:00:21 UTC
Created attachment 102540 [details]
Test result with Nimbus L&F

Thanks. Reproduces with different L&F, too.
Comment 9 bht 2011-08-09 06:50:09 UTC
Could this be target for 7.1 please? It still reproduces on 7.01. Quite annoying not to see what the file is that I am editing. Meanwhile I have new graphics hardware.
Comment 10 Stanislav Aubrecht 2013-06-06 09:17:44 UTC
Still cannot reproduce in

Product Version: NetBeans IDE Dev (Build 20130605-078e57e108d0)
Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
Comment 11 bht 2013-06-06 11:17:54 UTC
Thanks. Meanwhile I have a faster PC, and I cannot reproduce this anymore, either.