Changeset 97 in tmcsimulator-scriptbuilder
- Timestamp:
- 08/29/2017 10:10:44 AM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/event/editor/frame/Editor.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/event/editor/frame/Editor.java
r94 r97 378 378 int index = jTabbedPane1.getSelectedIndex(); 379 379 380 if (index > 0 && jTabbedPane1.getTabComponentAt(index) != null)380 if (index >= 0 && jTabbedPane1.getTabComponentAt(index) != null) 381 381 { 382 382 JPanel removable = (JPanel) jTabbedPane1 … … 481 481 { 482 482 } 483 jTabbedPane1.setTabComponentAt(index, title); 483 if (index < jTabbedPane1.getTabCount()) 484 { 485 jTabbedPane1.setTabComponentAt(index, title); 486 } 484 487 try 485 488 { … … 489 492 { 490 493 } 491 jTabbedPane1.setForegroundAt(index, c); 494 if (index < jTabbedPane1.getTabCount()) 495 { 496 jTabbedPane1.setForegroundAt(index, c); 497 } 492 498 } 493 499 }).start();
Note: See TracChangeset
for help on using the changeset viewer.
