⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 slidercontrolledlabel.java

📁 一个关于java 的常用工具包
💻 JAVA
字号:
package org.jutil.java.swing;

import javax.swing.JLabel;
import javax.swing.JSlider;
import javax.swing.event.ChangeListener;
import javax.swing.event.ChangeEvent;

/**
 * <p><b>DEPRECATED</b></p>
 *
 * <p>A SliderControlledLabel is a JLabel that keeps its text equal to the
 * value of a JSlider.</p>
 *
 * <center>
 *   <img src="doc-files/SliderControlledLabel.png"/>
 * </center>
 *
 * <p><b>Do not register this SliderControlledLabel more than once with
 * getSlider(). Termination will not work because before jdk 1.4, JSlider
 * does not have a getChangeListeners() method.</b></p>
 *
 * @see     javax.swing.JLabel
 * @see     javax.swing.JSlider
 * @path    $Source: /cvsroot/org-jutil/jutil.org/src/org/jutil/java/swing/SliderControlledLabel.java,v $
 * @version $Revision: 1.5 $
 * @date    $Date: 2002/07/21 10:30:35 $
 * @state   $State: Exp $
 * @author  Tom Schrijvers
 * @author  Marko van Dooren
 * @release $Name:  $
 *
 * @deprecated
 */
public class SliderControlledLabel extends org.jutil.javax.swing.SliderControlledLabel {
	
	/**
	 * Initialize a new SliderControlledLabel
	 * that gets its value of the given slider.
	 *
	 * @param slider 
	 *        The slider this SliderControlledLabel has to show 
	 *        the value of.
	 */
 /*@
	 @ public behavior
	 @
	 @ pre slider != null;
	 @
	 @ post getSlider() == slider;
	 @ post getText().equals(Integer.toString(slider.getValue()));
	 @*/
	public SliderControlledLabel(JSlider slider){
		super(slider);
	}
}
/*
 * <copyright>Copyright (C) 1997-2001. This software is copyrighted by 
 * the people and entities mentioned after the "@author" tags above, on 
 * behalf of the JUTIL.ORG Project. The copyright is dated by the dates 
 * after the "@date" tags above. All rights reserved.
 * This software is published under the terms of the JUTIL.ORG Software
 * License version 1.1 or later, a copy of which has been included with
 * this distribution in the LICENSE file, which can also be found at
 * http://org-jutil.sourceforge.net/LICENSE. This software is distributed 
 * WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 * See the JUTIL.ORG Software License for more details. For more information,
 * please see http://org-jutil.sourceforge.net/</copyright>
 */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -