aspose file tools*
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Using GridLayout as GUI" Watch "Using GridLayout as GUI" New topic
Author

Using GridLayout as GUI

Koert Kopbeen
Greenhorn

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!

Jasper

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
Sheriff

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
sscce.org
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Using GridLayout as GUI