View Javadoc
1   package test;
2   import javax.swing.JPanel;
3   import java.awt.BorderLayout;
4   import javax.swing.JLabel;
5   import javax.swing.JList;
6   /*
7    * Created on 2005-maj-11
8    */
9   
10  /***
11   * @author Administratör
12   */
13  public class InstalledModPanel extends JPanel
14  {
15  
16  	private JList jList = null;
17  	/***
18  	 * This is the default constructor
19  	 */
20  	public InstalledModPanel() {
21  		super();
22  		initialize();
23  	}
24  	/***
25  	 * This method initializes this
26  	 * 
27  	 * @return void
28  	 */
29  	private  void initialize() {
30  		this.setLayout(new BorderLayout());
31  		//this.setSize(300,200);
32  		this.add(getJList(), java.awt.BorderLayout.CENTER);
33  	}
34  	/***
35  	 * This method initializes jList	
36  	 * 	
37  	 * @return javax.swing.JList	
38  	 */    
39  	private JList getJList() {
40  		if (jList == null) {
41  			jList = new JList();
42  			jList.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Installed mods", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null));
43  		}
44  		return jList;
45  	}
46   }