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.

JDialog Icon setzten

Empfohlene Antworten

Hi,

also ich hab ein kleines java-Problem... also ich hab nen JFrame, wo ich das Icon oben links selbst gesetzt hab, per this.setIcon(); ... dort ist auch net des problem... auf jeden fall klappt des. Ich öffne aber auch ein paar JDialogs, aber ich kann dort nicht per this.setIcon(); des bildchen setzten. Wisst ihr, wie man des einstellt? oder geht des einfach bei JDialog net?

mfg

Straider

//EDIT: Problem hat sich gelöst... für ale die, dies wissen wollen: ein Dialog der ein Frame (oder einen anderen Dialog) als Parent bekommt, übernimmt automatisch dessen Icon (kann ja einfach "getIconImage" aufrufen).

Leider kann man das Icon eines Dialoges nicht selbst setzten

Leider kann man das Icon eines Dialoges nicht selbst setzten
It's not a bug, it's a feature!

Ein Dialog erbt nunmal den Kontext, in dem er ausgeführt wird von seinem Parent Window. Wenn du einen eigenen Kontext benötigst, dann nimm halt JFrame, oder erweitere JWindow und kümmere dich selber um das Zeichnen der Titlebar.

Jo, hab des jetzt auch nur von nen anderen forum rauskopiert.,.. werd des aber jetzt ohne icon machen... des wär einfach nur nen nettes kleines feuture gewesen...

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.