MCPcopy Create free account
hub / github.com/bobbylight/RText / updateLookAndFeel

Method updateLookAndFeel

src/main/java/org/fife/rtext/RText.java:1539–1581  ·  view source on GitHub ↗
(LookAndFeel lnf)

Source from the content-addressed store, hash-verified

1537
1538
1539 @Override
1540 public void updateLookAndFeel(LookAndFeel lnf) {
1541
1542 super.updateLookAndFeel(lnf);
1543
1544 try {
1545
1546 Dimension size = this.getSize();
1547
1548 // Update all components in this frame.
1549 SwingUtilities.updateComponentTreeUI(this);
1550 this.pack();
1551 this.setSize(size);
1552
1553 // So mainView knows to update its popup menus, etc.
1554 if (mainView != null) {
1555 mainView.updateLookAndFeel();
1556 }
1557
1558 // Update any dialogs.
1559 if (optionsDialog != null) {
1560 SwingUtilities.updateComponentTreeUI(optionsDialog);
1561 optionsDialog.pack();
1562 }
1563 if (helpDialog != null) {
1564 SwingUtilities.updateComponentTreeUI(helpDialog);
1565 helpDialog.pack();
1566 }
1567
1568 if (chooser!=null) {
1569 SwingUtilities.updateComponentTreeUI(chooser);
1570 chooser.updateUI(); // So the popup menu gets updated.
1571 }
1572 if (rfc!=null) {
1573 SwingUtilities.updateComponentTreeUI(rfc);
1574 rfc.updateUI(); // Not JDialog API; specific to this class
1575 }
1576
1577 } catch (Exception f) {
1578 displayException(f);
1579 }
1580
1581 }
1582
1583
1584 @Override

Callers

nothing calls this directly

Calls 2

displayExceptionMethod · 0.95
updateUIMethod · 0.45

Tested by

no test coverage detected