Questions tagged as 'swing'

1
answer

Vector for JTextField [closed]

I have to add 43 fields of text that the user will fill out the ones that will be used to have a total and that total will be used in my formula and I could not find a solution to reduce those lines that I did manually by assigning a variable ea...
asked by 26.09.2017 / 16:34
1
answer

How to call a JFrame from another JFrame with different classes

I am creating a little game of stone paper and scissors and I would like to know how I call JFrame of another JFrame , except that of different classes. Or maybe I should do it in different methods? I tried to do it here but it alwa...
asked by 15.03.2016 / 05:55
1
answer

Simulate the operation of a processor using java swing

I need to simulate the operation of a processor, using queue concepts. This processor will be color, where the user adds the color that wants to be processed and its execution time, this color needs to enter a queue, as the user adds more colors...
asked by 04.07.2016 / 14:07
1
answer

Copy the date of a JTextfield to a JDateChooser

I currently mirror JDateChooser to JTextField , but now I need to mirror from JTextField to JDateChooser . How do I copy and convert a date from a text field to JDateChooser? I use this way to send to JTextField...
asked by 01.09.2017 / 17:49
1
answer

How to add to the AbstractTableModel a combobox populated by database information?

I wonder if it is possible to implement a combobox in a AbstractTableModel so that it receives information directly from the database to fill. if possible could someone give me an example? Since I've always used DefaultTable...
asked by 04.01.2018 / 02:01
1
answer

Error accessing JTable line [closed]

On my system you are giving code line error ModelUsuario modelUsuario = new ModelUsuario(); ControllerUsuario controllerUsuario = new ControllerUsuario(); //recebe a linha selecionada int linha = this.jTableUsuarios.getSelectedRow...
asked by 25.04.2017 / 03:24
2
answers

Decrease space between two JPanel in netbeans prototype

Good afternoon guys. I'm using netbeans 7.4 to create a simple canvas. It turns out that in this screen (frame0 by default), I added two panes (JPanel). One to be the header and another to be the rest of the screen. I chose the layout of t...
asked by 02.06.2014 / 18:33
1
answer

Difference of dates with calendar in a TextField

I'm developing a hotel system and would like to automate some features in the system. I would like, when you select two dates being dataEntrada and dataSaida using Calendar, make the difference of days in a TextField name...
asked by 28.04.2016 / 00:57
2
answers

how to push the button using code, using the same effect as when the user presses

I am doing the game for java and when starting the machine will give a random click drying on 4 buttons and then the user has to press the same as the machine, but I do not know how to make the machine push the button package gênius; import j...
asked by 18.05.2016 / 06:17
1
answer

Organize items within JTexArea [closed]

How do I get items from a combobox and put it in a jTextArea, one below the other? Follow my code: public class PW_XML extends javax.swing.JFrame { int Grade; int Frequencia; int AttackRN; int DistanciaFrag; int PHAttac...
asked by 13.11.2018 / 00:53