|
Java™ by example!
|
|
|
How do I add a general JComponent to a JMenu?
Create your own version of the JComponent that you would like to add to your Menu and have it implement the methods of MenuElement. Here's an example that shows a JMenu with a JTextField and a JSlider as its elements:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|