Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Can anyone help with my Minecraft application?

  1. #1
    Junior Member
    Join Date
    Aug 2012
    United Kingdom
    My Mood
    Thanked 0 Times in 0 Posts

    Question 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!

  2. #2
    Join Date
    Jul 2012
    My Mood
    Thanked 6 Times in 6 Posts

    Default 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.

  3. The Following User Says Thank You to elamre For This Useful Post:

    5ub7even (August 4th, 2012)

Similar Threads

  1. live minecraft map
    By izwold in forum Java Theory & Questions
    Replies: 2
    Last Post: May 19th, 2012, 12:16 PM
  2. Minecraft
    By TANKDS in forum Java Theory & Questions
    Replies: 2
    Last Post: February 6th, 2012, 12:16 PM
  3. Minecraft Java game
    By JavaPF in forum The Cafe
    Replies: 0
    Last Post: March 25th, 2011, 09:31 AM
  4. Replies: 2
    Last Post: March 23rd, 2011, 08:51 AM
  5. Replies: 0
    Last Post: December 3rd, 2009, 04:43 PM

Tags for this Thread