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 120930 - Strange look of Source and Design buttons
Summary: Strange look of Source and Design buttons
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2007-11-02 09:27 UTC by Jiri Vagner
Modified: 2008-12-22 10:49 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
strange-design-source-buttons.jpg (12.52 KB, image/jpeg)
2007-11-02 09:28 UTC, Jiri Vagner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Vagner 2007-11-02 09:27:40 UTC
Check the screenshot.

Steps to reproduce: Just open form file

Product Version: NetBeans IDE Dev (Build 20071102050220)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)
Comment 1 Jiri Vagner 2007-11-02 09:28:24 UTC
Created attachment 52340 [details]
strange-design-source-buttons.jpg
Comment 2 Jan Stola 2007-11-02 09:51:36 UTC
Reassigning to core/multiview for evaluation.
Comment 3 David Simonek 2007-11-02 09:55:41 UTC
Stando, didn't you do something with multi view buttons? 
Comment 4 Stanislav Aubrecht 2007-11-02 10:02:32 UTC
yes, i was fixing the look on win classic
Comment 5 Stanislav Aubrecht 2007-11-02 11:33:15 UTC
fixed

# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: core/multiview/src/org/netbeans/core/multiview/TabsComponent.java
--- core/multiview/src/org/netbeans/core/multiview/TabsComponent.java 1.23
+++ core/multiview/src/org/netbeans/core/multiview/TabsComponent.java 1.24
@@ -89,6 +89,11 @@
         bar.setBorder(b);
         bar.setFloatable(false);
         bar.setFocusable(true);
+        if( "Windows".equals( UIManager.getLookAndFeel().getID()) 
+                && !isXPTheme()
+                && System.getProperty("java.version").startsWith("1.6") ) {
+            bar.setRollover(true);
+        }
         
         setLayout(new BorderLayout());
         add(bar, BorderLayout.NORTH);
@@ -202,7 +207,9 @@
         if (b != null) {
            button.setBorder(b);
         }
-        if( "Windows".equals( UIManager.getLookAndFeel().getID() ) && !isXPTheme() ) { //NOI18N
+        if( "Windows".equals( UIManager.getLookAndFeel().getID() ) 
+                && !isXPTheme()
+                && System.getProperty("java.version").startsWith("1.5")) { //NOI18N
             button.setBorderPainted(false);
         }
           
Comment 6 Jiri Vagner 2007-11-05 09:30:34 UTC
Verified

Product Version: NetBeans IDE Dev (Build 20071105063257)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)