java ×ÖÌåÉèÖÃ
Ò»¸öJava×ÖÌåÉèÖóÌÐò£¬°üÀ¨´óС£¬ÑÕÉ«£¬¼Ó´Ö£¬Ï»®Ïߣ¬¶ÔÆ룬бÌåµÄÉèÖ㬺ÜÈ«!!! ÊÕ²Ø
Swing¶ÔJTextPaneÖÐ×ÖÌåÑÕÉ«µÄÉèÖÃ
ת×Ô£ºhttp://www.blogjava.net/Swing/archive/2007/12/26/128965.html
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JEditorPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextPane;
import javax.swing.UIManager;
import javax.swing.WindowConstants;
import javax.swing.text.AttributeSet;
import javax.swing.text.DefaultStyledDocument;
import javax.swing.text.Document;
import javax.swing.text.EditorKit;
import javax.swing.text.MutableAttributeSet;
import javax.swing.text.SimpleAttributeSet;
import javax.swing.text.StyleConstants;
import javax.swing.text.StyledDocument;
import javax.swing.text.StyledEditorKit;
public class NewJFrame extends javax.swing.JFrame implements ActionListener {
private JPanel jp1;
private JButton color;
private JTextPane jep;
private JScrollPane jsp;
private JButton font;
/**
* Auto-generated main method to display this JFrame
*/
public static void main(String[] args) {
NewJFrame inst = new NewJFrame();
inst.setVisible(true);
}
public NewJFrame() {
super();
initGUI();
}
private void initGUI() {
try {
BorderLayout thisLayout = new BorderLayout();
getContentPane().setLayout(thisLayout);
setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
{
jp1 = new JPanel();
getContentPane().add(jp1, BorderLayout.NORTH);
{
font = new JButton();
font.addActionListener(this);
 
Ïà¹ØÎĵµ£º
Ö÷ÒªµÄ³ÌÐò£º
package greeds.jdbc.sample;
import greeds.jdbc.util.JDBCUtil;
import java.io.*;
import java.sql.*;
public class MySQLBlobSample {
public static void main(String[] args) throws Exception {
// дÈëÊý¾Ý¿â
/*
*
* Connection ......
ÔÚÕâ¸öÒ³ÃæÉÏhttp://rymden.nu/exceptions.html£¬Äã»á¿´µ½JavaµÄ¸÷ÖÖÒì³££¬²»¹ý£¬Äã¿´¿´¸÷¸öÒì³£µÄ½âÊÍ£¬Äã»á·¢Ïַdz£ÓÐȤ£¬ÏÂÃæÀý¾Ù¼¸¸ö°É£º
java.lang.ArithmeticException
ÄãÕýÔÚʹÓüÆËã½â¾öÒ»¸öÄã²»ÄÜ×Ô¼º½âÊ͵ÄÊýѧÎÊÌ⣬ÇëÄãÖØжÁÒ»ÏÂÄãµÄ³ÌÐò£¬È»ºó£¬ÔÙÊÔÒ»´Î¡£
java.lang.ClassNotFoundException
ÄãÓ¦¸ÃÊÇ·¢Ã ......
ÕâÊÇÒ»´ÎÅàѵ×ܽᣬÊÇÎÒÔÚѧϰµÄ¹ý³ÌÖмǼÏÂÀ´µÄ£¬·Ç³£ÍêÕû£¬ÎҸоõÊʺϳõѧÕßѧÉú¿ÉÄܸüÐèÒªËùÒÔ·¢±í £¬Çë¶à¸øÓëÆÀ¼Û-------
---------WangMX
¡¶Java Web³ÌÐòÉè¼Æ»ù´¡½Ì³Ì¡·µÚ1Õ£©
1 JSP ºÍ JavaµÄ¹Øϵ
Ò»°ãJavaÖ¸µÄ±ê×¢°æ Java SE
ÁíÍâÁ½¸ö°æ±¾£ºJava EE ºÍ Java ME
  ......
Ö÷ÒªÊÇÀûÓÃJavaÌṩµÄutil°üÖеÄPropertiesÀà¡£·Ï»°²»¶à˵£¬Ö±½Ó¿´´úÂ룺
view plaincopy to clipboardprint?
import java.util.*;
public class YourJavaProperties {
public static void main(String args[]){
Properties props=System.getProperties();
System.out.println("JavaµÄÔËÐл·¾³°æ±¾£º"+props.getP ......