You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by wo...@apache.org on 2005/09/07 04:46:32 UTC

cvs commit: jakarta-jmeter/src/core/org/apache/jmeter/gui/util HorizontalPanel.java

woolfel     2005/09/06 19:46:32

  Modified:    src/core/org/apache/jmeter/gui/util HorizontalPanel.java
  Log:
  updating the class so I can set the background to white
  peter
  
  Revision  Changes    Path
  1.7       +9 -2      jakarta-jmeter/src/core/org/apache/jmeter/gui/util/HorizontalPanel.java
  
  Index: HorizontalPanel.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jmeter/src/core/org/apache/jmeter/gui/util/HorizontalPanel.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- HorizontalPanel.java	12 Jul 2005 20:50:45 -0000	1.6
  +++ HorizontalPanel.java	7 Sep 2005 02:46:32 -0000	1.7
  @@ -22,6 +22,7 @@
    */
   package org.apache.jmeter.gui.util;
   
  +import java.awt.Color;
   import java.awt.BorderLayout;
   import java.awt.Component;
   
  @@ -44,6 +45,12 @@
   		this(5, CENTER_ALIGNMENT);
   	}
   
  +	public HorizontalPanel(Color bk) {
  +		this();
  +		subPanel.setBackground(bk);
  +		this.setBackground(bk);
  +	}
  +	
   	public HorizontalPanel(int hgap, float verticalAlign) {
   		super(new BorderLayout());
   		add(subPanel, BorderLayout.WEST);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org