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.

Tristate CheckBox

Empfohlene Antworten

Hallo,

kennt jemand eine Komponente/Klasse für Java, mit der ich eine TriState Checkbox darstellen kann? Also eine Checkbox mit drei Zuständen statt 2...

Kenn ich nicht. Aber kannst Du vielleicht n bisschen näher beschreiben, wie diese aussehen soll?

Ne normale CheckBox ist an oder aus. Kann mir nichts unter einer CheckBox mit 3 Zuständen vorstellen.

Soweit ich weiss, ist eine CheckBox im dritten Zustand "angegraut". Kann dieser Zustand nicht über enabled(true oder false) geregelt werden?

Wenn der dritte Status ein ganz anderer ist, bitte ich, den letzten Satz aus dem Protokoll zu streichen. :D

k.o.b

Ne TriState Checkbox sieht man unter Windoof recht oft.

1. Zustand: nicht gecheckt

2. Zustand: gecheckt, aber mit grauem Hintergrund

3. Zustand: Ganz "normal" gecheckt.

Vieleicht mal zum Hintergrund. Ich habe einen JTree, dessen Einträge mit Checkboxen versehen sind. Ich möchte jetzt Knoten, deren Kinder nur zum Teil angecheckt sind auch nur "halb" checken (2. Zustand). Erst wenn aller Kinder des Knotens angehakt sind, möchte ich auch den Konten komplett anhaken...

Schon mal prima. Danke!

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.