Questions tagged as 'java-swing'

0
answers

I have a problem with the connection to the database

I get an error that has nothing to do with the library jdbc when linking a login to a table but no syntax errors appear this is the code    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException     at Sistemas_Registro.Login.i...
asked by 10.05.2018 / 04:06
0
answers

How to use JInternalFrame in an enum?

I want to organize the forms of my system, create a enum where I add all the data of each form (title, Querys, Name of the table, etc). It worked great until you try to put the JInternalFrame to which it belongs. What I want to do is have a pr...
asked by 07.05.2018 / 21:54
0
answers

Problems with date field in JFXTreeTableColumn of the JFoenix Library

It will not let me compile because it says that I can not cast the data, this is the error that I get when compiling my project. When removing the column from the Date, my project works with all the fields of the Table     
asked by 21.05.2018 / 19:31
0
answers

Error JTable getSelectedRow ()

I'm doing a project for class with a graphical interface. Well basically it shows the information in a JTable, then I should select a single row and press a button to perform an action on the data I have in the table. Well when I call table.g...
asked by 05.05.2018 / 02:04
0
answers

how do I fill a Jlist with an ArrayList from a JFrame with a different class?

import Empi.Menu; import java.awt.Color; import java.util.ArrayList; import javafx.scene.control.ComboBox; import javax.swing.DefaultListModel; import javax.swing.*; public class Lista extends javax.swing.JFrame { private Menu frame; pub...
asked by 12.05.2018 / 11:52
1
answer

Jlabel setText when i loop for = 5

I want a text to be displayed in a blinking label, but nothing works for me. So I tried something easier: a button that starts an account from 0 to 10 with a for when i is 5 shows the text in the label. But it is that...
asked by 25.04.2018 / 16:21
0
answers

Java repaint () not working

public class GameMotor extends JFrame implements Runnable{ static double FPS = 30.0; PanelJuego pj; Vehicule vehicule; boolean gameActive; boolean isPressed; public GameMotor(){ super("Race Game"); this.setDefaultCloseOperation(JFrame....
asked by 23.04.2018 / 02:27
0
answers

Load an lwjgl.opengl.Display in javax.swing

I have a Display object from the java lwjgl library: link the one that I have some 3D objects loaded, and I update the display every frame in the following way: In a class created by me, called DisplayManager: public static void updateDis...
asked by 26.04.2018 / 17:46
0
answers

How to put Expression display in the binding of a JComboBox?

I have a JComboBox in my application and it is filled through a list of objects, but it fills up showing all the details of the object and I only want to show the name of the object through binding . In a JList the option...
asked by 13.04.2018 / 19:21
3
answers

Counter character type Twitter

I want to create a Twitter counter that counts the characters of a JTextField and subtracts them as it is written, and when it reaches X quantity, 250 for example, it turns red alerting the user (it is for a form) and do not allow sending the co...
asked by 16.04.2018 / 11:43