»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 03-26-2004, 03:59 PM   #1 (permalink)
Registered User
 
Join Date: Aug 2003
Posts: 45
Bootlegger is on a distinguished road
Java Layouts

We just got into the graphical part of Java in our CS class. For our assignment, we need to make the "microwave" attached below.

So, how exactly do you go about doing that?


I thought about starting the container out as a grid, but I don't know if there is a way to put a panel in a grid. So, I tried a border layout, but that gives me uneven divisions of the container.

Anyone have some advice for me? Thanks!
Attached Images
File Type: jpg mic.jpg (23.4 KB, 33 views)

Bootlegger is offline   Reply With Quote
Old 03-26-2004, 05:18 PM   #2 (permalink)
Registered User
 
Join Date: Oct 2001
Posts: 691
zskillz is on a distinguished road
Send a message via AIM to zskillz
i'm pretty sure that gridbaglayout (or something to that effect) can solve all of your problems... you need to divide it into 2 portions first... then insert panels, then divide the 2nd one into 12 equal things...

now i've probably forgotten a few steps and used the wrong words for the other parts, but it's not tough... look through the java API and you'll figure it out

-Z
zskillz is offline   Reply With Quote
Old 03-26-2004, 10:35 PM   #3 (permalink)
Registered User
 
Join Date: Aug 2003
Posts: 45
Bootlegger is on a distinguished road
I figured it out, acutally. I just used a GridLayout(0,2) and BorderLayouts inside of those, and just added them into the grid sequentially. Why I didn't think of that right off the bad, I have no clue. lol


Thanks for the reply, though!
Bootlegger is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 07:51 PM.