Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. how to display panel just below input panel.?

how to display panel just below input panel.?

Scheduled Pinned Locked Moved Java
tutorialquestion
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mybm1
    wrote on last edited by
    #1

    Quote:

    how to display panel just below input panel.?

    T L 2 Replies Last reply
    0
    • M mybm1

      Quote:

      how to display panel just below input panel.?

      T Offline
      T Offline
      tony_ming
      wrote on last edited by
      #2

      这么奇葩的需求

      U 1 Reply Last reply
      0
      • M mybm1

        Quote:

        how to display panel just below input panel.?

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        What does this mean, and what have you tried?

        M 1 Reply Last reply
        0
        • L Lost User

          What does this mean, and what have you tried?

          M Offline
          M Offline
          mybm1
          wrote on last edited by
          #4

          Actually I have two Jpanel. One JPanel which takes input and the result is to be display in another JPanel.I just want that output Jpanel to be display just below the input JPanel.

          L 1 Reply Last reply
          0
          • M mybm1

            Actually I have two Jpanel. One JPanel which takes input and the result is to be display in another JPanel.I just want that output Jpanel to be display just below the input JPanel.

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            OK, you have told us what you want, But what have you tried, and what problems have you encountered? Have you looked at http://docs.oracle.com/javase/tutorial/uiswing/components/panel.html[^]?

            M 1 Reply Last reply
            0
            • L Lost User

              OK, you have told us what you want, But what have you tried, and what problems have you encountered? Have you looked at http://docs.oracle.com/javase/tutorial/uiswing/components/panel.html[^]?

              M Offline
              M Offline
              mybm1
              wrote on last edited by
              #6

              Quote:

              /*
              * To change this license header, choose License Headers in Project Properties.
              * To change this template file, choose Tools | Templates
              * and open the template in the editor.
              */

              package Speech.WavePanel;

              import java.awt.BorderLayout;
              import java.awt.Color;
              import java.awt.Dimension;
              import java.io.BufferedReader;
              import java.io.File;
              import java.io.FileReader;
              import javax.swing.JFrame;
              import javax.swing.JScrollBar;
              import javax.swing.JScrollPane;
              import javax.swing.SwingUtilities;

              /**
              *
              * @author saikat
              */
              public class output extends javax.swing.JFrame {

              String filepath;     
              String fileContents;
              File file;
              BufferedReader br;
              /\*\*
               \* Creates new form output
               \*/
              public output() {
                  initComponents();
                  
                 // JScrollPane.setSize(new java.awt.Dimension((xSize - graphFromScreen), graphVerticalSize));
                //  jScrollPane1.setPreferredSize(new java.awt.Dimension((xSize - graphFromScreen), graphVerticalSize));
                 // jScrollPane1.setMinimumSize(new java.awt.Dimension((xSize - graphFromScreen), graphVerticalSize));
              
              }
              
              private void ScreenProperties()
              {
                  
                  
               jLabel1.setSize(new Dimension(800, 150));
               jLabel1.setPreferredSize(new Dimension(800, 150));
               
               
               JFrame frame= new JFrame();
               frame.setLocation(1650, 430);
               
                JScrollPane scrollPane = new JScrollPane(jLabel1);
                add(scrollPane, BorderLayout.CENTER);
                
                          scrollPane = new JScrollPane();
                scrollPane.getViewport().add( jLabel1 );
                //JFrame.add( scrollPane, BorderLayout.CENTER );
                          
                
                
               
                
                  //JScrollPane pane = new JScrollPane(JScrollPane.VERTICAL\_SCROLLBAR\_ALWAYS, JScrollPane.HORIZONTAL\_SCROLLBAR\_AS\_NEEDED);
                  //frame.setSize(500, 200);
                 // frame.setContentPane(pane);
                
                
                
                   
              }
              
              
              
              /\*\*
               \* This method is called from within the constructor to initialize the form.
               \* WARNING: Do NOT modify this code. The content of this method is always
               \* regenerated by the Form Editor.
               \*/
              @SuppressWarnings("unchecked")
              //                           
              private void initComponents() {
              
                  jScrollPane1 = new javax.swing.JScrollPane();
                  jPanel1 = new javax.swing.JPanel();
                  jPanel2 = new javax.swing.JPan
              
              1 Reply Last reply
              0
              • T tony_ming

                这么奇葩的需求

                U Offline
                U Offline
                User 10910579
                wrote on last edited by
                #7

                Chinese :laugh:

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups