1 Attachment(s)
Help trying to set GUI layout
Hey everyone :) I'm new to this site and pretty new to learning java and I'm stuck with a little task. I'm trying to start a GUI but struggling with the code for the layout of the GUI :(
I've uploaded a picture of what I want it to lAttachment 2696ook like, if anybody could help me with the code for the layout I would be really grateful :)
Re: Help trying to set GUI layout
Quote:
Originally Posted by
JLSHARP92
ook like, if anybody could help me with the code for the layout I would be really grateful :)
Sorry, this is a forum, not a code factory.
Have you gone through the layouts tutorial trail?
Lesson: Laying Out Components Within a Container (The Java™ Tutorials > Creating a GUI With JFC/Swing)
db
Re: Help trying to set GUI layout
First of all, I didn't ask anybody to write me the coding for this GUI, all I asked was for help with it.
I'll look at the tutorials now, I'm sure they'll help me. Thanks
Re: Help trying to set GUI layout
Quote:
Originally Posted by
JLSHARP92
First of all, I didn't ask anybody to write me the coding for this GUI, all I asked was for help with it.
I'll look at the tutorials now, I'm sure they'll help me. Thanks
It's always better to give it a try first on your own after reading the tutorials. Otherwise we'd spoil the fun of your learning and experimenting. Later if you get stuck, please come on back with your code.
Re: Help trying to set GUI layout
I'm actually struggling to split the pane into two panels, the left panel being the header panel and the right being the image panel. I'm asking help with this, how do you do it? :(
Re: Help trying to set GUI layout
Quote:
Originally Posted by
JLSHARP92
I'm actually struggling to split the pane into two panels, the left panel being the header panel and the right being the image panel. I'm asking help with this, how do you do it? :(
Have you looked into using a BorderLayout for this? Again, check out the tutorials as they will show you how.