ASF Bugzilla – Attachment 32302 Details for
Bug 57364
Options > Look And Feel does not update all windows LAF
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch fixing this issue
BUG_57364.patch (text/plain), 1.67 KB, created by
UbikLoadPack support
on 2014-12-18 13:29:18 UTC
(
hide
)
Description:
Patch fixing this issue
Filename:
MIME Type:
Creator:
UbikLoadPack support
Created:
2014-12-18 13:29:18 UTC
Size:
1.67 KB
patch
obsolete
>Index: src/core/org/apache/jmeter/gui/action/LookAndFeelCommand.java >=================================================================== >--- src/core/org/apache/jmeter/gui/action/LookAndFeelCommand.java (revision 1645532) >+++ src/core/org/apache/jmeter/gui/action/LookAndFeelCommand.java (working copy) >@@ -18,6 +18,9 @@ > > package org.apache.jmeter.gui.action; > >+import java.awt.Dialog; >+import java.awt.Frame; >+import java.awt.Window; > import java.awt.event.ActionEvent; > import java.util.ArrayList; > import java.util.HashSet; >@@ -29,7 +32,6 @@ > import javax.swing.UIManager; > import javax.swing.UnsupportedLookAndFeelException; > >-import org.apache.jmeter.gui.GuiPackage; > import org.apache.jmeter.gui.util.JMeterMenuBar; > import org.apache.jmeter.util.JMeterUtils; > import org.apache.jorphan.logging.LoggingManager; >@@ -138,7 +140,15 @@ > try { > String className = ev.getActionCommand().substring(ActionNames.LAF_PREFIX.length()).replace('/', '.'); > UIManager.setLookAndFeel(className); >- SwingUtilities.updateComponentTreeUI(GuiPackage.getInstance().getMainFrame()); >+ for (Window w : Window.getWindows()) { >+ SwingUtilities.updateComponentTreeUI(w); >+ if (w.isDisplayable() && >+ (w instanceof Frame ? !((Frame)w).isResizable() : >+ w instanceof Dialog ? !((Dialog)w).isResizable() : >+ true)) { >+ w.pack(); >+ } >+ } > PREFS.put(USER_PREFS_KEY, className); > } catch (javax.swing.UnsupportedLookAndFeelException e) { > JMeterUtils.reportErrorToUser("Look and Feel unavailable:" + e.toString());
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 57364
:
32301
| 32302