I have told you what you should do to achieve it.
Few of your questions have been very basic without any thought gone into it.
Your image height question?
You didn't even bother to explore the methods, and went straight to JGO to solve your problems that would take 1 min.
You have created multiple threads to solve one question. This kinda contradicts your point of "making it searchable" makes it even harder to have to search through 2 or 3 posts to fix one problem.
(edit:)
This is definitely optimizing the asking of already asked- and answered questions.
definitely not optimized to create multiple version of the same question.
(/edit)
You created 2 topics for one subject. this could easy fit in your "Small menu element in Slick2d"
Besides, half of your answers is just lacky ideas which does not lead anywhere, and the remaining half is just useless posts which i assume is to boost your postcounter
Lacky idea's? I have told you how I would approach the problem.
If you don't want idea's upload your complete source, and ask for us to code you a game.
Post counter, check my posts, I mostly browse and reply when I believe I can be helpful.
Very first topic I tried to solve from you, I approached it good, I read the error report, which if you read you probably wouldn't of had to create that post, I told you what I did to solve the same problem I had.
Its super easy to create a button in Java. I have recreated a button class multiple times instead of copying and pasting my own code.
Get your mouse x and y co-ords, and check in a rectangle/square around your image.
1 2
| if(input.mouseX > x && input.mouseY > y && input.mouseX < x + image.getWidth() && input.mouseY < y + image.getHeight()) |
Tell me how thats hard to check for input over a button?
+ you asked how you could achieve this. you could create multiple boxes lined under each other when right clicked, giving multiple options, you can then use that if statement to check if the cursor is inside the rectangle.
for your chatbox, I told you exactly how I created my chatbox, I do not use Slick2D other then for image loading and fonts at the moment.
In one of your other topics, you got told theirs a button class inside of Slick, why cant you use that to create the buttons for your menu?