JLabel jdom = new JLabel("JDom官方网站:");
LinkLabel jdomlabel = new LinkLabel(JDom,JDom);
int width=435;
int height=250;
public JavaPage(JFrame jf,String title) {
super(jf,title,true);
setResizable(false);
Container content=getContentPane();
content.setLayout(null);
Dimension screen=Toolkit.getDefaultToolkit().getScreenSize();
int w=screen.width;
int h=screen.height;
setBounds( (w-width)/2, (h-height)/2,width,height);
iconlabel.setIcon(icon);
sun.setBounds(135, 36, 117, 18);
sunlabel.setBounds(264, 34, 123, 18);
eclipse.setBounds(135, 73, 117, 18);
eclipselabel.setBounds(264, 71, 167, 18);
jtattoo.setBounds(135, 108, 117, 18);
jtattoolabel.setBounds(264, 106, 143, 18);
jdom.setBounds(135, 143, 117, 18);
jdomlabel.setBounds(264, 141, 144, 18);
iconlabel.setBounds(0,-15, 150, height);
content.add(jdomlabel);
content.add(sun);
content.add(jdom);
content.add(jtattoolabel);
content.ad
d(jtattoo);
content.add(eclipselabel);
content.add(eclipse);
content.add(sunlabel);
content.add(iconlabel);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
dispose();
}
});
setVisible(true);
}
}
// TreeCell.java
package networker.directorychooser;
import javax.swing.*;
import javax.swing.filechooser.FileSystemView;
import java.io.*;
public class TreeCell {
public FileSystemView fsv=FileSystemView.getFileSystemView();
public File f;
public TreeCell(File f){
this.f=f;
}
public String getName(){
return fsv.