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

📄 palettepanel.java

📁 ASCII图画分类: 图像处理 可以将鼠标画的图象转成ASCII的形式
💻 JAVA
字号:




package joeh.asciidraw;
import java.awt.*;
import java.applet.*;
import java.util.*;
import java.io.*;

//we do this so that we can control the case that they click on us but not on
//a paletteItem so we can give focus back.
public class palettePanel extends Panel {
AsciiDrawPanel adp;

public palettePanel(String n, AsciiDrawPanel p) {
adp = p;
this.setLayout(new FlowLayout());
Label title = new Label(n);
this.add(title);
}


public boolean handleEvent(Event evt) {
switch(evt.id)
{
case Event.MOUSE_DOWN:
{
adp.requestFocus(); //give the focus back to the panel so that
//it can be typed to without first having to click the mouse there.
return true;
}
}
return true;
}
}

⌨️ 快捷键说明

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