MediaTrack t=new MediaTracker();
t.addImage(img,id);
getColor();
setColor
setFont
setFont
getClip();
setClip intintintint
t.addImage(img,id);
getColor();
setColor
setFont
setFont
getClip();
setClip intintintint
2015-01-29
JList(Object[] listData);
Graphics Graphics Fraphics
drawLine(int x1,int y1,int x2,int y2);
drawRect();
drawRoundRect;
drawArc();
drawOval;
Graphics Graphics Fraphics
drawLine(int x1,int y1,int x2,int y2);
drawRect();
drawRoundRect;
drawArc();
drawOval;
2015-01-29
JCheckBox(String text,Icon icon,boolean selected);
JRadioButton(String text,boolean selected);
JXomboBox(Object[] items);
JRadioButton(String text,boolean selected);
JXomboBox(Object[] items);
2015-01-29
JLable();
JLabel(String labeltext);
JTextField();
JTextField(int columns);
JTextField(String s);
JTextArea();
JTextArea(int rows,int cols);
JTextArea(String text,int rows,int cols);
JLabel(String labeltext);
JTextField();
JTextField(int columns);
JTextField(String s);
JTextArea();
JTextArea(int rows,int cols);
JTextArea(String text,int rows,int cols);
2015-01-29
class IconTest extends PanelTest{
JButton buttonObj;
ImageIcon iconObj;
public TconTest(){
iconObj=new ImageIcon("temp.jpg");
buttonObj=new JButton(iconObj);
panelObj.add(buttonObj);}
JButton buttonObj;
ImageIcon iconObj;
public TconTest(){
iconObj=new ImageIcon("temp.jpg");
buttonObj=new JButton(iconObj);
panelObj.add(buttonObj);}
2015-01-29
String data=br.readline();
while(data!=null){
system.out.
while(data!=null){
system.out.
2015-01-28
使用URL读取网页内容:
URL url=new URL();
url.openStream();
InputStream is=url.openStream();
InputStreamReader isr=new InputSteamReader();
URL url=new URL();
url.openStream();
InputStream is=url.openStream();
InputStreamReader isr=new InputSteamReader();
2015-01-28
url.getPath();
url.getFile();
url.getRef();
url.getQUERY();
url.getFile();
url.getRef();
url.getQUERY();
2015-01-28
URL changyongfangfa
:Url imooc=new URL("http://www.imooc.com");
URL url=new URL(imooc,"/indes.html?username=tom#test");
url.getProtocol();
url.getHost();
url.getPort();
:Url imooc=new URL("http://www.imooc.com");
URL url=new URL(imooc,"/indes.html?username=tom#test");
url.getProtocol();
url.getHost();
url.getPort();
2015-01-28
System.out.println(address);
InetAddress address2=InetAddress.getByName();
InetAddress.getByname("");
InetAddress;
InetAddress address2=InetAddress.getByName();
InetAddress.getByname("");
InetAddress;
2015-01-28