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.


>> REGISTER NOW TO START POSTING


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

Results 1 to 7 of 7

Thread: how to design a sliding menu in a jpanel

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how to design a sliding menu in a jpanel

    Hi i am new in java and i want to add a sliding menu into a vertical panel but i don't no were to star anyone who can assist even if its giving me an idea would be highly appreciated. its for my final college desktop application.
    Thank in advance


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,181
    My Mood
    Hungover
    Thanks
    141
    Thanked 602 Times in 517 Posts

    Default Re: how to design a sliding menu in a jpanel

    What exactly is a sliding menu? A menu that you slide (like unlocking an iphone)? A menu that slides into place? Something else?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Junior Member
    Join Date
    May 2012
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: how to design a sliding menu in a jpanel

    no its not the unlocking an iphone kind a good example is like the one for window xp. when you open a window in xp it has a vertical menu on the left with drop down or what i call sliding menu in categories.

  4. #4
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,181
    My Mood
    Hungover
    Thanks
    141
    Thanked 602 Times in 517 Posts

    Default Re: how to design a sliding menu in a jpanel

    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  5. #5
    Junior Member
    Join Date
    May 2012
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: how to design a sliding menu in a jpanel

    sliding menu.jpg this is what i mean by a sliding menu bar. am referring to the menu on the left. if any one could help.

  6. #6
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,181
    My Mood
    Hungover
    Thanks
    141
    Thanked 602 Times in 517 Posts

    Default Re: how to design a sliding menu in a jpanel

    That's a collection of several Components, mostly JButtons with icons. You could put them in a JPanel (and put that JPanel in a JSplitPane), or you could try using a menu with icons instead. But if you're looking for a Component that has this already done for you, you're probably out of luck. You're going to have to make your own.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  7. #7
    Junior Member
    Join Date
    May 2012
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: how to design a sliding menu in a jpanel

    Thank alot for the idea, all i want is dropdown menu like the xp window to impress my lecturer. although i want the menu without the icons when i click the menu an internalframe is displayed on my main frame. I will try what u have just told me and if i get stuck i hope i can get more ideas from you thanks

Similar Threads

  1. [SOLVED] Pesky <JPanel>.getWidth() and <JPanel>.getHeight() Methods...
    By snowguy13 in forum AWT / Java Swing
    Replies: 1
    Last Post: December 31st, 2011, 02:35 PM
  2. Having trouble with Jpanel design view forms :(
    By WorldsTallestMidget in forum What's Wrong With My Code?
    Replies: 8
    Last Post: June 10th, 2011, 03:31 PM
  3. Sliding puzzle Restart button(same exact game)
    By carterb32 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 21st, 2011, 04:29 AM
  4. Is it possible to use card layout for menu and menu items?
    By jai2rul in forum AWT / Java Swing
    Replies: 0
    Last Post: April 11th, 2011, 08:19 AM
  5. Java sliding block puzzle issues
    By Vesper in forum What's Wrong With My Code?
    Replies: 15
    Last Post: April 11th, 2011, 07:30 AM