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.

JFrame dupliziert sich

Empfohlene Antworten

Veröffentlicht

Hallo...

Mal wieder eine tolle Frage:

Ich entwickle gerade ein Programm mit Swing.

Jetzt ist das Problem, das jedesmal wenn eine Aktion im JFrame stattfindet,

(in diesem Fall zum Beispiel der JTree auf der linken Seite des JSplitPane neu gesetzt wird),

wird der Frame neu gezeichnet...

So weit so gut, aber der alte Frame bleibt bestehen und läuft im Hintergrund weiter...

Alle die ich bis jetzt gefragt habe konnten sich das nicht erklären...

Vielleicht hat ja schon mal jemand etwas ähnliches erlebt.

Wäre toll wenn jemand einen Tipp hätte.

this.frame.setTitle("Programm1.0");

this.frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );

this.frame.resize(Toolkit.getDefaultToolkit().getScreenSize() );

this.frame.getContentPane().add(getSplitPane(mapObj.getMapSurface(),tree.getTree()));

this.frame.setJMenuBar(mBar);

this.frame.show();

So sieht im groben der Inhalt meiner Methode zum zeichnen des Frames aus...

Na das ist ja gut und schön,doch der Frame dupliziert sich trotzdem und bleibt im Hintergrund laufen.

Es soll einfach eine art refresh sein.Doch bei Swing habe ich soetwas nicht gefunden.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.