ZKX's LAB

如何使用MyEclipse快速开发图形化界面 myeclipse图形界面

2020-11-30知识0

MYeclipse如何画java图形用户界面,在哪里创建界面的?? package test;import java.awt.BorderLayout;import java.awt.FlowLayout;import java.awt.Graphics2D;import java.awt.GridLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.awt.geom.Line2D;import java.awt.image.BufferedImage;import javax.swing.ImageIcon;import javax.swing.JButton;import javax.swing.JFrame;import javax.swing.JLabel;import javax.swing.JPanel;public class TestDraw extends JFrame implements ActionListener {private JLabel jl;private JButton lineJb;直线private JButton ellipseJb;椭圆private JButton rectangleJb;矩形public TestDraw(){super(\"测试绘图\");this.setSize(300,300);this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);JPanel jp=new JPanel();lineJb=new JButton(\"直线\");ellipseJb=new JButton(\"椭圆\");rectangleJb=new JButton(\"矩形\");lineJb.addActionListener(this);ellipseJb.addActionListener(this);rectangleJb.addActionListener(this);jp.setLayout(new FlowLayout());jp.add(lineJb);jp.add(ellipseJb);jp.add(rectangleJb);jl=new JLabel();。

如何使用MyEclipse快速开发图形化界面 myeclipse图形界面

myEclipse 里如何显示图形界面呢 没弄明白楼主要显示什么样的图形界面呢,swing是要装插件的,如果是JSP页面以设计模式界面打开,可以通过window->;Preferences->;General->;Editors->;File Associations,在上面选择文件类型(JSP)在下面选择默认的打开方式就可以了

如何使用MyEclipse快速开发图形化界面 myeclipse图形界面

如何用myeclipse开发图形界面 我想要那种开发时可拖拽的 你好你是讲SWING吗?那就用Netbeans,它很好用。MyEclipse主要用来做J2EE开发

如何使用MyEclipse快速开发图形化界面 myeclipse图形界面

随机阅读

qrcode
访问手机版