-2

I am stuck trying to make the following kind of slide menu in Swing. enter image description here

I have searched entire web but I didn't find any tutorial or maybe I missed that. Can you please suggest a solution or a tutorial? I don't need code but just the components to use.

jzd
  • 23,473
  • 9
  • 54
  • 76
Naveen
  • 7,944
  • 12
  • 78
  • 165

1 Answers1

3

This is very simple in Swing.

What you are looking for is a JSplitPane. You can start with it closed and it has arrows (or other symbols depending on your look and feel) that can be clicked on.

http://docs.oracle.com/javase/tutorial/uiswing/components/splitpane.html

Note: A slider is a very different component. (http://docs.oracle.com/javase/tutorial/uiswing/components/slider.html)

Edit: Based on your comment it sounds like actually are looking for an animated opening of the slider (which is hard to tell from a static image).

In that case this question is a duplicate, look here: Animation for divider movement in JSplitPane

Community
  • 1
  • 1
jzd
  • 23,473
  • 9
  • 54
  • 76