0

I'm using Java and NetBeans to create an application and I seem to be getting some varying results when it comes to making and changing the GUI using the editor.

My design in the editor looks like this:

Editor view

When I click on the icon to give me a demonstration of what it would actually look like I see this:

Demo view

Notice that the panel to the right of the GUI has moved down and pushed the text box down as a result.

Now when I come to run the application itself I see this:

Running application

I may be too used to the way in which the Visual Studio IDE works in the fact that everything generally stays where you put it, am I missing some sort of hidden trick or property that is throwing everything off?

Thanks for your time.

Edit:

Code for the components - http://pastebin.com/FHF2fBEw

1
  • Please post the source code for the frame. Commented Jan 28, 2011 at 12:49

2 Answers 2

1

I had this kind of problems before, not always the visual designer ( Matisse in this case) gives you the same result at different window resolutions. After fighting with several issues like the one you are having now, I decided to use JGoodies Forms.

I would suggest you to use it if you want to have control over your GUIs without a lot of code.

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

Comments

0

What kind of layout are you using? I suggest a java.awt.GridBag layout for what you're doing.

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.