Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stepping through the GUI in Java [closed]

We are working on a Java program with a GUI and we are looking for a tool that shows us which parts of code are executed as we click on the buttons in the GUI. Any suggestions ? Thanks in advance

like image 416
Cemre Mengü Avatar asked Oct 26 '11 13:10

Cemre Mengü


People also ask

What is GUI explain the steps to build GUI?

GUI stands for Graphical User Interface. It refers to an interface that allows one to interact with electronic devices like computers and tablets through graphic elements. It uses icons, menus and other graphical representations to display information, as opposed to text-based commands.

What are the GUI components in Java?

GUI Component classes, such as Button , TextField , and Label . GUI Container classes, such as Frame and Panel . Layout managers, such as FlowLayout , BorderLayout and GridLayout . Custom graphics classes, such as Graphics , Color and Font .

What is Java GUI programming?

In Java applications, the components that comprise a GUI (Graphical User Interface) are stored in containers called forms. The Java language provides a set of user interface components from which GUI forms can be built.


3 Answers

Eclipse with debug mode can do that, you just need to put break points in your listeners and click on the buttons.

It works out of the box with eclipse... a simple run Debug and it's done.

like image 64
Cristiano Fontes Avatar answered Sep 28 '22 02:09

Cristiano Fontes


The simplest approach is to use print statements. If you require more sophistication, either use an IDE (e.g. Eclipse, NetBeans, and etc.) in debug mode, or some logging mechanism (e.g. log4j).

like image 41
mre Avatar answered Sep 28 '22 02:09

mre


Personally, I use BlueJ debugger:

http://www.stfrank.com/debug-21.png

like image 41
Eng.Fouad Avatar answered Sep 28 '22 02:09

Eng.Fouad