File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Using GridLayout as GUI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Using GridLayout as GUI" Watch "Using GridLayout as GUI" New topic

Using GridLayout as GUI

Koert Kopbeen

Joined: Oct 30, 2005
Posts: 6
Hey everyone

I sent in a previous post (Creating GUI for BattleShips) and I tweaked my program. it's basically perfect without the GridLayout (which I found and would work PERFECTLY if I knew how to use it. I imported it, but I really don't know what to do. Anyone wanna help me out? As I said previously, the GUI can be VERY simple, it's the idea that counts.

Come on, guys, PLEASE help me!


The code follows! Please guys ASAP!!

Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
Shouldn't GUI questions go to the Swing/etc... GUI forum?

There is no emoticon for what I am feeling!
marc weber

Joined: Aug 31, 2004
Posts: 11343

How far have you gotten with the Swing Tutorial?

Can you write a program that just displays a 10x10 grid (with a JButton in each position)?

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

Originally posted by Jeff Albrechtsen:
Shouldn't GUI questions go to the Swing/etc... GUI forum?

Yep. Off we go.

[Jess in Action][AskingGoodQuestions]
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
you've cross-posting here, javaworld (and everywhere else I suppose), multiple
times, begging everyone to write the program for you.

If you had, instead, spent the time reading the links provided, you would have
finished the project by now (it really is that simple), and you would have
learned a 'bucketload' - to carry forward to your next gui project.

so, get into the links provided, head down, 'A' up, and just do it.

help for specific questions about specific problems is readily available.

good luck.
I agree. Here's the link:
subject: Using GridLayout as GUI
It's not a secret anymore!