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.

[ JTable nicht beim erstellen initialisieren ]

Empfohlene Antworten

Veröffentlicht

hallo..

ich will eine suche proggen..

hab nen eingabefeld nen button und ein jTable

wie füll ich JTable mit den 2 Vectoren wie beim erstellen ???

so erstelle ich nen JTable

JTable test = new JTable(new Vector1, new Vector2);

wie mach ich das nu das ich die erstell (JTable Test)

und dann nach der suchbestätigung die tabelle erst fülle???

  • Autor

oder anders gesagt wie kann ich die tabelle nachdem ich sie erstellt habe ändern??

ich hab nen vector der sich jedes mal ändert..

demnach soll sich auch die tabelle ändern..

Dann erzeuge doch die Vectoren und fülle sie mit leeren Strings.

vec.add("");

usw.

Dann überträgst du die Vectoren auf die JTable...

Um sie dann zu ändern kannst du dann den Tabelleninhalt löschen...

for (int i=0;i<tab.getRowCount;i++)

{

setValueAt("",i,0);

}

und danach füllst du sie auf die gleiche Art und weise.

Oder du füllst erst den Vector und überträgst dann die Werte auf die JTable.

Bis dann...

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.