开发者

How do I display the contents of a String array in Java Swing

开发者 https://www.devze.com 2023-01-21 01:18 出处:网络
I am new to swing and am trying to write a simple program that displays the permutations of a user-defined s开发者_开发百科tring by having a jtextfield that the user enters the string into, then click

I am new to swing and am trying to write a simple program that displays the permutations of a user-defined s开发者_开发百科tring by having a jtextfield that the user enters the string into, then click the jbutton, then all permutations of the string are displayed in the panel as a list. I set it up and got it working with factorials by displaying the computation in a jlabel, but What swing component should I use to display a variable amount of results? Thanks.


You could start with JList.

0

精彩评论

暂无评论...
验证码 换一张
取 消