Posts by Vinicius Leonardo • 233 points
15 posts
-
2
votes3
answers386
viewsA: Use of the split method
Good morning, I was able to solve it this way: for (Alertas a : lista_alertas) { String[] usrs = a.getUsers_receive().split(","); for (String usr : usrs) { if (usr.equals("vinicius.candido")) {…
-
3
votes3
answers386
viewsQ: Use of the split method
Good morning guys, sorry my ignorance for the simple doubt. I’ll get right to the point. I have a list of alerts List<Alertas> alertas; This list there are several messages sent to some users,…
-
2
votes2
answers660
viewsA: Classformaterror: Incompatible Magic value 0 in class file
I updated the JDK version where you solved the problem.
javaanswered Vinicius Leonardo 233 -
2
votes2
answers660
viewsQ: Classformaterror: Incompatible Magic value 0 in class file
My project was working normally. After restarting my machine, running it through the IDE returns the following: Exception in thread "main" java.lang.ClassFormatError: Incompatible magic value 0 in…
javaasked Vinicius Leonardo 233 -
0
votes2
answers172
viewsQ: Sum mm:ss of a jtable column
Good afternoon, I know that the way I’m going to explain it is difficult to help me. I have a jTable that contains a column where times are shown, those times in mm:ss. I need to average between…
-
0
votes2
answers821
viewsQ: Jcombobox inside a Joptionpane
Good morning, I have a list of some reasons private List<Motivo> motivos; And I need to fill a jComboBox with this list and get the selected option. Currently I did with Messagedialog where I…
-
1
votes1
answer1071
viewsQ: Minimize application to system tray
I made an application as requested by a client, but at the end of the project he informed me that the application should open in Tray Icon, and when minimized continue running in Tray My application…
-
2
votes1
answer448
viewsQ: Initial focus on the Joptionpane OK button
I got the following JOptionPane: As you can see the focus is on the Cancel maestro option I need this focus to be on OK, but I have no idea how to do that. My code: JPanel panel = new JPanel();…
-
1
votes1
answer1153
viewsQ: Fill text field with return from another window
I have a JTextField instantiated in the class time relay. By clicking on that JTextField, he calls another JFrame search. When performing a search on this new JFrame and click on Confirm, I need him…
-
0
votes1
answer700
viewsQ: Refresh in jframe automatically
I will start a project where I will do the control of queues in java, normal queues even, as if you arrive at the bank and see on the screen your name. I’ll give a summary of the project to be…
-
3
votes2
answers2015
viewsQ: Simple equation of division in java
Good afternoon, I am beginner in java and need to do the following calculation in the language For example: (8/7) *100 = 114% (4/7)*100 = 57,14% (90/112)*100 = 80,35% But the way I’m developing it…
javaasked Vinicius Leonardo 233 -
0
votes1
answer435
viewsQ: How to minimize Main Frame when opening a new frame
I have a little problem, I created an application in java with a menu that calls several screens. When opening some screen, I wanted my application main screen to be minimized. I tried with…
-
1
votes0
answers63
viewsQ: Simple error trying to use Hibernate + JPA
Good morning, I’m starting to create a simple register with Hibernate. I have the following classes Java link. http://pastebin.com/vgDn9U3Y Hibernate.cfg.xml http://pastebin.com/06kA87Lv Form action…
-
1
votes0
answers726
viewsQ: Automate IE configuration process for NF-e issuance
To send nf-e within my system I need some parameters of Internet Explorer to be properly configured as follows: • Mark SSL options • Uncheck TLS options • Uncheck Check server certificate…
-
3
votes2
answers84
viewsQ: Doubt with function js
Good morning, gentlemen. First of all, excuse my question, I’m not a web programmer and I need to do something I’m a layman. I am trying to give a "simple" maintenance on a Dashboard here from the…