1.ϵͳ?系统宁志 源码 破解???Դ??
ϵͳ????Դ??
import java.awt.*;/
*** @author Hardneedl
*/
interface Brush {
void doPaint(Graphics g);
}
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
/
*** @author Hardneedl
*/
final class StringPaintDemo extends JFrame {
public String getTitle() { return "String Paint";}
static private final Dimension size = new Dimension(, );
public Dimension getPreferredSize() { return size;}
public Dimension getMaximumSize() { return size;}
public Dimension getMinimumSize() { return size;}
public Dimension getSize() { return size;}
private String s;
private Brush stringBrush = new Brush() {
public void doPaint(Graphics g) {
Graphics gg = g.create();
gg.setColor(Color.RED);
gg.drawString(s == null ? "null" : s , , );
gg.dispose();
}
};
private JTextField txtField;
private JComponent canvas = new JComponent(){
protected void paintComponent(Graphics g) {
super.paintComponent(g);
stringBrush.doPaint(g);
}
};
private StringPaintDemo() throws HeadlessException {
init();
attachListeners();
doLay();
}
private void init() {
txtField = new JTextField();
}
private void attachListeners() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
txtField.getDocument().addDocumentListener(new DocumentListener(){
private void update(){
s = txtField.getText();
canvas.paintImmediately(canvas.getBounds());
}
public void changedUpdate(DocumentEvent e) { update();}
public void insertUpdate(DocumentEvent e) { update();}
public void removeUpdate(DocumentEvent e) { update();}
});
}
private void doLay() {
Container container = getContentPane();
container.add(txtField,BorderLayout.NORTH);
container.add(canvas, BorderLayout.CENTER);
pack();
setVisible(true);
}
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
new StringPaintDemo();
}
});
}
}
2024-12-22 23:311087人浏览
2024-12-22 22:42312人浏览
2024-12-22 22:111992人浏览
2024-12-22 21:542178人浏览
2024-12-22 21:452459人浏览
2024-12-22 21:312043人浏览
中国消费者报南宁讯庞悦记者顾艳伟)“老板,你们这个腊肉和腊肠是从哪儿进的货?能提供进货票据和相关检验报告吗?”“腌腊肉制品中脂肪较易氧化,进而影响产品的感官品质和食用安全,需要时刻关注卖场的温湿度及卫
1.微信小程序分销系统源代码开发2.4步教你小程序商城二级分销怎么搭建!3.微信小程序二级分销后台怎么做?微信小程序分销系统源代码开发 1. 微信小程序分销系统的开发通常采取三种途径:
1.阴阳师百闻牌国际服阴阳师百闻牌国际服 下载地址:// 类型:安卓游戏-卡牌策略 版本:v1.0. 大小:1.GB 语言:中文 平台:安卓APK 推荐