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 scrollfähig machen?

Empfohlene Antworten

Veröffentlicht

Hallo,

zu meinem Problem.

Ich hab ein JFrame mit jeder menge TextField's , Button's und Listen und allem was man so braucht.

Nun soll es aber so sein, daß man wenn man die Größe des JFrames verändert, daß ein Scrollbalken am Rand erscheint der die Funktionalität besitzt, daß man immerhalb der JFrames scrollen kann da man ansonsten nicht am bestimmte Componenten herankommt.

Hat da jemand eine Lösung parat? Code wäre nett

Grüße

Marko

Wie?

Ja gut das hab ich mir auch schon gedacht das es damit gehen müsste.

Und wie setze ich das JScrollPane auf das JFrame?

Es sollte sich bei veränderung der Frame größe auch anpassen.

(ohne Layoutmanager)

Grüße

naja du fügst deine Komponenten (Label etc) zu einem Panel hinzu.

Das Panel fügst du dann dem JScrollPane hinzu

und das JScrollPane fügst du dem JFrame hinzu.

Fertig ist die Kiste

Okay dann werd ich das mal so versuchen.

Mal schauen ob ich das so hinbringe.

Danke schonmal im voraus.

Ps. Über ein Codebeispiel wär ich trotzdem nicht böse....

Grüße

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.