Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4247004

Problems with JScrollPane...

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3
    • None
    • 1.2.2
    • client-libs

    Description



      Name: vi73552 Date: 06/16/99


      1. Using a JScrollPane in a JTextArea. The TextArea is NOT empty and this require the JScrollPane action...Maximizing the window in way that the JScrollPane doesn't work and then resizing it, the JScrollPane isn't visible.

      2.
      import javax.swing.*;
      import java.awt.*;
      import java.util.Random;


      public class JFinestra3 extends JFrame {

          static JComboBox c;
          static JTextArea ta;
          static JTextField tf;
          static JLabel l;
          static JButton b;
          static Container p;
          static JScrollPane sp;


          public static void main (String[] args) {
              JFinestra3 f = new JFinestra3();
              f.setBounds(200,200,200,200);
              p = f.getContentPane();
              f.setTitle("Prova BorderLayout");
              c = new JComboBox(args);
              //c.setBackground(Color.blue);
              ta = new JTextArea();
              sp = new JScrollPane(ta);
              //ta.setBackground(Color.red);
              tf = new JTextField("Pippo");
              //tf.setBackground(Color.green);
              l = new JLabel("Ciao");
              //l.setBackground(Color.yellow);
              b = new JButton("Ok", new ImageIcon("new.gif"));
              //b.setBackground(Color.pink);
              p.add("North", c);
              p.add("Center", sp);
              p.add("West", l);
              p.add("East", tf);
              p.add("South", b);
              f.setVisible(true);
          }
      }

      3. Nothing

      4. Nothing

      5.
      C:\>java -version
      java version "1.2"
      Classic VM (build JDK-1.2-V, native threads)

      C:\>java -fullversion
      JAVA.EXE full version "JDK-1.2-V"

      6. Probably nothing
      (Review ID: 84417)
      ======================================================================

      Attachments

        Issue Links

          Activity

            People

              svioletsunw Scott Violet (Inactive)
              vasya Vassili Igouchkine (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: