Java Swing Displaying Large Amounts of Data from ArrayLists -
i cannot provide code because abstract problem facing.
i working on program allows user track players games. program stores players profile information in arraylist. 1 feature of program let user able browse through entire arraylist of players.
let's have arraylist of player
objects , size large, 1000
. possible in java allow user scroll through arraylist? thought creating 10 jlabels
, each time user clicked button iterate through arraylist next 10 player
objects. not seem practical.
are there swing features can utilize problem?
try using jtable, in each table row contains information each player. can extend class abstracttablemodel define fields per player, , player gets displayed on table row.
i've written java app uses jtables more 2000 rows, , 15 20 columns, , had no performance issues. limit displayed rows, can use rowfilter, , can customise sorting using rowsorter.
Comments
Post a Comment