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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:59:24+00:00 2026-05-14T01:59:24+00:00

Sorry if this question will sound too chaotic, feel free to edit it. I

  • 0

Sorry if this question will sound too chaotic, feel free to edit it.

I have an application made entirely in netbeans, which uses SingleFrameApplication and auto-generated the GUI code, named “MyApp”, and FrameView, named “MyView”. Now, the MyApp somehow has the main() function, but the MyView has all the graphic elements..

I don’t entirely understand how that happens, so used it as black box (it somehow created the window, I didn’t have to care why). But now, I need the window to be only a window, opened by another JFrame. I don’t know, how to accomplish that.

MyApp, which is extending SingleFrameApplication, have these methods:

public class MyApp extends SingleFrameApplication {

    @Override protected void startup() {
        show(new MyView(this));
    }

    @Override protected void configureWindow(java.awt.Window root) {
    }

    public static MyApp getApplication() {
        return Application.getInstance(MyApp.class);
    }

    public static void main(String[] args) {
       launch(MyApp.class, args);

    }
}

MyView has these methods:

public class MyView extends FrameView {

    public MyView(SingleFrameApplication app) {
        super(app);
        initComponents();
    }
    private void initComponents() {
        //all the GUI stuff is somehow defined here
    }
}

Now, I have no clue how the two classes work, I just want this window, defined in MyView, to appear after another window, “ordinary” JFrame. How can I call this MyApp/MyView?

  • 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-14T01:59:25+00:00Added an answer on May 14, 2026 at 1:59 am

    But now, I need the window to be only a window, opened by another JFrame. I don’t know, how to accomplish that.

    1.) It’s not just a window – it’s a
    Swing Framework Application (Ah, the
    perils of GUI builders…); and –

    2.) You haven’t specified how you want
    it “opened by another JFrame”;

    but something like this should work if you’re launching it via a JButton –

    JButton launchMyApp = new JButton("launch");
    launchMyApp.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            String[] args = {};
            Application.launch(MyApp.class, args);
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry if this question will sound stupid, but I'm just starting to learn C++
Sorry if this question is poorly worded (please edit it if it will make
I'm sorry if this will sound like a dumb question but I just can't
This question will be a little longer and I am sorry for that :)
sorry for asking this dumb question i will try to explain as good as
Sorry for the double post, I will update this question if I can't get
Sorry if this question is too vague, but I'd rather not muddy it's point
Sorry if this question was made already, I've made a deep search and nothing.
Sorry if this question is simple but I have been using node.js for only
I'm sorry if this question is basic(I'm new to nosql). Basically I have a

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.