View Javadoc
1 package net.mlw.fball.gui;
2
3 import java.awt.GridBagConstraints;
4 import java.util.ResourceBundle;
5
6 import javax.swing.JLabel;
7 import javax.swing.JPanel;
8 import javax.swing.JTextField;
9
10 import net.mlw.fball.loader.Loader;
11
12 /***
13 * @author Matthew L. Wilson
14 * @version $Revision: 1.3 $ $Date: 2004/02/10 12:13:30 $
15 */
16 public class LoaderPanel extends JPanel
17 {
18 public LoaderPanel(Loader loader, ResourceBundle bundle)
19 {
20 initComponents(loader, bundle);
21 }
22
23 public void initComponents(Loader loader, ResourceBundle bundle)
24 {
25 removeAll();
26 GridBagConstraints gridBagConstraints = null;
27
28 gridBagConstraints = new java.awt.GridBagConstraints();
29 gridBagConstraints.gridx = 1;
30 gridBagConstraints.gridy = 1;
31 gridBagConstraints.anchor = GridBagConstraints.SOUTH;
32 add(new JLabel(bundle.getString("label.class")), gridBagConstraints);
33
34 gridBagConstraints = new java.awt.GridBagConstraints();
35 gridBagConstraints.gridx = 2;
36 gridBagConstraints.gridy = 1;
37 gridBagConstraints.anchor = GridBagConstraints.SOUTH;
38 JTextField tfClass = new JTextField();
39 tfClass.setEditable(false);
40 tfClass.setText(loader.getClass().getName());
41 add(tfClass, gridBagConstraints);
42 }
43 }
This page was automatically generated by Maven