Questions tagged as 'java-swing'

0
answers

Can you name the elements of a two-dimensional array [closed]

I have a jTable that is modeled through an array of objects that in turn fill with data from a sql query, but I have two types of queries and one returns me (axis1, axis2, axis3,4 , 5,6) and the other (axis3, axis2,6, axis1,4), the point would b...
asked by 16.07.2016 / 00:02
1
answer

Avoid Deploying menu from icon in JFrame

Good afternoon. How can I prevent this menu from being displayed when I press the frame icon? Thank you very much.     
asked by 14.09.2016 / 23:14
0
answers

Doubts about set (Minimum | Maximum | Preferred) Size in java

I had a problem with a frame made in java to resize its components, and in one answer I found that the use of set(Minimum|Maximum|Preferred)Size methods were not recommended at all in establishing the dimensions of both the frame and its...
asked by 19.09.2016 / 00:25
1
answer

Icon is not compatible with String

I have this code and I want to use getLblFoto() to save a photo that the user chooses but every time I'm going to save it or every time I code it, it says getIcon is not compatible with String, which is the data type of the varible. pub...
asked by 11.06.2016 / 00:52
4
answers

How to add an else to a statement of more than one IF?

I have a problem in my project, I would like to know how to add an else statement to an "group" of If I have in my project, when I add the else of the group of if it tells me that the else has problems since it does not find the if. I hope you c...
asked by 11.03.2018 / 22:04
2
answers

Alternatives to Java Swing [closed]

As some may already know, Oracle has stopped the development of the popular graphical interface library Swing . I consider javafx as a relatively incipient technology to replace Swing , for which I would like to know other Java li...
asked by 23.01.2016 / 16:04
1
answer

PSQLException: syntax error on or near "user"

I have this error when using PreparedStatements to insert a User into a table in Postgresql called " user ", this action is carried out by crushing a button with the help of a PostgresHelper: PostgresHelper client = new Pos...
asked by 17.10.2018 / 19:25
2
answers

Back invisible a JPanel and make visible another

I have a problem making a panel visible after rendering another panel invisible. This is my JFrame, which contains a JPanel which in turn contains these 3 JButton as you can see: So that you have a clearer idea of wh...
asked by 12.04.2017 / 04:46
1
answer

Problem with Java and NetBeans

I have a MacBook Pro. The case that I installed NetBeans latest version and Java JDK, finally I installed the necessary tools. The problem is that, when I compile, I never open the terminal or the project ... if I make a print "hello" shows i...
asked by 02.05.2018 / 16:45
1
answer

Show Error Message if a String contains a numeric character

Well that's my question, I'm doing a form in java swing and when filling in the fields of the JTextField I want to launch an error window in case it contains some numeric character. I have been testing many things but I have not reached anything...
asked by 11.02.2018 / 16:48