Questions tagged as 'java-swing'

1
answer

How to fill Java Textbox depending on the value of 2 Combobox?

I have created a java form with NetBeans, a JFrame (Main), Dialog (Enrollment), Student Class, Student Manager Class. In Enrollment I have 2 comboboxes one for the cycle and another for the course, depending on that the txtcredito (Credito) and...
asked by 29.11.2016 / 04:02
1
answer

Error resizing Swing components in Java

I am developing a desktop application in Java Swing, which should work like this: Within the JFrame , there is a JSplitPane object that has a JList within a JSrollPane and a JPanel . The first object must modi...
asked by 13.09.2016 / 05:11
1
answer

JList does not fill up when I open a window

I have two windows, one that I open from the other. This is VistaAlbumesBuscar : public class VistaAlbumesBuscar extends JFrame implements ActionListener{ /** * Componentes de la ventana */ private Coordinador miCoordinador; privat...
asked by 22.05.2016 / 10:48
2
answers

how can I solve the String problem can not be converted to String []?

public ConsPacientesInternalFrame() { initComponents(); gestorpacientesControl = new controlador.GestorPacienteControl(this); String titulosTabla[] = ("identificacion","Nombres","Apellidos","FechaNac","Sexo");// esta linea...
asked by 15.10.2018 / 19:42
0
answers

MVC, problems when passing data from a View to a Controller

I have a class PaneClient , which uses CardLayout and "above" this view are other 2 views: paneAttributeSet and paneRegisterClient . The problem is when I try to call the method getFieldData() from the control...
asked by 06.11.2018 / 12:47
0
answers

Project GUI studentsNotes java

I'm new to the forum. They recommended it for programming topics. I am developing a small project with a GUI made with swing which is able to assign an array of String to a student object and an array of doubles to the same object. When the w...
asked by 30.01.2018 / 23:42
2
answers

Doubt with constructor when creating a JFrame. Java

I have a question at the time of being able to use the methods from a class that inherits from JFrame, like this: class MarcoLibre extends JFrame{ } In the constructor, I can access the methods that inherit from JFrame (and their correspon...
asked by 13.07.2018 / 19:38
1
answer

Keep distance between objects in Java [closed]

I have 3 balls within a JPanel that move at random speeds. Until then everything is fine. But I want the balls always to be at an equal distance, for example that the vertical distance between each one is 50 pixels. package jFrameLluvia...
asked by 09.03.2016 / 23:13
3
answers

String instead of jlabel

I have an interface with 60 jlabels, named like this: A1 A2 A3 .... A60 The idea is to change the color according to a condition, but I would have to put 60 "if". The idea would be to change the label by means of a string. The line of code...
asked by 31.03.2018 / 16:39
1
answer

How to avoid using the same Array in 2 different classes?

This question arose when creating multiple classes and having to create the same array several times in these classes: private final static String[] types = { String.class.getSimpleName(), Integer.class.getSimpleName(), Date.class....
asked by 14.11.2018 / 04:36