Questions tagged as 'java-swing'

1
answer

Problem creating random lines in Java

I made a program that creates a line from two points in random positions in a JFrame. But I realized that when I minimized the window and re-maximized it, I would get a new line generated by two different points from the previous ones. What is g...
asked by 24.11.2018 / 05:29
1
answer

Enable the jbutton as long as the jtable is not empty. JAVA

It seems to be simple, but this is already taking me 2 days. I simply have a jTable and three buttons. Add, Modify and Delete. The data is added, modified and eliminated perfect. In the JFrame constructor where I have these components, the Modif...
asked by 21.11.2018 / 02:14
1
answer

Change the color of the text of a node after pressing the button

to see if you can help me. I need to change the text color of a particular node when a button is pressed because, that object is passed adds to a JList and to know that it is already listed. This does not create problems for me. And when it i...
asked by 21.11.2018 / 11:37
1
answer

JDesktopPane and JInternalFrame in JAVA MVC with Listeners

** Hello good day, in classes we had to see the MVC design pattern to implement it in a future project. Testing how to separate the code from the views and that I made one using JFrame -> 2 botones + JdesktopPane ; and each button op...
asked by 21.11.2018 / 08:49
0
answers

ERROR in syntax in SQL-JAVA

When running the program, everything works but when searching for the subject, it generates the following error    you have an error in your sql syntax check the manual that corresponds to your mysql server version for the right syntax to use...
asked by 20.11.2018 / 01:30
0
answers

send data from mysql to a faithful jtext netbeans

I have a table with data that absorbs from mysql .. when I give clk to the table I want the data that is missing in the table to be sent to a faithful jtext ..... the table is from cars and I want to send the details and that's a very long field...
asked by 20.11.2018 / 20:28
0
answers

Update a JTable within a cycle For

I have a problem when running a program. I am simulating a Processor with java and I am saving the variables in a list and showing them in a JTable, in this program I have a variable that is the one of cycles that must go in decrement every time...
asked by 17.11.2018 / 05:34
0
answers

How to open the previous panel in two different GUIs?

The problem is as follows, my program consists of a kind of A2 that is separated in a top panel (where I have customized closed buttons), a lower panel (where the icons of the different A2 modules go) and a large central panel where it shows the...
asked by 17.11.2018 / 09:38
1
answer

Problem to graph inside a JPanel

I have a problem, I want to put a graph that I did in a jframe in a jpanel inside that jframe. I'm working in Netbeans. Can someone solve it? The graphic I did was importing this class to draw a perlin noise function: link For the graphic u...
asked by 17.11.2018 / 21:34
1
answer

Fill a Polygon in Java

I'm doing a little program in which I have come across a detail when trying to draw a polygon in a JPanel in which I want the color of its edges to be fully configurable as well as its background. I made an attempt with the following code segmen...
asked by 25.11.2018 / 04:39