java核心技术I
文章平均质量分 67
lux_lu
怀疑是进步的源动力!
展开
-
java图形图片选择应用程序
import java.awt.EventQueue;import javax.swing.JFrame;public class ImageViewer { public static void main(String[] args) { EventQueue.invokeLater(new Runnable(){ pub转载 2014-04-19 13:50:33 · 809 阅读 · 0 评论 -
JSlider
package corejavaI.layout;import java.awt.BorderLayout;import java.awt.Color;import java.awt.Component;import java.awt.GridBagConstraints;import java.awt.GridBagLayout;import java.util.Di转载 2014-06-22 11:41:11 · 735 阅读 · 0 评论 -
菜单测试
package corejavaI.layout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.awt.event.MouseAdapter;import java.awt.event.MouseEvent;import java.awt.event.Mo转载 2014-06-22 11:40:09 · 1220 阅读 · 0 评论 -
corejavaI---action(动作)
package com.icss.event;import java.awt.Color;import java.awt.event.ActionEvent;import javax.swing.AbstractAction;import javax.swing.Action;import javax.swing.ActionMap;import javax.swing.I转载 2014-06-19 08:33:13 · 430 阅读 · 0 评论 -
JFreechart图表ChartUtilities.writeChartAsJPEG(fos_jpg,100,chart,400,300,null);// 问题出在第二个参
package com.icss.jfreechart.reports;import java.awt.Color;import java.awt.Font;import java.io.FileOutputStream;import java.io.IOException;import org.jfree.chart.ChartFactory;import org转载 2014-07-06 15:44:42 · 4740 阅读 · 2 评论 -
LoggerTest
package corejavaI.layout;import java.awt.EventQueue;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.io.File;import java.io.IOException;import java.io.O转载 2014-07-04 11:24:07 · 567 阅读 · 0 评论 -
Preferences写XML文件
package corejavaI.layout;import java.awt.EventQueue;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.io.File;import java.io.FileInputStream;import java.转载 2014-07-02 15:21:17 · 552 阅读 · 0 评论 -
PropertiesTest
package corejavaI.layout;import java.awt.EventQueue;import java.awt.event.WindowAdapter;import java.awt.event.WindowEvent;import java.io.File;import java.io.FileInputStream;import java.i转载 2014-07-01 21:38:06 · 471 阅读 · 0 评论 -
ColorChooser
package corejavaI.layout;import java.awt.Color;import java.awt.Frame;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.JButton;import javax.swin转载 2014-07-01 18:04:44 · 606 阅读 · 0 评论 -
JFileChooser
package corejavaI.layout;import java.awt.Dimension;import java.awt.Image;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.beans.PropertyChangeEvent;impo转载 2014-07-01 13:38:31 · 415 阅读 · 0 评论 -
设置JFrame图标
import java.awt.*;import javax.swing.ImageIcon;public class imageIcon{public static void main(String args[]){ImageIcon icon=new ImageIcon("icon.jpg");Frame f=new Frame("我的第一个窗口程序");f转载 2014-06-27 12:08:33 · 931 阅读 · 0 评论 -
注意System.exit(0);位置产生的不同的效果。
public class TestLie { public static void main(String[] args) { System.setSecurityManager(new SecurityManager(){ @Override public void checkExit(i转载 2014-05-10 20:43:44 · 679 阅读 · 0 评论 -
ComboBox
package corejavaI.layout;import java.awt.BorderLayout;import java.awt.Font;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.JComboBox;import ja转载 2014-06-22 11:42:18 · 576 阅读 · 0 评论