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

  • Home
  • SEARCH
  • 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 6163527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:50:25+00:00 2026-05-23T21:50:25+00:00

;) I’m trying to do a sequence of GUI windows in Java. Firstly, question

  • 0

😉 I’m trying to do a sequence of GUI windows in Java. Firstly, question about the design. I’m planning to have 8/9 similar types of windows:

  • a greeting intro with a timer
  • after few second of displaying the above – a window like “enter ur name” “enter ur surname”
  • question window with two radiobuttons
  • “enter ur password” window
  • window with just plain text and “next” button (apart from the 1st one, they all have it)
  • a window with some text and then a bit that can be copied with “copy” button next to it
  • same as the 2nd one, but with “paste” button next to one of the entries
  • a pop exit window
  • big window displaying names, numbers and rectangular shapes

I thought about doing one abstract class “DummyWindow” which would be the base for any other one and then expand it. What do you say? Also, what would you advise regarding the actual code approach to the windows? Thanks a lot.

  • 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-23T21:50:26+00:00Added an answer on May 23, 2026 at 9:50 pm

    So you’ll want to use Swing. Here is a simple hello world demo you can copy and paste.

    http://www.java2s.com/Code/Java/Swing-JFC/HelloWorldSwing.htm

    For what you’re doing you’ll want to look at using CardLayout. CardLayout makes creating wizards, like the one you describe, very simple. I’d create several subclasses of JPanel for each individual screen you plan on displaying. Those series of JPanel can be added together in a larger JPanel using CardLayout. Each of the sub-screens will be an individual screen that is displayed alone. Then that larger panel can be face-plated on a JFrame or JDialog.

    I also recommend using TableLayout over GridBagLayout, GridLayout, nested BoxLayout which is provided in Swing. You can learn about TableLayout here and download it:

    http://java.sun.com/products/jfc/tsc/articles/tablelayout/

    I usually subclass things like JPanel for window-like things because JPanel is just a simple container, and that can be added to JFrame, JDialog, etc without any internal changes. If you subclass JFrame, JWindow, or JDialog you can only ever be that. JPanel gives you flexibility.

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

Sidebar

Related Questions

I am trying to loop through a bunch of documents I have to put
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
this is what i have right now Drawing an RSS feed into the php,
I have just tried to save a simple *.rtf file with some websites and
I have a bunch of posts stored in text files formatted in yaml/textile (from
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString

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.