2

How do you view a JFrame GUI design if you build your frame in code from a constructor?

(There is no design preview if you create object or extend from JFrame?)

I want to create a GUI by writing Java code so that I can learn more about Java GUI concepts, but it is annoying to have to run app every 5 sec to see how my buttons fit.

1
  • 2
    I don't think you can, you have to use the "JFrame form" option to see the preview of the frame Commented Nov 21, 2013 at 0:43

1 Answer 1

1

Previewing a Swing GUI in NetBeans requires the auto-generated *.form (xml) file which corresponds to the code. If you write the code by hand, you will not have the necessary xml metadata to preview it.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.