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 7646451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:12:45+00:00 2026-05-31T10:12:45+00:00

I have designed a user interface for my computational software using swing (Java). I

  • 0

I have designed a user interface for my computational software using swing (Java). I noticed that when i move the software to a laptop, the panels extends out of screen and some similar problems in nested panels. This makes it very difficult to use the software. How can I solve the problem?

Thanks.

Added: Some part of the codes follows:

   public GUI() {

            int width=1200;
            int height=950;
    setTitle("FEM Analysis");
    setSize(width, height);
    setLayout(new BorderLayout());
    setLocation(20, 20);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            .....}
  • 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-31T10:12:46+00:00Added an answer on May 31, 2026 at 10:12 am

    What you might want to consider (if you are not already) is using the screen dimensions to scale the size of the panels between computers with different resolutions. For example if you declared a width and height as such:

    private final int WIDTH = Toolkit.getDefaultToolkit().getScreenSize().getWidth();
    private final int HEIGHT = Toolkit.getDefaultToolkit().getScreenSize().getHeight();
    

    Then if you multiplied the width or height by a value such as (0.8) that would give you 80% of the value.

    Here’s a great guide for using screen resolution: http://www.devdaily.com/blog/post/jfc-swing/java-swing-faq-how-determine-screen-size-resolution

    Hope this is what you were looking for and help…

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

Sidebar

Related Questions

I have designed an user interface for a tool where the user needs to
Hello I have this problem with PyQt4-dev-tools that include: * a user interface compiler
I have loop designed to validate the user input on a question, it was
I have designed the screen using this relative layout. <?xml version=1.0 encoding=utf-8?> <RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android
I have a tcpip socket interface to a third party software app. I've implemented
We have a designer creating a user interface for an application. The main window
I'm using LINQ to SQL and DataGridViews to create an editable user interface of
I have two wcf services with the same interface hosted in IIS using http
I develop a network based, multi-component software system that's designed to run on an
I have been doing spring cleaning in my app. I noticed something strange, that,

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.