java awt

sponsored links

POI Export Report ExcelUtil

import; import; import; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import; import java.sql.Connection; import

Export the report ExcelUtil2

import; import; import; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import; import java.sql.Connection; import

Industry Applications

A, beaninfo 1. package demo2.beaninfo; import java.awt.Color; import java.awt.Cursor; import java.awt.Point; import java.awt.event.MouseEvent; import java.awt.event.MouseMotionListener; import javax.swing.BorderFactory; import javax.swing.JLabel; imp

Http + Servlet file upload and download

/ / Client interface package; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import; import; import; import; impo

java excel document generated by jxl

import java.awt.BasicStroke; import java.awt.Color; import java.awt.Font; import; import; import java.lang.reflect.Field; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.sql.S

java generate PDF documents

import java.awt.Color; import; import; import; import; import java.text.DecimalFormat; import java.text.NumberFormat; import java.util.ArrayList; import java.util.Date

A Java programmer should master the 10 skills

1, grammar: must be familiar with writing code in the IDE's editor when a line error on the error message should be able to know under what kind of syntax error and know that any amendment. 2, the command: JDK must be familiar with some of the commonl

Java implementation to add a picture watermark

Scarf on the weekend at home, to see pictures have a watermark on the collar sina, think Java has a special Image processing package, the same watermark should be able to function, check the information I discovered a small test java watermark is still ve

JAVA way to get screen size

Using the Java AWT classes can be easily made available screen resolution and screen size. 01.Dimension scrSize = Toolkit.getDefaultToolkit (). GetScreenSize (); This statement can be made the actual size of the screen. If the screen resolution is 10

Implementation verification code function

Recently, get a modest class of sns project, need to use authentication code record. Code is as follows, mainly implemented in serlet images generated with random numbers, random number and then synchronize to the session package com.ecar.portal.comm

Java 2D code encoding and decoding QRCode

Android phone next week trial a two-dimensional code scanning software, scan the next train tickets, business cards, etc., I feel very good very interesting. Of course, Java can achieve these, now how to share a simple code in Java 2D QRCode encoding

Java annotations specification {turn}

Java code specification - Notes @ Author LEI @ Version 1.10 2005-09-01 1 Notes document format Comments document will be used to generate reports in HTML code, so Notes document must be written in class, field, constructor, method, before the definition.

[Transfer] flashing tray

package com.msg; import java.applet.Applet; import java.applet.AudioClip; import java.awt.AWTException; import java.awt.Image; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.TextArea; import java.awt.

Java user information registration and login system

/ / Case Study: User registration and login system / / User registration / login, user registration information will be written to the file, fill out the registration information matches / / When the log, if the user already exists, indicating a succ

RCP project implementation using jfree graphical reports and graphs in the histogram

In this case extracted from the work function of the case, simple to use if the package does not require data such as parameter types. RCP project implementation using jfree and graphical reports in the histogram curve. Structure Description: 1. Jfre

Chinese fonts installed on red hat

Recently made a demand, in a picture, and with the JAVA program to generate some text up. Need to use "Microsoft elegant black" font, that is not on the linux machine. So a little online search, the solution out First of all, to see what th

Linux / Unix + RESIN / Tomcat authentication code can not display the problem (ZT)

Project development company recently encountered a problem, sort, and share. Verification code can not display the problem, authentication code is the code for google to find the most common code, deployed on linux server using resin or unix. Not common o

Tomcat under Linux to display pictures

1 Step: Modify the $ CATALINA_HOME / bin / file ($ CATALINA_HOME refers to the tomcat installation directory), the original file to add the following to line 40 CATALINA_OPTS = "-Djava.awt.headless = true" Save and exit is compl

Linux, to display pictures tomcat

1. Steps: Modify the $ CATALINA_HOME / bin / file ($ CATALINA_HOME refers to the tomcat installation directory), line 40 in the original file can be added the following CATALINA_OPTS = "-Djava.awt.headless = true" Save and exit

ubuntu install zend guard experience

Zend Studio and Zend Guard Installation Problems on GNU / Linux Systems Article ID: 13 Last updated: 13 Apr, 2009 Views: 2728 This article applies to: [Zend Studio for Eclipse 6.x, Zend Studio 5.x, Zend Guard 5.x] [Linux] Symptom Two types of problem

Example using JFreeChart generate complex histogram (generated images) (switch)

package com.lhhc.jfreechart.test; import java.awt.Font; import; import; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartUtilities; import org.jfree.chart.JFreeChart; import org.jfree.chart

(To) swing the progress bar

package com.view; import java.awt.Dialog; import java.awt.Frame; import java.awt.Window; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.ComponentAdapter; import java.awt.event.ComponentEvent; import jav

Snake Java implementation of a simple, useless object-oriented thinking. Behind the implementation of a useful object-oriented

package snack; import java.awt.Color; import java.awt.Graphics; import java.awt.Point; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.util.LinkedList; import java.util.Random; import javax.swing.JFrame; import javax.sw

SSH verification code in the integrated framework

1.web.xml <! - Code Integration -> <servlet> <servlet-name> ValidateCodeServlet </ servlet-name> <servlet-class> com.xjtu.util.ValidateCodeServlet </ Servlet-class> <init-param> <param-name> width </

flex. servlet generated verification code means

flex, servlet method generated verification code -----" Flex mode <? Xml version = "1.0" encoding = "utf-8"?> <mx:Application xmlns:mx="" layout="absolute"> <! - Sim

Image verification code java

package com.tristan; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.image.BufferedImage; import; import; import; import; import

JavaSE13-form program development (in)

JavaSE13-form program development (in) 1 layout 1) The layout is absolutely mandatory component in a container in the specified location and size. Form, such as container panels can be an absolute layout approach. Steps: Use Container.setLayout (null) met

Struts1.2 simple example of integrated jfreechart

JFreeChart here on Struts1.2 and detailed explanations will not do, and as the title, just by writing this article describes a simple example of how to use the existing project to add Struts1 JFreeChart. First need to download the JFreeChart package,

Simple model of dialogue JDialog

JDialog (Dialog) (1) main display various dialog controls (buttons, text boxes and list boxes, etc.) (2) JDialog constructor a: JDialog (), the title bar text to create a non-modal dialog box is empty b: JDialog (Frame owner, String title, boolean mo

Java Network Launching Protocol

Early in the java development, with emphasis being placed on client development. Language to download the applet and security support for the World Wide Web (WWW) release appears to be a good idea. But the reality is the biggest success is java server sid

Super simple file downloader

import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import; import; import

Java using threads to achieve the effect with a rolling Label Label

import java.awt.Graphics; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; /** * Java Label Label implemented with threads with a scrolling effect * @author Wudoumi < Please keep the author and the source of reprodu

Java Timer Class Timer to use

import java.awt.*; import java.awt.event.*; import java.text.SimpleDateFormat; import java.util.*; import java.util.Timer; import javax.swing.*; /** * シンプルなタイマー */ public class SimpleTimer extends JWindow { /** * メ イ ン Cantor function */ public stati

(R) JAVA detect whether the network connectivity status ping

Java detect whether to use network resources available, we can use the following two methods: One way is to call the ping command, Such as: Process process = Runtime.getRuntime (). Exec ("ping"); InputStreamReader return = new InputS

Solve the Ubuntu install Flex_Builder_for_linux: java.awt.HeadlessException

Today in my Ubuntu install flex_builder_for_linux: The following error occurred, could not find a reason, because what is my path configured, but it is not installed, either as root or what. Error: Invocation of this Java Application has caused an In

Java database operations

1 extract a single record / / Import java.sql .*; Connection con = null; Statement stmt = null; ResultSet%% 6 = null; try { Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver"); String url = "jdbc: odbc :"+%% 1; con = DriverManager.getConnec

struts2 study notes eleven (Lecture 11. Struts2 core interceptor continued)

The core Struts2 interceptor continued <br /> Description: The main function of the interceptor is to intercept Action, execution order is: interceptor -> Action-> interceptor -> ... .... Function: The basic configuration of the interc

Extjs interface Swing Style

Extjs let's not much to say We come to a Swing version of imitation Masking effect, shows the progress of loading data Image point to imitation to imitation Europe it! PageBar form code: package org.qianye.pagebar; import java.awt.BorderLayout; import

Java Swing explore (a) LayoutManager

Source: BorderLayout FlowLayout GridLayout GridBagLayout CardLayout BoxLayout 1.BorderLayout java.lang.Object - Java. Awt.BorderLayout The layout is divided into east, west, south, north, i

(XF - 5) worth of common operations ZK

How to access resources in another application 1.Let us assume you have another application called app2. Then, you can access the resource by use of "~ app2/your/resource/path". For example, <include src="~app2/main/foo.zul"/> No

Api implementation using Swing's mirror effect

You can use algorithms and other mirror effects, but can also provide a simple way by using Swing to achieve some special effects. Swing comes with a 12 Composite, rational use of, or very good. Source image: Mirror effect: import java.awt.AlphaCompo

Senior Java 2D graphics

Knowledge points: Java 2D Enhancements Section Overview, AWT graphics lack of capacity, Java 2D API Section II the basic method of drawing graphics Conversion Graphics2D object, Graphics class properties, the properties of drawing and basic programming Se

javax.swing.Timer simple to use

import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.Date; import javax.swing.Timer; public class Test{ public static void main(String[] args){ ActionListener taskAction=new ActionListener( ){ public void actionPe

J2SE self (f) - commonly used Java packages and classes

1, if there is no package, all classes in one folder, so there are two defects: 1), when the number of classes more difficult to manage. 2), can not have two names the same class. 2, the packet is similar to our operating system folders. Before the docume

Training III: swing a preliminary framework for implementation and the corresponding function

import java.awt .*; import javax.swing .*; import java.awt.event .*; public class mywork extends JFrame { public mywork () { setLayout (new BorderLayout (2,8)); JButton but1 = new JButton ("sum"); add (but1, BorderLayout.NORTH); JButton but

linux tomcat verification code issues can not be displayed

Project can be displayed in the window under the verification code, but cut to not display properly under linux, the following error type Exception report message description The server encountered an internal error () that prevented it from fulfilling th

Automatically vote - all

Recent leisure time to do some function - the protagonist could have been the php curl extension, and then suddenly because of the voting site with a verification code, but I really do not identify with php to write part of the change to the groovy o

awt program under linux desktop effects turned on when the whiteboard

#java awt program is blank resolution For example Android nine patch this application export AWT_TOOLKIT=MToolkit

UML parsing Hello World (reproduced)

Was the time in learning the C language, the first textbook on the program is called Hello world, a simple on-screen print "Hello world!" Statement example. UML language learning in the system before we look at a simple example, so we have

The picture from oracle database blob field taken out, on display in the browser

Reprinted from: Keywords: display picture browser On the two articles is to me a picture from the hard disk storage in a database, and the picture taken out from the database on the hard disk, this time by send
Recent Entries
Tag Cloud
Random Entries