Results 1 to 2 of 2
  1. #1
    Flaresplitz is offline Member
    Join Date
    Dec 2008
    Posts
    1
    Rep Power
    0

    Default Trouble implementing part of code into GUI

    Hiya, Im trying to create a simple GUI for an inventory program and I have completed the first frame and it works and all...Im having a really big problem trying to figure out how to create a second frame that will have the output just like the original code did. This is the cade im trying to implement into a second frame

    Java Code:
     for (int counter = 0; counter < 5; counter++)
    {
    System.out.printf(inventory[counter].toString()); //way to print out
    //added two lines to get one-by-one BLG
    System.out.println("Please press enter to see the next item...");
    input.nextLine();
    
    } // end for
    Thanks for any help/suggestions

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Cross-posted here.

    To the original poster, cross-posting can frustrate anyone who tries to help you only to find out later that the same answer was given hours ago in a cross-posted thread. No one likes wasting their time, especially a volunteer. The polite thing to do would be to not do this, but if you feel that you absolutely must, to at least provide links in both cross-posts to each other.

Similar Threads

  1. Trouble compiling code
    By waelhelbawi in forum New To Java
    Replies: 1
    Last Post: 05-12-2008, 04:25 AM
  2. How to get part of a String?
    By eva in forum New To Java
    Replies: 1
    Last Post: 12-23-2007, 06:58 AM
  3. Inventory part 2 help please
    By badness in forum New To Java
    Replies: 1
    Last Post: 12-12-2007, 07:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •