java Programming Glossary: tabnumber
How to implement draggable tab using Java Swing? http://stackoverflow.com/questions/60269/how-to-implement-draggable-tab-using-java-swing Gets the tab index based on the mouse position int tabNumber getUI .tabForCoordinate DraggableTabbedPane.this e.getX e.getY.. DraggableTabbedPane.this e.getX e.getY if tabNumber 0 draggedTabIndex tabNumber Rectangle bounds getUI .getTabBounds.. e.getX e.getY if tabNumber 0 draggedTabIndex tabNumber Rectangle bounds getUI .getTabBounds DraggableTabbedPane.this..
How to change background color of JTabbedPane? http://stackoverflow.com/questions/8752037/how-to-change-background-color-of-jtabbedpane pane pane.setBackgroundAt i Color.getHSBColor float i tabNumber 1 1 Addendum As @camickr helpfully observed the target component..
|