01: /*
02: * FrameWithBundle.java
03: *
04: * Created on 6. srpen 2007, 14:37
05: */
06:
07: package data;
08:
09: /**
10: *
11: * @author Jirka
12: */
13: public class FrameWithBundle extends javax.swing.JFrame {
14:
15: /** Creates new form FrameWithBundle */
16: public FrameWithBundle() {
17: initComponents();
18: }
19:
20: /** This method is called from within the constructor to
21: * initialize the form.
22: * WARNING: Do NOT modify this code. The content of this method is
23: * always regenerated by the Form Editor.
24: */
25: // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
26: private void initComponents() {
27:
28: lanciaButton = new javax.swing.JButton();
29:
30: setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
31:
32: java.util.ResourceBundle bundle = java.util.ResourceBundle
33: .getBundle("data/Bundle"); // NOI18N
34: lanciaButton.setText(bundle
35: .getString("FrameWithBundle.lanciaButton.text")); // NOI18N
36:
37: org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(
38: getContentPane());
39: getContentPane().setLayout(layout);
40: layout.setHorizontalGroup(layout.createParallelGroup(
41: org.jdesktop.layout.GroupLayout.LEADING).add(
42: layout.createSequentialGroup().addContainerGap().add(
43: lanciaButton).addContainerGap(275,
44: Short.MAX_VALUE)));
45: layout.setVerticalGroup(layout.createParallelGroup(
46: org.jdesktop.layout.GroupLayout.LEADING).add(
47: layout.createSequentialGroup().addContainerGap().add(
48: lanciaButton).addContainerGap(266,
49: Short.MAX_VALUE)));
50:
51: pack();
52: }// </editor-fold>//GEN-END:initComponents
53:
54: /**
55: * @param args the command line arguments
56: */
57: public static void main(String args[]) {
58: java.awt.EventQueue.invokeLater(new Runnable() {
59: public void run() {
60: new FrameWithBundle().setVisible(true);
61: }
62: });
63: }
64:
65: // Variables declaration - do not modify//GEN-BEGIN:variables
66: private javax.swing.JButton lanciaButton;
67: // End of variables declaration//GEN-END:variables
68:
69: }
|