Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JavaÖÐÔõô¸Ä±ä×ÖÌåµÄÒ»¸ö¼òµ¥ÊµÀýºÍÔËÐÐЧ¹û

package java;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import javax.swing.*;
public class fontnameDome extends JFrame implements ActionListener
{
/**
*
*/
private static final long serialVersionUID = 1L;
JLabel jl1;
JTextArea jta;
JButton jb1,jb2;
JPanel jp;
JScrollPane js;
String name="ËÎÌå";
public fontnameDome()
{
jl1=new JLabel("ÁôÑÔ°å");
jta=new JTextArea(13,45);
jb1=new JButton("¸Ä±ä×ÖÌå");
jb2=new JButton("Ìá½»");
jp=new JPanel();
js=new JScrollPane(jta);
jp.add(jl1);
jp.add(js);
jp.add(jb1);
jp.add(jb2);
jta.setText("ͬһ¸öÊÀ½ç£¬Í¬Ò»¸öÃÎÏ룡");
jta.setFont(new Font("ËÎÌå",Font.PLAIN,12));
this.add(jp);
this.setSize(330, 300);
this.setVisible(true);
jb1.addActionListener(this);
jb2.addActionListener(this);
}
public void actionPerformed(ActionEvent e)
{
if(e.getSource()==jb1)
{
final JDialog jd=new JDialog(this,"Ìáʾ",true);
jd.setLayout(new FlowLayout());
ButtonGroup bg=new ButtonGroup();
JRadioButton jrb1=new JRadioButton("»ªÎÄÐп¬");
JRadioButton jrb2=new JRadioButton("»ªÎÄϸºÚ");
JButton jb3=new JButton("È·¶¨");
bg.add(jrb1);
bg.add(jrb2);
jd.add(jrb1);
jd.add(jrb2);
jrb1.addItemListener(new ItemListener()
{
public void itemStateChanged(ItemEvent e)
{
name="»ªÎÄÐп¬";
}
});
jrb2.addItemListener(new ItemListener()
{
public void itemStateChanged(ItemEvent e)


Ïà¹ØÎĵµ£º

·ÖÒ³¹¦ÄܵÄjavaʵÏÖ

       ×î½ü×öÒ»¸öÏîÄ¿£¬ÒªÓõ½·ÖÒ³¹¦ÄÜ£¬²Î¿¼Á˺ܶ෽·¨£¬ÓеIJ»ºÏÊÊ£¬ÓеIJ»Ï²»¶£¬ÓÚÊÇ×Ô¼ºÔÚËûÃǵĻù´¡ÉÏÕûÁËÒ»¸ö£»Ë¼Â·ÊÇÕâÑùµÄ£ºÏÈ°ÑÐèÒª·ÖÒ³µÄÊý¾Ý»òÊǼǼ¶¼²éѯ³öÀ´ ´æÈëÒ»¸ö¼¯ºÏÀàÀïÈçList»òÊÇVector£¬È»ºóÀûÓÃÆäsublist(int findex,int eindex)·½·¨£¬»ñÈ¡ÐèÒª·ÖÒ³µÄÊý¾Ý»ò¼Ç¼,¹ØÓ ......

ÓйØjavaÖеÄString£¬StringBuffer£¬StringBuild

String ×Ö·û´®³£Á¿
StringBuffer ×Ö·û´®±äÁ¿£¨Ḭ̈߳²È«£©
StringBuilder ×Ö·û´®±äÁ¿£¨·ÇḬ̈߳²È«£©
¼òÒªµÄ˵£¬ String ÀàÐÍºÍ StringBuffer ÀàÐ͵ÄÖ÷ÒªÐÔÄÜÇø±ðÆäʵÔÚÓÚ String ÊDz»¿É±äµÄ¶ÔÏó, Òò´ËÔÚÿ´Î¶Ô String ÀàÐͽøÐиıäµÄʱºòÆäʵ¶¼µÈͬÓÚÉú³ÉÁËÒ»¸öÐ嵀 String ¶ÔÏó£¬È»ºó½«Ö¸ÕëÖ¸ÏòÐ嵀 String ¶ÔÏó£¬ËùÒÔ¾­ ......

java SAX½âÎöXMLÎļþ

import java.io.File;
import java.io.FileNotFoundException;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;
public class ResolveXmlFile {
 
 public void resolverXml() throws DocumentException, FileNotFoundExcept ......

java»ù´¡¾­µä±à³ÌÌâ


Monkey_peach´úÂë
package com.sailor.game;   
  
/**   
 * ÌâÄ¿£ººï×Ó³ÔÌÒÎÊÌ⣺ºï×ÓµÚÒ»ÌìÕªÏÂÈô¸É¸öÌÒ×Ó£¬µ±¼´³ÔÁËÒ»°ë£¬»¹²»ñ«£¬ÓÖ¶à³ÔÁËÒ»¸ö µÚ¶þÌìÔçÉÏÓÖ½«Ê£   
 * ÏµÄÌÒ×Ó³ÔµôÒ»°ë£¬ÓÖ¶à³ÔÁËÒ»¸ö¡£ÒÔºóÿÌìÔçÉ϶¼³ÔÁËÇ°Ò»ÌìʣϠ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ