#Generating a tournament bracket with Java and Swing
27 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @edgy marlin! Please use
/closeor theClose Postbutton 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.
Attached is an example image
What you want is an image, or what?
No, I want to create the brackets using Swing UI elements. I want to be able to click on each tournament and have it take me to a new window
What sort of guidance are you after, then?
By learning how to make GUIs, buttons, text fields...
I don't know how I could put such a layout together
"such a layout", what kind of layout?
Creating buttons and text fields is trivial, but aligning everything and setting up the layout is the part where I'm lost
The bracket layout
Getting everything properly positioned so it looks similar to this
You said you want to be able to click on a tournament. What is it exactly that you call a tournament?
Each of those darker gray rectangles
Is that normal terminology?
Anyway, yeah, that's a rather hard place to be
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
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
Drawing the whole thing i.e. using a pre-drawn static image?
No, like telling the computer to draw a rectangle there and a curve there
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.