knrt.net
当前位置:首页 >> ApplEt程序的编写 >>

ApplEt程序的编写

import javax.swing.*;import java.applet.*; class MyPanel extends JPanel{ JButton button1,button2; JLabel label; MyPanel(String s1,String s2,String s3){ button1=new JButton(s1); button2=new JButton(s2); label=new JLabel(s3); add(button1);add(

不知道是放在哪儿用了??但是基本就是这样的 如果还有其他的需求 可以稍微修改下就可以了 import java.applet.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; public class jj extends Applet //implements ActionListener { JLabel l1

package javaapplication3; import java.applet.*; import java.awt.*; import java.awt.event.*; public class findmaxandmin extends Applet implements ActionListener { Label result; TextField in1,in2,in3; Button btn; int a=0,b=0,c=0,max; public void init()

import java.awt.*; import java.applet.*; public class HelloWorld extends Applet{ public void paint(Graphics g ) { g.drawString("I love java!",5,35); } }

public class MyApplet extends Applet implements ActionListener{ private JLabel yourChoiceLabel; @Override public void init() { super.init(); setLayout(new BorderLayout()); setSize(379, 273); final JPanel panel = new JPanel(); panel.setLayout(null);

随便写了个 功能实现了 public class Trapezoidal { private double upWeight; private double height; private double downWeight; public Trapezoidal(double upWeight,double height,double downWeight){ setHeight(height); setDownWeight(downWeight);

import java.awt.*;import java.util.*;import javax.swing.*;/** * @author Hardneedl */public class ColorApplet extends JApplet { private final static Dimension SIZE = new Dimension(300,200); public Dimension getSize() {return SIZE;} public Dimension

import java.awt.*;import java.awt.event.*;import java.applet.*; public class Try extends Applet implements ActionListener{ public void init() { Button b=new Button("请按按钮"); b.addActionListener(this); add(b); } public void actionPerformed(

import java.applet.*; import java.awt.*; public class jumpball extends Applet implements Runnable{ Graphics g; FontMetrics FM; Color c; String words = "default"; Thread t; int width = 300, height = 200; int ballx = 0, bally = 0; int stringW, stringH

import java.awt.BorderLayout;import java.awt.Container;import java.awt.TextArea;import java.awt.TextField;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.JButton;import javax.swing.JLabel;import javax.

sichuansong.com | 9213.net | zxqs.net | bnds.net | nczl.net | 网站首页 | 网站地图
All rights reserved Powered by www.knrt.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com