摘要: 开始--运行--cmd 进入命令提示符 输入netstat -ano 即可看到所有连接的PID 之后在任务管理器中找到这个PID所对应的程序如果任务管理器中没有PID这一项,可以在任务管理器中选"查看"-"选择列"经常,我们在启动应用的时候发现系统需要的端口被别的程序占用,如何知道谁占有了我们需要的... 阅读全文
posted @ 2015-04-29 12:30 ma_fighting 阅读(337) 评论(0) 推荐(0)
摘要: 水印:public void paint(Graphics g) { // TODO 自动生成的方法存根 Graphics2D g2=(Graphics2D)g;URL url=paint.class.getResource("qq.jpg");Image img=Toolkit.getDef... 阅读全文
posted @ 2015-04-27 22:52 ma_fighting 阅读(235) 评论(0) 推荐(0)
摘要: AlphaComposite al=AlphaComposite.SrcOver.derive(0.3f);g2.setComposite(al); 阅读全文
posted @ 2015-04-27 21:41 ma_fighting 阅读(517) 评论(0) 推荐(0)
摘要: public class paint extends JFrame{ public paint(){ setLocation(0, 0); setSize(400, 400); setDefaultCloseOperation(EXIT_ON_CLOSE); Container co... 阅读全文
posted @ 2015-04-27 21:32 ma_fighting 阅读(256) 评论(0) 推荐(0)
摘要: public void paint(Graphics g) { // TODO 自动生成的方法存根 Graphics2D g2=(Graphics2D)g;// URL url=paint.class.getResource("qq.jpg");// Image img=Toolkit.g... 阅读全文
posted @ 2015-04-27 17:36 ma_fighting 阅读(184) 评论(0) 推荐(0)
摘要: public void paint(Graphics g) { int x=100; int y=100; String str=new String("mafeng"); g.setColor(Color.darkGray); Font font =new ... 阅读全文
posted @ 2015-04-27 17:28 ma_fighting 阅读(198) 评论(0) 推荐(0)
摘要: public void paint(Graphics g) { // TODO 自动生成的方法存根 int h=400; int pix[]=new int[w*h]; int dex=0; for(int i=0;i<h;i++){ int red=(i*255)/(h-1); ... 阅读全文
posted @ 2015-04-27 17:12 ma_fighting 阅读(290) 评论(0) 推荐(0)
摘要: public class BufferedImageBuilder {private static final int DEFAULT_IMAGE_TYPE = BufferedImage.TYPE_INT_RGB;public BufferedImage bufferImage(Image ima... 阅读全文
posted @ 2015-04-27 16:46 ma_fighting 阅读(2838) 评论(0) 推荐(0)
摘要: 为图形填充渐变色:Graphics2D g2=(Graphics2D)g;GradientPaint gra=new GradientPaint(20, 20, Color.BLUE, 100,80,Color.cyan,true); g2.setPaint(gra); ... 阅读全文
posted @ 2015-04-26 10:10 ma_fighting 阅读(209) 评论(0) 推荐(0)
摘要: 绘制二次曲线: public void paint(Graphics g) { // TODO 自动生成的方法存根 super.paint(g); Graphics2D g2=(Graphics2D)g; QuadCurve2D.Double curle=new QuadCurve2D.... 阅读全文
posted @ 2015-04-25 21:24 ma_fighting 阅读(234) 评论(0) 推荐(0)
历史天气查