本文整理了Java中java.applet.Applet.resize()
方法的一些代码示例,展示了Applet.resize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Applet.resize()
方法的具体详情如下:
包路径:java.applet.Applet
类名称:Applet
方法名:resize
暂无
代码示例来源:origin: net.sourceforge.ondex.apps/ovtk2
/**
* Calls the applet's resize
*
* @param width
* @param height
* @return void
*/
public void appletResize(int width, int height) {
applet.resize(width, height);
}
代码示例来源:origin: ATLauncher/ATLauncher
@Override
public void appletResize(int width, int height) {
wrappedApplet.resize(width, height);
}
代码示例来源:origin: Spoutcraft/LegacyLauncher
@Override
public void resize(Dimension d) {
minecraftApplet.resize(d);
}
代码示例来源:origin: ATLauncher/ATLauncher
@Override
public void resize(int width, int height) {
wrappedApplet.resize(width, height);
}
代码示例来源:origin: ATLauncher/ATLauncher
@Override
public void resize(Dimension d) {
wrappedApplet.resize(d);
}
代码示例来源:origin: Spoutcraft/LegacyLauncher
@Override
public void resize(int width, int height) {
minecraftApplet.resize(width, height);
}
代码示例来源:origin: Spoutcraft/LegacyLauncher
public void appletResize(int width, int height) {
minecraftApplet.resize(width, height);
}
代码示例来源:origin: stackoverflow.com
import java.awt.*;
import java.applet.*;
public class DocFooter extends Applet {
String date;
String email;
public void init() {
resize(500,100);
date = getParameter("LAST_UPDATED");
email = getParameter("EMAIL");
}
public void paint(Graphics g) {
g.drawString(date + " by ",100, 15);
g.drawString(email,290,15);
}
}
代码示例来源:origin: stackoverflow.com
import java.applet.Applet;
import java.awt.Graphics;
import java.awt.Image;
public class ImageExample2 extends Applet {
private Image bi;
public void init() {
resize(500, 500);
System.out.println(getCodeBase()); // file:/D:/Workspace/JavaProject/bin/
// This the actual code that should be used to read the image in Applet
bi = getImage(getCodeBase(), "images/222.png");
}
public void paint(Graphics g) {
g.drawImage(bi, 20, 140, this);
}
}
代码示例来源:origin: stackoverflow.com
import java.awt.*;
import javax.swing.*;
public class Rect20degreeRotate extends JApplet{
public void init() {
resize(500,500);
Container DrawArea = getContentPane();
DrawArea.add(
new JPanel(){
public void paintComponent(Graphics g) {
Graphics2D g2 = (Graphics2D)g;
int x[]={0,80,80,0};
int y[]={0,0,50,50};
g2.translate( 100, 100);
for (int i=0;i<18;i++){
g2.rotate(20.0 * Math.PI / 180.0);
g2.drawPolygon(x,y,4);
}
}
}
);
}
代码示例来源:origin: stackoverflow.com
resize (width, height);
diamond = new Diamond ();
diamond.init (Color.green);
代码示例来源:origin: stackoverflow.com
resize(d0, d0);
代码示例来源:origin: stackoverflow.com
resize( DEFAULT_SIZE );
代码示例来源:origin: stackoverflow.com
Dimension size = st.getPreferredSize();
Dimension sliderSize = opacitySlider.getPreferredSize();
resize(size.width, size.height+sliderSize.height);
add("South", opacitySlider);
代码示例来源:origin: org.apache.xalan/com.springsource.org.apache.xalan
resize(320, 240);
代码示例来源:origin: stackoverflow.com
resize(190,190);
setFont(new Font("Dialog",Font.BOLD,12));
addMouseListener(this);
代码示例来源:origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1
resize(320, 240);
代码示例来源:origin: stackoverflow.com
resize(DEFAULT_SIZE);
内容来源于网络,如有侵权,请联系作者删除!