Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7489197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:12:49+00:00 2026-05-29T15:12:49+00:00

http://pastebin.com/VaaTRsuf I would like to have the JList and JTextArea resize with the window,

  • 0

http://pastebin.com/VaaTRsuf

I would like to have the JList and JTextArea resize with the window, but the JPanel stays in the center.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T15:12:50+00:00Added an answer on May 29, 2026 at 3:12 pm

    Your LogView class extends JPanel and thus unless you change it, it uses JPanel’s default layout, FlowLayout. Components held in a FlowLayout-using container do not change size when the container changes size, and so if you want this behavior, you don’t need a component Listener — you just need to change the layout manager for the LogView JPanel to BorderLayout or something similar that allows its held component to expand, that’s it. One line of code:

    public LogView(final JFrame contentPane) {
    
      // .......
    
      setLayout(new BorderLayout());  // add this, that's it
      add(mainPanel);
    }
    

    Another option is to get rid of mainPanel as it doesn’t appear to be necessary at all, to set the layout of your LogView object to be GridBagLayout and to add your components directly to the LogView object.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code: http://pastebin.com/Sd9WKZFr When i call something like rate(60, -6000, 120000) it
I have a json string like this: http://pastebin.com/ckUZadwL I'm trying to use gson to
I have read RSS and get html string like at http://pastebin.com/eWQ6gUe2 which i display
I have this code http://pastebin.com/hCFk0FJg Server starts and listens normally, but then when I
i have the following simple grid960 HTML code: http://pastebin.com/m1SYMH5S but it looks verry different
I have configured my zend navigation menu like Config: http://pastebin.com/B212uWKz public function _initNavigation() {
http://pastebin.com/babqrrqa Like the title says, i have problems with getting the text from a
http://pastebin.com/mYk8M038 here is what I have so far... I think it may be something
I have a piece of html/javascript written in jQuery at http://pastebin.com/MzMPjtvF My issue is
I am trying to learn Flex and now i have the next code: http://pastebin.com/rZwxF7w1

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.