Questions tagged as 'gui'

1
answer

How do I open a window inside a main Frame?

I'm doing a program and I'm creating the layout manually with swing using GridBagLayout and GroupLayout . I would like to know how to open a window within the program I am doing. For example: When the user clicks the Register...
asked by 05.02.2016 / 18:39
1
answer

Capturing events on a button

I'm starting in Java GUI and wanted to understand how event trapping works on a button, such as in the code below: SimpleGui1.java import javax.swing.*; import java.awt.event.*; public class SimpleGui1 implements ActionListener { JB...
asked by 03.08.2014 / 06:40
1
answer

c ++ - How to return a value to a previous window in Qt?

Hello, I'm developing a project where I will have many calls to new windows and need to recover a value of these windows to the main window (MainWindow). The problem is that it becomes impossible to get the returned value because, when closing t...
asked by 29.08.2016 / 16:34
1
answer

Is there any way to add more than one mask to a JFormattedTextField?

I have JFormattedTextField for a 'price' attribute. In it I say that its format is "R $ #####, ##". However, since I still do not know how to add events (I am learning) I would like to know if a new mask is needed (and if so, for examp...
asked by 15.06.2015 / 02:49
1
answer

Custom CellRender from JList

I would like to make a cell render with JPanel so they look like this: It would be composed of a JPanel , another JPanel inside that would have the background changed and two JTextField or JLabel I tried...
asked by 24.07.2014 / 21:01
1
answer

Is it advisable to write automated tests for the user interface?

When it comes to unit testing and TDD, we usually think of so-called "business logic" tests, which are based on requirements, etc. But we also find examples of user interface testing on the web, especially on the web, but sometimes on the des...
asked by 12.09.2014 / 15:10
1
answer

I want to "capture" the path and use it in another program

I have a "ransomware", in which I put a path to a folder and it encrypts / destroys I have a job to present in college where I have to create a graphical interface, I created a simple screen, with 2 buttons and a text cx, the text cx would be...
asked by 04.11.2018 / 23:31
1
answer

Doubt over icons in UX (Font-awesome)

I have a table (DataTables), and this table lists controls: These controls are accounting, fiscal, documentary and other activities, every month a company receives a control for each sector, and this control of each month can receive a fla...
asked by 07.11.2017 / 16:11
1
answer

Definition of container and component in swing

What are the precise Container and Component definitions in Swing? Why are these elements important for building the GUI?     
asked by 20.03.2016 / 02:49
1
answer

Problem executing a shell script using Zenity. Message: Gtk-Message: GtkDialog mapped without a parent transient. This is discouraged

When I run script.sh via linux shell, this message appears: Gtk-Message: GtkDialog mapped without a parent transient. This is discouraged. How do I resolve this? #!/bin/bash get_url () { url=$(zenity --entry --title="Youtube" --text="...
asked by 30.07.2018 / 02:04