![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaSwing图形界面编程
mq30
研究技术、分享心得
展开
-
JavaSwing之JTable(二)
表格(Table)的使用与介绍8-1:使用JTable组件:类层次结构图:java.lang.Object--java.awt.Component--java.awt.Container--javax.swing.JComponent--javax.swing.JTabel在使用JTable以前,我们先看一下它的构造函数有哪些, 以及应该如何使用:JTa转载 2013-10-09 20:26:16 · 1992 阅读 · 1 评论 -
JavaSwing图形界面编程之JTablePane(一)
package three.day.frame;import java.awt.BorderLayout;import java.net.URL;import javax.swing.ImageIcon;import javax.swing.JButton;import javax.swing.JFrame;import javax.swing.JLabel;i原创 2013-10-05 00:27:35 · 5135 阅读 · 2 评论 -
JavaSwing图形界面编程之消息提示框(三)
package three.day.frame;import java.awt.FlowLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.awt.event.WindowAdapter;import java.awt.event.Window原创 2013-10-05 00:24:35 · 1583 阅读 · 0 评论 -
Java高级特性之Seriablizable(一)
package three.day.frame;import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.ObjectInputStream;import java.io.ObjectOutputStream;import jav原创 2013-10-05 00:18:49 · 2886 阅读 · 0 评论 -
JavaSwing图形界面编程之ToolBar(一)
package three.day.frame;import java.awt.BorderLayout;import java.awt.Container;import java.net.URL;import javax.swing.ImageIcon;import javax.swing.JButton;import javax.swing.JFrame;i原创 2013-10-05 00:23:35 · 3503 阅读 · 0 评论 -
JavaSwing图形界面编程之JSplitPane(一)
package three.day.frame;import javax.swing.JButton;import javax.swing.JFrame;import javax.swing.JSplitPane;public class JSplitPaneDemo01 {public static void main(String[] arg原创 2013-10-05 00:31:00 · 991 阅读 · 0 评论 -
JavaSwing图形界面编程之JInternalFrame(一)
package three.day.frame;import javax.swing.JDesktopPane;import javax.swing.JFrame;import javax.swing.JInternalFrame;public class JInternalFrameDemo01 {public static void main原创 2013-10-05 00:27:19 · 1505 阅读 · 0 评论 -
JavaSwing图形界面编程之内存图像(一)
package three.day.frame;import java.awt.Color;import java.awt.Frame;import java.awt.Image;import java.awt.Graphics;import java.awt.event.MouseAdapter;import java.awt.event.MouseEvent;原创 2013-10-05 00:22:39 · 1279 阅读 · 0 评论 -
JavaSwing图形界面编程之JFileChooser(一)
package three.day.frame;import java.io.File;import javax.swing.JFileChooser;import javax.swing.filechooser.FileNameExtensionFilter;public class JFileChooserDemo01 {public static原创 2013-10-04 01:56:02 · 1252 阅读 · 0 评论 -
JavaSwing图形界面编程之文件对话框(一)
package three.day.frame;import java.awt.*;import java.awt.event.*;import java.beans.PropertyChangeEvent;import java.beans.PropertyChangeListener;import java.io.File;import java.io.File原创 2013-10-03 12:58:54 · 1344 阅读 · 0 评论 -
JavaSwing图形界面编程之JProgressBar(一)
package three.day.frame;import javax.swing.JProgressBar;import javax.swing.JWindow;import javax.swing.SwingConstants;public class JProgressBarDemo01 {public static void main(Stri原创 2013-10-04 01:58:42 · 1638 阅读 · 0 评论 -
JavaSwing图形界面编程之自定义类(一)
import javax.swing.Icon;import javax.swing.JCheckBox;import javax.swing.JPanel;public class JCheckBoxGroup extends JPanel{private JCheckBox[] checkboxgroup;private String[] texts;p原创 2013-10-07 22:18:16 · 1451 阅读 · 0 评论 -
JavaSwing图形界面编程之简易计算器(一)
package three.day.frame;import java.awt.*;import java.awt.event.*;import javax.swing.*;public class Calc extends JFrame {private JLabel lbNum1;private JTextField tfNUm1;private J原创 2013-10-07 22:19:10 · 2405 阅读 · 0 评论 -
JavaSwing图形界面编程之JTable
package three.day.frame;import java.awt.Container;import java.awt.HeadlessException;import javax.swing.JFrame;import javax.swing.JScrollPane;import javax.swing.JTable;publi原创 2013-10-07 22:22:53 · 1096 阅读 · 0 评论 -
JavaSwing图形界面编程之ListSelectionListener
package three.day.frame;import java.awt.Color;import java.awt.Container;import java.awt.GridLayout;import java.awt.HeadlessException;import java.awt.event.WindowAdapter;import java.awt原创 2013-10-07 22:25:07 · 2418 阅读 · 0 评论 -
JavaSwing图形界面编程之应用(二)
package three.day.frame;import java.awt.*;import java.awt.datatransfer.Clipboard;import java.awt.datatransfer.DataFlavor;import java.awt.datatransfer.StringSelection;import java.awt.data原创 2013-10-07 22:23:48 · 993 阅读 · 0 评论 -
JavaSwing图形界面编程之JButton Image效果
package three.day.applet;import java.awt.BorderLayout;import java.awt.Container;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.Icon;import ja原创 2013-10-07 22:20:06 · 1289 阅读 · 0 评论 -
JavaSwing图形界面编程之简易计算器(二)
package three.day.frame;import java.awt.*;import java.awt.event.*;import javax.swing.*;public class Calc2 extends JFrame{ private JLabel lbNum1; private JLabel lbNum2; private JT原创 2013-10-07 22:18:44 · 1202 阅读 · 0 评论 -
JavaSwing图形界面编程之MouseEvent
package three.day.frame;import java.awt.Container;import java.awt.FlowLayout;import java.awt.HeadlessException;import java.awt.event.MouseEvent;import java.awt.event.MouseListener;impo原创 2013-10-07 22:23:19 · 2804 阅读 · 0 评论 -
JavaSwing图形界面编程之JPanel(一)
package three.day.frame;import java.awt.Graphics;import java.awt.Image;import java.io.IOException;import javax.imageio.ImageIO;import javax.swing.JFrame;import javax.swing.JPanel;原创 2013-10-07 22:19:39 · 1240 阅读 · 0 评论 -
JavaSwing图形界面编程之简易计算器(三)
package three.day.frame;import java.awt.Color;import java.awt.Container;import java.awt.FlowLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.aw原创 2013-10-07 22:19:12 · 1337 阅读 · 0 评论 -
JavaSwing图形界面编程之KeyListener
package three.day.frame;import java.awt.Color;import java.awt.Container;import java.awt.GridLayout;import java.awt.HeadlessException;import java.awt.event.KeyEvent;import java.awt.even原创 2013-10-07 22:25:19 · 1584 阅读 · 0 评论 -
JavaSwing之图形界面编程之应用(一)
package three.day.frame;import javax.swing.border.EmptyBorder;import java.awt.*;import java.awt.Dialog.ModalExclusionType;import java.awt.datatransfer.Clipboard;import java.awt.datatrans原创 2013-10-07 22:23:32 · 1233 阅读 · 0 评论 -
JavaSwing图形界面编程之JTable(二)
package three.day.frame;import javax.swing.JFrame;import javax.swing.JScrollPane;import javax.swing.JTable;public class JTableDemo02 {public static void main(String[] args) {Ob原创 2013-10-04 01:58:00 · 1639 阅读 · 0 评论 -
JavaSwing图形界面编程之JEditPane(一)
package three.day.frame;import java.awt.Color;import java.io.IOException;import javax.swing.JEditorPane;import javax.swing.JFrame;import javax.swing.JScrollPane;public class JE原创 2013-10-04 01:56:57 · 2517 阅读 · 1 评论 -
JavaSwing图形界面编程之Image(一)
package three.day.frame;import java.awt.Color;import java.awt.Frame;import java.awt.Image;import java.awt.Graphics;public class DrawImageFrame extends Frame{private Image img;p原创 2013-10-03 13:10:24 · 3233 阅读 · 0 评论 -
JavaSwing图形界面编程之对话框(一)
package three.day.frame;import java.awt.BorderLayout;import java.awt.Color;import java.awt.Container;import java.awt.FlowLayout;import java.awt.GridLayout;import java.awt.TextField;i原创 2013-10-03 04:28:10 · 1612 阅读 · 0 评论 -
JavaSwing图形界面编程之JApplet(六)
package three.day.applet;import java.awt.Container;import java.awt.FlowLayout;import java.awt.event.MouseEvent;import java.awt.event.MouseListener;import java.awt.event.MouseMotionListen原创 2013-10-03 12:34:57 · 1124 阅读 · 0 评论 -
JavaSwing图形界面编程之消息提示框(一)
package three.day.frame;import java.awt.*;import java.awt.event.*;import javax.swing.*;public class JOptionPaneDemo01 implements ActionListener{JFrame f = null;public JOptionPaneDemo原创 2013-10-03 04:07:47 · 4543 阅读 · 0 评论 -
JavaSwing图形界面编程之JApplet(二)
package three.day.applet;import java.awt.Container;import java.awt.FlowLayout;import java.awt.event.ItemEvent;import java.awt.event.ItemListener;import javax.swing.JApplet;import javax原创 2013-10-03 03:28:33 · 2140 阅读 · 0 评论 -
JavaSwing图形界面编程之JApplet(一)
package three.day.frame;import java.awt.Color;import java.awt.Container;import java.awt.FlowLayout;import java.awt.Font;import java.awt.event.ActionEvent;import java.awt.event.ActionLi原创 2013-10-03 03:20:51 · 1708 阅读 · 0 评论 -
JavaSwing图形界面编程之消息提示框(二)
package three.day.frame;import java.awt.BorderLayout;import java.awt.Container;import java.awt.GridLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import原创 2013-10-03 04:18:34 · 3337 阅读 · 0 评论 -
JavaSwing图形界面编程之JApplet(四)
package three.day.applet;import java.awt.Container;import java.awt.FlowLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.ImageIcon;import原创 2013-10-03 03:56:05 · 1258 阅读 · 0 评论 -
JavaSwing图形界面编程之JApplet(三)
package three.day.applet;import java.awt.BorderLayout;import java.awt.Container;import javax.swing.BorderFactory;import javax.swing.JApplet;import javax.swing.JLabel;import javax.s原创 2013-10-03 03:38:47 · 1918 阅读 · 0 评论 -
JavaSwing图形界面编程之JMenuBar
package three.day.frame;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.awt.event.WindowAdapter;import java.awt.event.WindowEvent;import javax.swing.JF原创 2013-10-03 03:04:38 · 1973 阅读 · 0 评论 -
JavaSwing图形界面编程之布局管理器(一)
代码运行效果:注意看空间水平之间和垂直之间的距离package three.day.frame;import java.awt.BorderLayout;import java.awt.Button;import java.awt.Dimension;import java.awt.Font;import java.awt.Frame;import java原创 2013-10-03 02:17:43 · 3750 阅读 · 0 评论 -
JavaSwing图形界面编程之JSlider(一)
package three.day.frame;import javax.swing.JFrame;import javax.swing.JSlider;public class JSliderDemo01 {public static void main(String[] args) { JSlider slider = new原创 2013-10-04 01:54:57 · 4453 阅读 · 0 评论 -
JavaSwing图形界面编程之登陆校验码(一)
package three.day.frame;import java.awt.BorderLayout;import java.awt.Color;import java.awt.Container;import java.awt.Font;import java.awt.Graphics2D;import java.awt.event.ActionEvent;原创 2013-10-04 01:56:00 · 1167 阅读 · 0 评论 -
Java高级特性之CompareTo(一)
package three.day.newcharacter;import java.util.Arrays;public class CompareToDemo01{public static void main(String[] args) {Student2 stu[] = new Student2[4];stu[3] = new Stud原创 2013-10-04 01:54:32 · 1013 阅读 · 0 评论 -
JavaSwing图形界面编程之JScrollBar(一)
package three.day.frame;import java.awt.Color;import java.awt.Container;import java.awt.GridLayout;import java.awt.HeadlessException;import java.awt.event.AdjustmentEvent;import java.a原创 2013-10-04 01:53:46 · 2031 阅读 · 0 评论