Can anyone help with my Minecraft application?
Right, I am attempting to make an application that will be used for a Minecraft (Bukkit & Vanilla) server. It is a protection to stop hackers. Now, due to some sections doing different things to the server, only one anti-hack can be active at a time. I'm trying to create a user-friendly application to do all the technical side for the user. I want to create a SwingWindow that will allow a user to pick one of 4 anti-hack packs. When the user chooses a anti-hack pack and clicks on it, I want the SwingWindow to open another set of user-interactive options where they can pick which anti-hacks they would like to enable. So if a user wishes to stop players using for example: xray, fly and texture packs, they can. But, if they want to ban x-ray and fly but not textures, they simply deselect the 'Texture Packs' check box and it will stop the xray and fly but still allow textures. The smallest pack contains 7 different anti-hacks. I need the menu to work in a style to that a user may first pick their pack, then it will take them to a menu with a patch button at the bottom. The patching is already complete. I need assistance on the menu. I need it to work in a minecraft main menu-like style where clicking on a button takes you to a different menu, in the same SwingWindow but not using an internal window or tabbed window. Can anyone give me some advice on how I could do this. Possibly using 'if' statements? Or just using the 'Disabling and Enabling Components' method? Any help would be much appreciated and credit will be given if it works as intended. I am willing to share most of of the source in question, but not all source being used for the application. Thanks!
Re: Can anyone help with my Minecraft application?
How i made my menu,
What you could do is make an enum, add the menus in it as states (so MAINMENU, HACKS, UPDATER etc) And then make a button class which takes a couple of arguments ( Like x position, y position, on which menu they should be avaiblable, image, and variable to change, and possible menu state to change). And then in your paint method or however you are planning to do it just loop trough all the buttons, check if they should be in the menu, then if they should be in the menu, draw them.