I have a JPanel and I want it so that whenever a user clicks on it, a sliding window appears just below the panel and giving more information to what is already in the JPanel. How can I do this?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
To put something on something, you can use a JLayeredPane or the zorder thing.
Perhaps add a mouselistener to the jpanel, then upon mousepressed add an inner panel, or pull up a different card, or do whatever it is that works for your particular swing layout.
Try this http://java-sl.com/tip_slider.html
The requirements of your question are terrible so we can't give much detail.
If you want to to animation then use a Swing Timer. Each time the timer fires you change the height of the component to make it look likes its sliding.