Questions tagged as 'gui'

0
answers

Problems with OVERLAY by OGRE

I have problems making use of OGRE overlays: playState.h : #include <OgreOverlaySystem.h> #include <OgreOverlayElement.h> #include <OgreOverlayManager.h> #include <OgreFontManager.h> #include <Og...
asked by 12.05.2017 / 17:02
1
answer

The repaint () method is not recognized within a [closed] timer

This code works for me in the constructor of my jframe, it prints me an image in a label. Now I have a checkbox and when pressed I want to put the image for a second because of the timer but I mark error the repaint () method asks me the Netbean...
asked by 08.03.2017 / 23:03
2
answers

Detect when a text does not fit in a UI Label?

In my app I put a UILabel and inside I put a text, but apparently the text is longer than it can fit, and I would like to know if you can detect when a text is too long, so you can download the size of the font using code with while...
asked by 22.02.2017 / 18:06
1
answer

Gui Java Keyboard events

I have the following code JPanel pb = new JPanel(); JLabel b = new JLabel("Buscar por ..."); JTextField bt = new JTextField(10); JButton bb = new JButton("Lupa"); // bb.setBackground(color); bb.addActionListener(new Busqu...
asked by 14.07.2017 / 15:12
1
answer

How to make a Foreach in a SQLite DataReader?

I'm trying to get the data from an SQLite query and then save the fields in a list and show them to the user through a MessageBox. I have two problems: 1) I do not know if what I'm doing is fine. 2) I do not compile the code, and I do not know w...
asked by 26.06.2018 / 02:14
1
answer

How to store product names in the Database in variables and then display them in a WindowsForms MessageBox?

I have the following code that is executed when you click on a button that has the caption "CLOSE TABLE". What the code does is erase all the info from that table in the database! So far it's fine. What I need now is that before I delete them I...
asked by 25.06.2018 / 23:15
1
answer

Pattern for the creation of tabs of a JTabbedPane

I have a class AdminUI2 , which contains a JTabbedPane with 6 tabs and each tab has its respective JPanel and each JPanel contains its respective components. The problem that arises is that each JPanel created makes the cl...
asked by 16.10.2018 / 10:01
1
answer

Problems with ImageIcon

Hello this is the exercise 9.8 of How to Schedule in JAVA of Deitel Edition 10 I can not see the icon "GUItip.gif" displayed This is how the GIF is stored Here next to the two labels should appear the gif this is the GIF i...
asked by 10.03.2018 / 19:06
1
answer

Java swing duplicates the JTextField when resizing

Good, I've been studying a bit of user interface design in Java and I have a problem, the case is that when you add a text entry to a JPanel (With JTextField) and change the size of the window , several more cells are created, when I understand...
asked by 26.01.2018 / 11:59
0
answers

How to use set (handles,.) in a GUI for MATLAB What does the error refer to as Undefined variable "handles" or class "handles.Data_a1"?

At the time of using the GUI and it does not allow me to establish the values obtained in an editable box, I also use a function to determine the value of the coefficients in the program but the data is deleted from them, as I can solve this pro...
asked by 06.12.2018 / 00:43