Questions tagged as 'java-swing'

2
answers

how to round a jbutton in java?

I want to be able to round a jbutton in java, I thought it would be easy but apparently it is not, investigate and there was a library called look and feel2 that solved the problem but nothing .. here I leave the code: iniciar_sesion.putCli...
asked by 12.08.2018 / 23:51
0
answers

I get this error when connecting to the database "I / O error: Invalid number format for port number"

This is what I have inside the properties file: hostname=localhost port=1521 database=xe username=xxxxxxx password=xxxxxxx jndi =dbp_props And here the code package ConexionBD; import java.io.IOException; import java.io.InputStre...
asked by 13.09.2018 / 02:59
0
answers

Problem creating virtual keyboard

I have a problem that when I press the button of my application, that when I change the screen to write on the previous screen  for a moment it shows me the next image in full screen (this is shown when you press the ALT and TAB keys together),...
asked by 23.07.2018 / 03:06
1
answer

How to know the duration of a mp4 video in java?

I'm doing an audio and video player, with the interface I'm working on, it's EmbeddedMediaPlayer from the vlcj library. If anyone knows how to know the total duration of a video in java. Here is the link to the interface methods: link He...
asked by 22.07.2018 / 21:42
2
answers

How to compare a jtextfiel with a string

I must compare a data entered by the jtextfiel with the data that is a file txt and when comparing it it says:    Incompatible operand types string and JTextField The data I want to compare is the username and password: pu...
asked by 17.07.2018 / 19:20
0
answers

Modify button for a JTable without a database connection

I need a modify button in my program that when selecting a row in my JTable I can modify the selected row with what I have written in my JTextFields it is not necessary to be connected to a database, I would just like to know what I should write...
asked by 10.07.2018 / 05:23
1
answer

how to get x and cursor coordinates within a textArea javafx

I have a TextArea in javafx but do I need to get the position x, y or x coordinates, and the TextArea courses as I get them?     
asked by 14.07.2018 / 23:03
0
answers

How to use the "IF" statement with Mysql (JavaSwing)

I know I should learn a little more about java & MySQL, my apologies, but I need you to clarify this question or help me with a small code. What I want to do is the following: - I have a table of users but I want that when a user places h...
asked by 05.07.2018 / 03:57
0
answers

How to make the jDialog not go out in Java

I have a Jframe which contains a table and a button to add a new record, when I click I get a jDialog in which I am doing some validations in case you do not enter anything in the fields, the problem is that when you do not enter nothing I get t...
asked by 30.06.2018 / 07:25
0
answers

FILTER BY COMBOBOX ON A JAVA TABLE

I have a table the columns are (Code and Question) the questions are based by Specialty which are in a combo. I made the method search by name of the question in a text field but I also want to filter by combobox. Next I show my DAO and my view...
asked by 28.06.2018 / 06:25