java - JTabbedPane tabs -


OK, so I have an application in JTabbedPane and it has several panels. Is it possible to assign JPopupMenu to the actual tab instead of JPanel? If this is possible, how do I do it?

For an example, see.

I think that you will first call setTabComponentAt ([every index], [labeled with a popup attached]), then you have to add a method to change each method tabs when they Are clicked.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -