简体   繁体   中英

How to print out a searchable list of numbers in java swing?

What is the best way to show a finite amount of uneditable, searchable data(32bit numbers) in a JPanel ?

EG If I have the numbers 32, 58 and 74 I would like to somehow go to the number 74 if I enter 74 in something like a JTextField and click a search button.

I was thinking about using a JTextArea for the data but I don't know if that would be my best option considering I also need to add some sort of search functionality. I would also like it to be re-sizable and have the numbers in some sort of column like arrangement. Any ideas how I should proceed would be greatly appreciated.

JList但与JTable相比具有有限的功能,进入JScrollPane

使用JList,结合JIDE可搜索的JList小部件: http//www.jidesoft.com/products/oss.htm

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM