jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From milam...@apache.org
Subject svn commit: r1340113 - /jmeter/trunk/src/core/org/apache/jmeter/gui/MainFrame.java
Date Fri, 18 May 2012 14:47:16 GMT
Author: milamber
Date: Fri May 18 14:47:16 2012
New Revision: 1340113

URL: http://svn.apache.org/viewvc?rev=1340113&view=rev
Log:
Make warn JButton transparent (best L&F)

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/MainFrame.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/MainFrame.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/MainFrame.java?rev=1340113&r1=1340112&r2=1340113&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/gui/MainFrame.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/gui/MainFrame.java Fri May 18 14:47:16 2012
@@ -200,7 +200,11 @@ public class MainFrame extends JFrame im
 
         warnIndicator = new JButton(warningIcon);
         warnIndicator.setMargin(new Insets(0, 0, 0, 0));
-        warnIndicator.setBorder(BorderFactory.createEmptyBorder());
+        // Transparent JButton with no border
+        warnIndicator.setOpaque(false);
+        warnIndicator.setContentAreaFilled(false);
+        warnIndicator.setBorderPainted(false);
+        
         warnIndicator.setToolTipText(JMeterUtils.getResString("error_indicator_tooltip"));
// $NON-NLS-1$
         warnIndicator.addActionListener(this);
         errorsOrFatalsLabel = new JLabel("0"); // $NON-NLS-1$



Mime
View raw message