![JAR search and dependency download from the Maven repository](/logo.png)
tutorial.support.CopyCodeAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docking-frames-demo-tutorial Show documentation
Show all versions of docking-frames-demo-tutorial Show documentation
${project.name} is an enry-level tutorial for docking-frames
The newest version!
package tutorial.support;
import javax.swing.ImageIcon;
import bibliothek.gui.dock.common.action.CButton;
public class CopyCodeAction extends CButton{
private CodePanel panel;
public CopyCodeAction( CodePanel panel ){
this.panel = panel;
setText("Copy all");
setTooltip("Copy the entire source code");
ImageIcon icon = new ImageIcon( getClass().getResource("/data/tutorial/icons/copy.png") );
setIcon( icon );
}
@Override
protected void action(){
panel.copy();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy