Swing Questions

1

how to stop execution of a code until a Jwindow is closed?
Hi this might be tuff to understand- what i m trying to do is i m creating an object of a JWindow class into another class… like this:- public class GamePlay extends JPanel{ TossWindow toss; public GamePlay(){ Toss(); } public void Toss(){ toss=new TossWindow(team1Name,team2Name); System.out.println(toss.tossWinner); } } in above code TossWindow is a class that [...]

Answer Question   |  January 17, 2013  4:41 PM
Class, Inheritance, Java, JWindow, object, Swing, Threading
asked by:
425 pts.

how to add jbuttons on canvas in java?
I am developing a computer game using java swing and adding graphics to it. now i want to add a menu list on the canvas like most of the other games. I don’t want to add menu to the menubar . This is my code so far which has a blank screen: import java.awt.*; import [...]

Answer Question   |  October 27, 2012  2:45 PM
Java applications, Swing
asked by:
425 pts.

What is Java GUI and types or i/e Swing and how does it differ from Java Web?
What is Java GUI and types or i/e Swing and how does it differ from Java Web?

Answer Question   |  August 14, 2008  10:52 AM
GUI, GUI developers, Interface design, Java, Java Foundation Classes, Swing
asked by:
5 pts.

1