#Help with javaswing
1 messages ยท Page 1 of 1 (latest)
Here is an AI assisted attempt to answer your question ๐ค. Maybe it helps! In any case, a human is on the way ๐. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.
I'd be happy to help with your Java Swing view. Please go ahead and share your code when you're ready, and I'll do my best to assist you with any issues you're facing. Feel free to provide a brief description of what you're trying to achieve with your view as well.
Why "when a replay comes", just send it in
That way a helper directly knows what he will have to fight with
the rest doesnt matter that much just some small classes like the piece called bead, player which is currently empty, and Empty which is to repersent empty spot
but im lost for word I dont even know where to start
any help is appreacited
<@&987246487241105418>
Hmm, do you want to dynamically create them? If you know the slope, how many should by on a given x axis, you can determine their position on an y axis and pass that in to the button location no?
sorry but I am pretty clueless about that stuff but what did any of what you say mean
Ok, so say your panel is 100 pixels high. and your top and bottom margin are 20px, so you have 60px to play with. You want to generate 3 nodes on that x axis. So you know you have 60px to play with. So the delta between each buttons element would be 20px.
You can set a frame's size, and components have a setLocation function.
I got pinged in here
seems all helpers got pinged
Please don't mention helpers
did you solve this?
I got the idea of simon but I dont know how to execute it
So I didnt solve it yet
And sorry about the ping
they're talking about absolute positioning
you would set the layout of the frame to null, which will allow you to place any component anywhere
you'd set the location of a component by calling setLocation on that component before adding it to the frame
@celest hazel
Your question has been closed due to inactivity.
If it was not resolved yet, feel free to just post a message below
to reopen it, or create a new thread.
Note that usually the reason for nobody calling back is that your
question may have been not well asked and hence no one felt confident
enough answering.
When you reopen the thread, try to use your time to improve the quality
of the question by elaborating, providing details, context, all relevant code
snippets, any errors you are getting, concrete examples and perhaps also some
screenshots. Share your attempt, explain the expected results and compare
them to the current results.
Also try to make the information easily accessible by sharing code
or assignment descriptions directly on Discord, not behind a link or
PDF-file; provide some guidance for long code snippets and ensure
the code is well formatted and has syntax highlighting. Kindly read through
https://stackoverflow.com/help/how-to-ask for more.
With enough info, someone knows the answer for sure ๐