How to display indexes for UITableView in a complex list?

How to display a whole linked list in a Dialog box in JAVA?

  • I have been trying to display my link list in a Joptionpane.shoeMessageDialog box. but it only display 1 element per window. so i have 3 elements it will display 1st element in first ...show more

  • Answer:

    You don't say if you are making your own LinkedList or using one of the Java Collections. To make an array of a LinkedList you need to count the elements, then init the array, then fill the array. A JList can Model an array (which should be of type Object[] ) and present the results as lines of String in your GUI of choice. Java has the typeof operator if( myMagicArr[ i ] typeof Boxomatic ) Boxomatic b = (Boxomatic)myMagicArr[ i ]; return b; } But, if you are trying to use Queue or Disqueue in java.util.Collectons, that takes a discussion to get to your question to give you an answer.

7FTJ52D2B2WIRZJOURSGABHEWM at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

I'm familiar with GUIs but I've never done it with Java. I didn't examine any of your code but the answer might be to put the list in a list box.

EddieJ

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.