#Generating a tournament bracket with Java and Swing

27 messages · Page 1 of 1 (latest)

edgy marlin
#

Hello, I'm looking for some guidance regarding how I could go about creating a tournament bracket programmatically with Java and Swing.

umbral wedgeBOT
#

This post has been reserved for your question.

Hey @edgy marlin! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

edgy marlin
#

Attached is an example image

modest slate
#

What you want is an image, or what?

edgy marlin
modest slate
#

What sort of guidance are you after, then?

edgy marlin
#

I'm not even sure how to get started

#

To be honest

modest slate
#

By learning how to make GUIs, buttons, text fields...

edgy marlin
#

I don't know how I could put such a layout together

modest slate
#

"such a layout", what kind of layout?

edgy marlin
#

Creating buttons and text fields is trivial, but aligning everything and setting up the layout is the part where I'm lost

edgy marlin
#

Getting everything properly positioned so it looks similar to this

modest slate
#

You said you want to be able to click on a tournament. What is it exactly that you call a tournament?

edgy marlin
#

Each of those darker gray rectangles

modest slate
#

Is that normal terminology?
Anyway, yeah, that's a rather hard place to be

edgy marlin
#

Sorry, each of the darker gray rectangles would be a match. The tournament would be the whole thing. English isn't my first language and I got mixed up

#

I want to be able to click on each of the dark rectangles and be taken to a page that would show me more information about that match

modest slate
#

Two approaches: manually placing the widgets rather than trying to use actual layouts, with all the limitations that come with that.
OR drawing the entire thing, and detecting where clicks go and drawing the interactions. Tedious, but reliable

edgy marlin
#

Drawing the whole thing i.e. using a pre-drawn static image?

modest slate
#

No, like telling the computer to draw a rectangle there and a curve there

edgy marlin
#

Right

#

Alright

#

Thanks

umbral wedgeBOT
# edgy marlin Thanks

If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.