Results 1 to 2 of 2
  1. #1
    Johanis is offline Senior Member
    Join Date
    Oct 2010
    Posts
    139
    Rep Power
    0

    Default ERRORS: set visible

    Hi! I am trying to set a form visible but it keeps giving me A LOT of errors, and I do not understand this since if have done it correctly once before. Here's the program:
    Java Code:
       import java.awt.*;
       import javax.swing.*;
       import info.clearthought.layout.*;
    /*
     * Created by JFormDesigner on Mon Nov 08 05:08:26 CAT 2010
     */
    
    
    
    /**
     * @author JJ Minnie
     */
        public class Hulpvenster extends JFrame 
       {
           public Hulpvenster() 
          {
             initComponents();
             this.setVisible(true);
          }
       
           public static void main(String[]args)
          {
             Hulpvenster objh = new Hulpvenster();
          }
       
           private void initComponents() {
          // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
          // Generated using JFormDesigner non-commercial license
             scrollPane1 = new JScrollPane();
             layeredPane1 = new JLayeredPane();
             tabbedPane3 = new JTabbedPane();
             panel1 = new JPanel();
             label8 = new JLabel();
             label9 = new JLabel();
             label10 = new JLabel();
             label11 = new JLabel();
             label12 = new JLabel();
             label13 = new JLabel();
             label14 = new JLabel();
             label15 = new JLabel();
             label16 = new JLabel();
             label17 = new JLabel();
             panel2 = new JPanel();
             panel3 = new JPanel();
             panel4 = new JPanel();
             button1 = new JButton();
             button2 = new JButton();
          
          //======== this ========
             Container contentPane = getContentPane();
             contentPane.setLayout(null);
             contentPane.add(scrollPane1);
             scrollPane1.setBounds(new Rectangle(new Point(65, -20), scrollPane1.getPreferredSize()));
             contentPane.add(layeredPane1);
             layeredPane1.setBounds(new Rectangle(new Point(95, 0), layeredPane1.getPreferredSize()));
          
          //======== tabbedPane3 ========
             {
             
             //======== panel1 ========
                {
                   panel1.setLayout(new TableLayout(new double[][] {
                         {360},
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                   ((TableLayout)panel1.getLayout()).setHGap(5);
                   ((TableLayout)panel1.getLayout()).setVGap(5);
                
                //---- label8 ----
                   label8.setText("text");
                   panel1.add(label8, new TableLayoutConstraints(0, 0, 0, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                
                //---- label9 ----
                   label9.setText("text");
                   panel1.add(label9, new TableLayoutConstraints(0, 1, 0, 1, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                
                //---- label10 ----
                   label10.setText("text");
                   panel1.add(label10, new TableLayoutConstraints(0, 2, 0, 2, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                
                //---- label11 ----
                   label11.setText("text");
                   panel1.add(label11, new TableLayoutConstraints(0, 3, 0, 3, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                
                //---- label12 ----
                   label12.setText("text");
                   panel1.add(label12, new TableLayoutConstraints(0, 4, 0, 4, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                
                //---- label13 ----
                   label13.setText("text");
                   panel1.add(label13, new TableLayoutConstraints(0, 5, 0, 5, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                
                //---- label14 ----
                   label14.setText("text");
                   panel1.add(label14, new TableLayoutConstraints(0, 6, 0, 6, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                
                //---- label15 ----
                   label15.setText("text");
                   panel1.add(label15, new TableLayoutConstraints(0, 7, 0, 7, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                
                //---- label16 ----
                   label16.setText("text");
                   panel1.add(label16, new TableLayoutConstraints(0, 8, 0, 8, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                
                //---- label17 ----
                   label17.setText("text");
                   panel1.add(label17, new TableLayoutConstraints(0, 9, 0, 9, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                }
                tabbedPane3.addTab("Opsommings", panel1);
             
             
             //======== panel2 ========
                {
                   panel2.setLayout(new TableLayout(new double[][] {
                         {363},
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                   ((TableLayout)panel2.getLayout()).setHGap(5);
                   ((TableLayout)panel2.getLayout()).setVGap(5);
                }
                tabbedPane3.addTab("Invoering", panel2);
             
             
             //======== panel3 ========
                {
                   panel3.setLayout(new TableLayout(new double[][] {
                         {362},
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                   ((TableLayout)panel3.getLayout()).setHGap(5);
                   ((TableLayout)panel3.getLayout()).setVGap(5);
                }
                tabbedPane3.addTab("Knopies", panel3);
             
             
             //======== panel4 ========
                {
                   panel4.setLayout(new TableLayout(new double[][] {
                         {362},
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                   ((TableLayout)panel4.getLayout()).setHGap(5);
                   ((TableLayout)panel4.getLayout()).setVGap(5);
                }
                tabbedPane3.addTab("Bibliografie", panel4);
             
             }
             contentPane.add(tabbedPane3);
             tabbedPane3.setBounds(0, 0, 370, 295);
          
          //---- button1 ----
             button1.setText("Afrikaans");
             contentPane.add(button1);
             button1.setBounds(5, 300, 85, button1.getPreferredSize().height);
          
          //---- button2 ----
             button2.setText("English");
             contentPane.add(button2);
             button2.setBounds(95, 300, 85, button2.getPreferredSize().height);
          
             { // compute preferred size
                Dimension preferredSize = new Dimension();
                for(int i = 0; i < contentPane.getComponentCount(); i++) {
                   Rectangle bounds = contentPane.getComponent(i).getBounds();
                   preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
                   preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
                }
                Insets insets = contentPane.getInsets();
                preferredSize.width += insets.right;
                preferredSize.height += insets.bottom;
                contentPane.setMinimumSize(preferredSize);
                contentPane.setPreferredSize(preferredSize);
             }
             pack();
             setLocationRelativeTo(getOwner());
          // JFormDesigner - End of component initialization  //GEN-END:initComponents
          }
       
       // JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
       // Generated using JFormDesigner non-commercial license
          private JScrollPane scrollPane1;
          private JLayeredPane layeredPane1;
          private JTabbedPane tabbedPane3;
          private JPanel panel1;
          private JLabel label8;
          private JLabel label9;
          private JLabel label10;
          private JLabel label11;
          private JLabel label12;
          private JLabel label13;
          private JLabel label14;
          private JLabel label15;
          private JLabel label16;
          private JLabel label17;
          private JPanel panel2;
          private JPanel panel3;
          private JPanel panel4;
          private JButton button1;
          private JButton button2;
       // JFormDesigner - End of variables declaration  //GEN-END:variables
       }
    And here's the errors:
    Java Code:
     ----jGRASP exec: javac -g C:\Documents and Settings\Jonannes van Zyl\My Documents\IT\pat taak 2010\Fase 3\Hulpvenster.java
    
    Hulpvenster.java:3: package info.clearthought.layout does not exist
       import info.clearthought.layout.*;
       ^
    Hulpvenster.java:62: cannot find symbol
    symbol  : class TableLayout
    location: class Hulpvenster
                   panel1.setLayout(new TableLayout(new double[][] {
                                        ^
    Hulpvenster.java:64: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                          ^
    Hulpvenster.java:64: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                 ^
    Hulpvenster.java:64: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                        ^
    Hulpvenster.java:64: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                               ^
    Hulpvenster.java:64: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                                                      ^
    Hulpvenster.java:64: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                                                                             ^
    Hulpvenster.java:64: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                                                                                                    ^
    Hulpvenster.java:64: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                                                                                                                           ^
    Hulpvenster.java:64: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                                                                                                                                                  ^
    Hulpvenster.java:64: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                                                                                                                                                                         ^
    Hulpvenster.java:65: cannot find symbol
    symbol  : class TableLayout
    location: class Hulpvenster
                   ((TableLayout)panel1.getLayout()).setHGap(5);
                     ^
    Hulpvenster.java:66: cannot find symbol
    symbol  : class TableLayout
    location: class Hulpvenster
                   ((TableLayout)panel1.getLayout()).setVGap(5);
                     ^
    Hulpvenster.java:70: cannot find symbol
    symbol  : class TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label8, new TableLayoutConstraints(0, 0, 0, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                          ^
    Hulpvenster.java:70: cannot find symbol
    symbol  : variable TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label8, new TableLayoutConstraints(0, 0, 0, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                                                             ^
    Hulpvenster.java:70: cannot find symbol
    symbol  : variable TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label8, new TableLayoutConstraints(0, 0, 0, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                                                                                          ^
    Hulpvenster.java:74: cannot find symbol
    symbol  : class TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label9, new TableLayoutConstraints(0, 1, 0, 1, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                          ^
    Hulpvenster.java:74: cannot find symbol
    symbol  : variable TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label9, new TableLayoutConstraints(0, 1, 0, 1, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                                                             ^
    Hulpvenster.java:74: cannot find symbol
    symbol  : variable TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label9, new TableLayoutConstraints(0, 1, 0, 1, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                                                                                          ^
    Hulpvenster.java:78: cannot find symbol
    symbol  : class TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label10, new TableLayoutConstraints(0, 2, 0, 2, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                           ^
    Hulpvenster.java:78: cannot find symbol
    symbol  : variable TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label10, new TableLayoutConstraints(0, 2, 0, 2, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                                                              ^
    Hulpvenster.java:78: cannot find symbol
    symbol  : variable TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label10, new TableLayoutConstraints(0, 2, 0, 2, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                                                                                           ^
    Hulpvenster.java:82: cannot find symbol
    symbol  : class TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label11, new TableLayoutConstraints(0, 3, 0, 3, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                           ^
    Hulpvenster.java:82: cannot find symbol
    symbol  : variable TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label11, new TableLayoutConstraints(0, 3, 0, 3, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                                                              ^
    Hulpvenster.java:82: cannot find symbol
    symbol  : variable TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label11, new TableLayoutConstraints(0, 3, 0, 3, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                                                                                           ^
    Hulpvenster.java:86: cannot find symbol
    symbol  : class TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label12, new TableLayoutConstraints(0, 4, 0, 4, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                           ^
    Hulpvenster.java:86: cannot find symbol
    symbol  : variable TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label12, new TableLayoutConstraints(0, 4, 0, 4, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                                                              ^
    Hulpvenster.java:86: cannot find symbol
    symbol  : variable TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label12, new TableLayoutConstraints(0, 4, 0, 4, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                                                                                           ^
    Hulpvenster.java:90: cannot find symbol
    symbol  : class TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label13, new TableLayoutConstraints(0, 5, 0, 5, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                           ^
    Hulpvenster.java:90: cannot find symbol
    symbol  : variable TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label13, new TableLayoutConstraints(0, 5, 0, 5, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                                                              ^
    Hulpvenster.java:90: cannot find symbol
    symbol  : variable TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label13, new TableLayoutConstraints(0, 5, 0, 5, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                                                                                           ^
    Hulpvenster.java:94: cannot find symbol
    symbol  : class TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label14, new TableLayoutConstraints(0, 6, 0, 6, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                           ^
    Hulpvenster.java:94: cannot find symbol
    symbol  : variable TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label14, new TableLayoutConstraints(0, 6, 0, 6, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                                                              ^
    Hulpvenster.java:94: cannot find symbol
    symbol  : variable TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label14, new TableLayoutConstraints(0, 6, 0, 6, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                                                                                           ^
    Hulpvenster.java:98: cannot find symbol
    symbol  : class TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label15, new TableLayoutConstraints(0, 7, 0, 7, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                           ^
    Hulpvenster.java:98: cannot find symbol
    symbol  : variable TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label15, new TableLayoutConstraints(0, 7, 0, 7, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                                                              ^
    Hulpvenster.java:98: cannot find symbol
    symbol  : variable TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label15, new TableLayoutConstraints(0, 7, 0, 7, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                                                                                           ^
    Hulpvenster.java:102: cannot find symbol
    symbol  : class TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label16, new TableLayoutConstraints(0, 8, 0, 8, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                           ^
    Hulpvenster.java:102: cannot find symbol
    symbol  : variable TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label16, new TableLayoutConstraints(0, 8, 0, 8, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                                                              ^
    Hulpvenster.java:102: cannot find symbol
    symbol  : variable TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label16, new TableLayoutConstraints(0, 8, 0, 8, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                                                                                           ^
    Hulpvenster.java:106: cannot find symbol
    symbol  : class TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label17, new TableLayoutConstraints(0, 9, 0, 9, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                           ^
    Hulpvenster.java:106: cannot find symbol
    symbol  : variable TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label17, new TableLayoutConstraints(0, 9, 0, 9, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                                                              ^
    Hulpvenster.java:106: cannot find symbol
    symbol  : variable TableLayoutConstraints
    location: class Hulpvenster
                   panel1.add(label17, new TableLayoutConstraints(0, 9, 0, 9, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
                                                                                                           ^
    Hulpvenster.java:113: cannot find symbol
    symbol  : class TableLayout
    location: class Hulpvenster
                   panel2.setLayout(new TableLayout(new double[][] {
                                        ^
    Hulpvenster.java:115: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                          ^
    Hulpvenster.java:115: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                 ^
    Hulpvenster.java:115: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                        ^
    Hulpvenster.java:115: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                               ^
    Hulpvenster.java:115: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                                                      ^
    Hulpvenster.java:115: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                                                                             ^
    Hulpvenster.java:115: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                                                                                                    ^
    Hulpvenster.java:115: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                                                                                                                           ^
    Hulpvenster.java:115: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                                                                                                                                                  ^
    Hulpvenster.java:115: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                                                                                                                                                                         ^
    Hulpvenster.java:116: cannot find symbol
    symbol  : class TableLayout
    location: class Hulpvenster
                   ((TableLayout)panel2.getLayout()).setHGap(5);
                     ^
    Hulpvenster.java:117: cannot find symbol
    symbol  : class TableLayout
    location: class Hulpvenster
                   ((TableLayout)panel2.getLayout()).setVGap(5);
                     ^
    Hulpvenster.java:124: cannot find symbol
    symbol  : class TableLayout
    location: class Hulpvenster
                   panel3.setLayout(new TableLayout(new double[][] {
                                        ^
    Hulpvenster.java:126: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                          ^
    Hulpvenster.java:126: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                 ^
    Hulpvenster.java:126: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                        ^
    Hulpvenster.java:126: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                               ^
    Hulpvenster.java:126: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                                                      ^
    Hulpvenster.java:126: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                                                                             ^
    Hulpvenster.java:126: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                                                                                                    ^
    Hulpvenster.java:126: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                                                                                                                           ^
    Hulpvenster.java:126: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                                                                                                                                                  ^
    Hulpvenster.java:126: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                                                                                                                                                                         ^
    Hulpvenster.java:127: cannot find symbol
    symbol  : class TableLayout
    location: class Hulpvenster
                   ((TableLayout)panel3.getLayout()).setHGap(5);
                     ^
    Hulpvenster.java:128: cannot find symbol
    symbol  : class TableLayout
    location: class Hulpvenster
                   ((TableLayout)panel3.getLayout()).setVGap(5);
                     ^
    Hulpvenster.java:135: cannot find symbol
    symbol  : class TableLayout
    location: class Hulpvenster
                   panel4.setLayout(new TableLayout(new double[][] {
                                        ^
    Hulpvenster.java:137: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                          ^
    Hulpvenster.java:137: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                 ^
    Hulpvenster.java:137: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                        ^
    Hulpvenster.java:137: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                               ^
    Hulpvenster.java:137: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                                                      ^
    Hulpvenster.java:137: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                                                                             ^
    Hulpvenster.java:137: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                                                                                                    ^
    Hulpvenster.java:137: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                                                                                                                           ^
    Hulpvenster.java:137: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                                                                                                                                                  ^
    Hulpvenster.java:137: cannot find symbol
    symbol  : variable TableLayout
    location: class Hulpvenster
                         {TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED}}));
                                                                                                                                                                                                                                         ^
    Hulpvenster.java:138: cannot find symbol
    symbol  : class TableLayout
    location: class Hulpvenster
                   ((TableLayout)panel4.getLayout()).setHGap(5);
                     ^
    Hulpvenster.java:139: cannot find symbol
    symbol  : class TableLayout
    location: class Hulpvenster
                   ((TableLayout)panel4.getLayout()).setVGap(5);
                     ^
    83 errors
    
     ----jGRASP wedge2: exit code for process is 1.
     ----jGRASP: operation complete.
    PLEASE HELP. It may seem overwelming but I'm sure it is not.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,361
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by Johanis View Post
    Hi! I am trying to set a form visible but it keeps giving me A LOT of errors, and I do not understand this since if have done it correctly once before. PLEASE HELP. It may seem overwelming but I'm sure it is not.
    Basically your compiler is telling you that it can't find a package and (therefore) it can't find other symbols. Include the .jar file that contains the package in your classpath and most of those errors will disappear. Always closely read the compiler error messages because they (implicitly) give you the clue what to do to fix the error(s).

    kind regards,

    Jos

Similar Threads

  1. Text are not visible in GUI
    By VinTiger in forum New To Java
    Replies: 5
    Last Post: 05-15-2009, 08:14 AM
  2. Tab or Table not visible
    By madhuvanthi2312 in forum SWT / JFace
    Replies: 1
    Last Post: 04-25-2009, 09:00 AM
  3. Replies: 3
    Last Post: 03-08-2009, 01:51 AM
  4. Address bar not visible
    By Akashchopra521 in forum New To Java
    Replies: 0
    Last Post: 12-03-2008, 07:13 AM
  5. constructor ... is not visible
    By emceenugget in forum New To Java
    Replies: 2
    Last Post: 09-27-2008, 05:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •