Questions tagged as 'swing'

1
answer

How to do basic math operations?

I'm developing a Java calculator for a college assignment where you can do the four basic operations (addition, subtraction, multiplication and division) plus a square root of a number, but for now I've only been able to do the calculator sums u...
asked by 13.11.2014 / 17:25
2
answers

How to increase the width of a JComboBox?

How do I increase the width of a JComboBox in Java? The layout I'm using is as follows: setLayout(new FlowLayout(FlowLayout.LEFT));     
asked by 01.02.2014 / 03:26
1
answer

Autocomplete JComboBox

I have JComboBox that autocomplete is only searching for the beginning of the word and need that when the user types search for any occurrence within the word, that is the form that autocomplete of jQuery works . Ex: List of Cities:...
asked by 13.02.2014 / 14:05
1
answer

Moving circle on screen with thread and jFrame's paint method

Studying the drawing method of JFrame in the case paint and wanted to make a circle move on the screen using threads , but the circle does not move right. Maybe I would need a movimenta method to define where I want to put...
asked by 28.04.2014 / 05:07
1
answer

JTable getValueAt () behaving differently than expected

I have a JFrame where there is a JTable that displays some data. When the user selects some records and clicks a certain button, these selected records must be deleted. When only one record is selected, everything works perfectly, but problem...
asked by 19.11.2016 / 02:22
1
answer

How to close jframe from an actionPerformed? [duplicate]

I created a login java application, but I can not close the screen during ActionPerformed of the button with this.dispose(); What do I do to make it work? Code: import java.awt.EventQueue; import javax.swing.JFrame; imp...
asked by 23.11.2018 / 19:49
1
answer

How to limit and display the number of characters in a JTextArea

I have a supplier registration window, and I would like to enter a jTextArea so that the user has the option to enter any comments about the supplier. The idea is to limit the number of characters to be typed and show the amount...
asked by 14.07.2016 / 20:15
0
answers

How to pass data from a JTextField to a Postgresql Date field [duplicate]

I would strongly urge you to help me solve a Date (SQL) data insertion problem for new student enrollment in the Crud project developed by me in the code below. The method containing the INSERT INTO command does not insert a new record in the...
asked by 07.11.2018 / 19:00
0
answers

Run .jar application made in swing [duplicate]

I created a simple calculator with just the function of sum. When running through the IDE it works normally. So I built and tried running the application outside the IDE, but I did not get any success. Could you tell me how to do it? I alre...
asked by 20.10.2018 / 18:01
0
answers

I can not set the JAVA textField [duplicate]

I have this frame, where clicking the 'SEARCH PRODUCT' button opens another frame with the list of products registered: public class GeracaoOcamento extends javax.swing.JFrame { public GeracaoOcamento() { initComponents();...
asked by 07.10.2018 / 02:37