Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by progbass8

  1. progbass8

    JFrame questions

    I think you may have misunderstood my first question about destroying a JFrame. What i am looking for is a way to destroy the JFrame w/in the code....not upon an action by the user. 3) what exactly is the ImageObserver? Ive seen things like this that could be set to null if they werent...
  2. progbass8

    JFrame questions

    Thanks for the response jstreich. 1) so i would use setDefaultCloseOperation(EXIT_ON_CLOSE)? 2) if i had a derived class of JFrame could this be changed? 3) pretty obvious i guess. 4) what i was looking for is probably this setExtendedState(). -Thanks again!
  3. progbass8

    JFrame questions

    Ok, ive looked through the java documentation and have a few questions. 1)How can i destroy a JFrame without ending an application? I noticed that it has a .destroy() method, but it contains no code. Would .dispose() and .setVisible(false) work (or the other way around)? 2)Is it possible to...
  4. progbass8

    READ THE DOCUMENTATION

    Wow....definately a great resource. Now you guys won't be getting nearly as many stupid questions from me....(but i did'nt say there wouldn't be any).
  5. progbass8

    Random number only once

    you could give your custom class a boolean value to track wether it was picked or not then in the random method you pick a random number: if it has been picked use recursion to invoke the method again if not you return the result. i think that would work anyway

Part and Inventory Search

Back
Top