import java.applet.*; import java.awt.*; import java.awt.event.*; public class Ex10_14 extends Applet { Scrollbar scrl = new Scrollbar(Scrollbar.HORIZONTAL); public void init() { //scrl.setBounds( 10,10, getSize().width-20, 10 ); scrl.setMaximum( getSize().width ); scrl.set...
setLocation(100,100);mathCanvas.setBounds(10, 25, 280, 240);inputTextArea.setBounds(10, 270, 210, 60);evalButton.setBounds(230, 290, 60, 30);graphicsButton.setBounds(20, 340, 160, 20);typesetButton.setBounds(20, 365, 160, 20);useFEButton.setBounds(180, 340, 100, 20);...
setLocation(100,100);mathCanvas.setBounds(10, 25, 280, 240);inputTextArea.setBounds(10, 270, 210, 60);evalButton.setBounds(230, 290, 60, 30);graphicsButton.setBounds(20, 340, 160, 20);typesetButton.setBounds(20, 365, 160, 20);useFEButton.setBounds(180, 340, 100, 20);...
stop() : stop() method is called to suspend thread that does not need to run when applet is not visible. stop():调用stop()方法来挂起在小程序不可见时不需要运行的线程。 destroy() : destroy() method is called when your applet needs to be removed completely from memory. destroy()方法:当...
c.setBounds(32, 32, 128, 128); // Images are available. Image i = null; try { File f = new File("grapefruit.jpg"); i = ImageIO.read(f); } catch (Exception z) { z.printStackTrace(System.err); } final Image im = i; // Print system is available. PrinterJob pj = ...
comp.setBounds(30, 125, 110, 30); comp.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { int a1 = Integer.parseInt(txt1.getText()); int a2 = Integer.parseInt(txt2.getText()); int a3 = a1 + a2; txt3.setText(String.valueOf(a3)); } }); pa...
repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle...
Component.setBounds(int, int, int, int) addInternalFrameListener public void addInternalFrameListener(InternalFrameListener l) Adds the specified listener to receive internal frame events from this internal frame. Parameters: l - the internal frame listener removeInternalFrameListener public void removeIntern...
drawable.setBounds(0, 0, width, height); drawable.draw(canvas); return bitmap; } return null; } public static Bitmap fromView(View view) { view.clearFocus(); view.setPressed(false); boolean willNotCache = view.willNotCacheDrawing(); ...
f.setBounds(bounds); f.setVisible(true); 好了,到这里,我们的任务完成了。 原文来自:http://blog.csdn.net/stevencn76/archive/2007/12/18/1948578.aspx5 10月 java图片加水印源码 Posted by anzhixin in 编程技术. Tagged: java, 图片水印, 源码. 留下评论 来自网络,源码如下。 public static boolean...