Questions tagged as 'java-swing'

0
answers

Passing data to a jDialog from a BD

Hello good night I want to pass data from my BD to a JDialog as you can see the code and the question that are in the table but I do not know how to pass the values of the combos and options to jDialog in advance thank you very much. private v...
asked by 27.06.2018 / 07:01
2
answers

I do not paint my JTABLE

I have this code DefaultTableModel dtm = new DefaultTableModel(); JTable tabla = new JTable(); dtm.addColumn("NOMBRE"); dtm.addColumn("APELLIDOS"); dtm.addColumn("DNI"); dtm.addColumn("LOCALIDAD"); dtm.addColumn("PRO...
asked by 29.06.2018 / 11:57
0
answers

space between the elements when maximizing with JFXMasonryPane

Someone knows how to re-create the space between the elements that is created by maximizing the window using the JFoenix library and its control JFXMasonryPane when opening this normal but when maximizing the window larger spaces are creat...
asked by 09.07.2018 / 20:28
0
answers

How to correctly configure the JAVA LookAndFeel?

I'm having a problem with the LookAndFeel of a desktop app developed in JDeveloper, the issue is that when running the app from the "Run", the LookAndFeel is "Nimbus", but when I do the deploy it runs with another LookAndFeel . Any recommenda...
asked by 19.06.2018 / 17:28
1
answer

Objects with vector attributes - relationship - Java

I have the Prestamo classes public class Prestamo extends Pago{ private Fecha[] fechasPago; public Prestamo(){} public void setFechasPago(Fecha[] fechasPago){ this.fechasPago=fechasPago; }...
asked by 22.06.2018 / 04:23
0
answers

how to attach HTML in a JTextpane?

JScrollPane scrollPane = new JScrollPane(); scrollPane.setBounds(20, 51, 239, 198); contentPane.add(scrollPane); JTextPane Pane = new JTextPane(); Pane.setContentType("text/html"); Pane.setEditable(false); scrollPane.setV...
asked by 03.06.2018 / 22:14
0
answers

How to move with the keyboard a figure created by code?

I created in Java a bitmap image that I want to move using the arrows on the keyboard. The image is saved inside a panel, do I have to move that panel? Or as I do because all the tutorials I see come with variable dimensions and my figure is not...
asked by 31.05.2018 / 04:41
1
answer

Display webCam in Java

I am creating a java application that allows me to visualize my webCam in a panel defined for that purpose, but I can not. I'm using bookstores    bridj-0.7.0.jar, slf4j-api-1.7.2.jar, webcam-capture-0.3.12.jar, slf4j-simple-1.7.25.jar I...
asked by 30.05.2018 / 23:53
0
answers

Development of tetris in java

I have been commissioned for a tetris final project and I have no idea how to do it since I have not worked with graphical interfaces. They are asking me to use Jpanel and JFrame for the graphic part, and the logical part in a matrix. I have...
asked by 24.05.2018 / 06:22
0
answers

Problems with setPaintLabels and jslider

I have a question, I've been having problems with the setPaintLabels method in a jslider, when I use the method it makes the jslider disappear and appears only if I fully expand the window since I use the setResizable (false) if someone knows wh...
asked by 23.05.2018 / 07:13