Results 1 to 2 of 2
  1. #1
    dredd is offline Member
    Join Date
    Mar 2013
    Posts
    11
    Rep Power
    0

    Default How can I create a JPanel inside a JFrame?

    I want to create in the north region of JFrame a panel that will includes labels and buttons that will be placed starting from the left side to the right side and I want to create in the West region a JTextArea that will be streached to the center region, And the center region will be blanked (I will have a space between the west and east regions). I also want to mention that I don't want to use null borderLayout manager.

  2. #2
    sehudson's Avatar
    sehudson is offline Senior Member
    Join Date
    Mar 2010
    Posts
    354
    Rep Power
    5

    Default Re: How can I create a JPanel inside a JFrame?

    Take a look at this information on Layout Managers.
    The BorderLayout may work nicely for what you are trying to do.

    A Visual Guide to Layout Managers (The Java™ Tutorials > Creating a GUI With JFC/Swing > Laying Out Components Within a Container)

Similar Threads

  1. View pdf inside JPanel
    By asai in forum New To Java
    Replies: 5
    Last Post: 02-06-2013, 02:33 PM
  2. Open .pdf file inside a jpanel
    By pink123 in forum AWT / Swing
    Replies: 6
    Last Post: 10-30-2011, 06:37 AM
  3. An image inside JPanel.
    By Rinas in forum AWT / Swing
    Replies: 4
    Last Post: 10-03-2011, 07:17 PM
  4. Replies: 3
    Last Post: 07-14-2010, 10:34 PM
  5. How to add JFrame inside JPanel
    By niteshwar.bhardwaj in forum Java 2D
    Replies: 8
    Last Post: 12-13-2009, 08:41 PM

Posting Permissions

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