Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

UIManager Alle Fenster refreshen

Empfohlene Antworten

Hallo,

habe folgendes Problem.

Möchte mit einem kleinen Fenster die Schriftgrößen in der Anwendung einstellbar machen.

Folgendes habe ich versucht:

UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");

Font f = new Font("dialog", Font.PLAIN, Integer.parseInt(groesse));

UIManager.put("TextField.font", f);

Alle Fenster die nach diesem Aufruf geöffnet werden, haben die neuen Einstellungen.

Aber nicht die bereits geöffneten und auch nicht das Fenster in dem ich den Code ausgeführt habe.

Dies brachte auch keine Verbesserung.

SwingUtilities.updateComponentTreeUI(this);

Vielen Dank für Eure Hilfe....

Moin,

was übergibst du denn bei

SwingUtilities.updateComponentTreeUI();
mit
this

?

gruß, Peter

this = die Referenz von meinem Fenster.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.