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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:12:36+00:00 2026-05-30T00:12:36+00:00

I’m making GUI using JSplitPane and I want to display a JFrame in the

  • 0

I’m making GUI using JSplitPane and I want to display a JFrame in the left side of the JSplitPane and another JFrame inside the right side of a JSplitPane.
The name of the other JFrame is Minimize.java and Diagram.java. My problem is how can i call these and display it in the left and right side of the JSplitPane? An update for this post, I converted my JFrame to a JPanel and successful displayed but the problem now is it didn’t perform the function/method.

Here’s my code for the Main Form.

        public LogicGates()
        {
            Minimize mi = new Minimize();

             //mi.setVisible(true);
            JLabel iExp = new JLabel("Inputted Expression: ");
            p.add(iExp);
            j1= new JLabel("");
            j1.setVisible(false);
            p.add(j1);


            JScrollPane aaScrollPane = new JScrollPane(aa);

//here is my problem,when i run the code it displays the label and jcombobox but didn't perform the function
            gatessplit = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, mi, aaScrollPane);
            gatessplit.setOneTouchExpandable(true);
            gatessplit.setDividerLocation(300);

            //Provide minimum sizes for the two components in the split pane.
            Dimension minimumSize = new Dimension(150, 80);
            //frame.setMinimumSize(minimumSize);
            aaScrollPane.setMinimumSize(minimumSize);

            //Provide a preferred size for the split pane.
            gatessplit.setPreferredSize(new Dimension(900, 500));


        }
  • 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-30T00:12:37+00:00Added an answer on May 30, 2026 at 12:12 am

    Could you not use JPanels here combined with a Layout Manager on the JFrame?

    This will allow you to create a JFrame, then add a layout to it comprising of two sections on the left and right. You can then add a JPanel to the left and right and add components to each JPanel.

    JPanel tutorial: http://docs.oracle.com/javase/tutorial/uiswing/components/panel.html

    Layout tutorial: http://docs.oracle.com/javase/tutorial/uiswing/layout/visual.html

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

Sidebar

Related Questions

i want to parse a xhtml file and display in UITableView. what is the
I'm making a simple page using Google Maps API 3. My first. One marker
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I am reading a book about Javascript and jQuery and using one of the
I have a French site that I want to parse, but am running into

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.