Posts by Thomas Braz Pinto • 313 points
13 posts
-
0
votes0
answers94
viewsQ: How to draw on a Jdialog
Hello. I have a window in Jdialog, where I put several components, which is like this: And I had to do something kind of like this: as this screen is very large, I will post only part of her code:…
-
1
votes1
answer81
viewsQ: Calendar variable updates the other when the second is updated?
Hello, I’ve been messing with the Gregoriancalendar class and I’ve come across the following problem: You had to go from one point in the calendar to the other, then set the first point as the…
-
3
votes1
answer1249
viewsQ: Why should E.printStackTrace be removed?
Use Try catch as follows: try{ //meu código } catch(Exception E) { E.printStackTrace(); } using the netbeans IDE, it shows a hint, called "Print Stack Tracking", when I click it, it says…
-
2
votes2
answers451
viewsA: How do I change the increment of a button by another button?
Dude, you can use a variable to do this! It’s pretty simple: private int xi; private int xi2=1; private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { xi+=xi2; jLabel2.setText("Your…
-
6
votes1
answer392
viewsQ: How to calculate point cards
I am developing an application that matches the calculation of total hours worked on points cards, taking into account whether it is night time reduction or not and, if it is, what is the entrance…
-
3
votes2
answers409
viewsQ: How to avoid Noclassdeffounderror?
I am developing a project that has many classes, and many files. java, and from time to time, from time to time, this problem happens, randomly. Let’s say: A class that I already used, is working…
javaasked Thomas Braz Pinto 313 -
0
votes1
answer110
viewsA: How do I move with a character in Jframe Java?
Since you have a large Jpanel, it is possible that you have already added it to a Jscrollpane, so you can "see" the entire Jpanel, according to the bar, if you have not done this, do a search in…
-
8
votes1
answer1056
viewsQ: Transfer focus from a Jtable cell right after typing time
Hello, I’m using a JTable for typing time card. I need help with this, but I’ve already done a search and nothing helped me very much. I’ve tried to do it in many ways and I couldn’t. I have several…
-
0
votes1
answer588
viewsQ: backup of specific mysql content data via java
Hello, I have the following method that backs up my database: public static void makeBackup() throws IOException{ String caminho = "C:\\Program Files\\MySQL\\MySQL Workbench 6.3 CE\\mysqldump.exe";…
-
0
votes1
answer65
viewsA: Jtables Simultaneos
I was able to solve the problem using Mouselistener in the 2 tables: The only problem is that it has a small Delay to select the other table when selecting the first. tb2.addMouseListener(new…
-
2
votes3
answers1071
viewsA: how to select the entire row of a Jtable using Defaultcellrenderer which changes the color of the line
way I found to solve my problem: class celRenderModel extends DefaultTableCellRenderer { /** * */ private static final long serialVersionUID = 1L; ModelCartao mCard; public…
-
1
votes3
answers1071
viewsQ: how to select the entire row of a Jtable using Defaultcellrenderer which changes the color of the line
Hello, I’m working with Jtables and on such a Jtable I needed to leave some lines in differentiated colors, so I implemented the method class cellRenderModel extends DefaultTableCellRenderer { /** *…
-
1
votes1
answer65
viewsQ: Jtables Simultaneos
Hi, I was wondering if there’s a way to select 2 Jtables simultaneously, I’ll explain: i need some columns of my Jtable, do not change when the horizontal Jscrollbar is changed, according to my…