Posts by Javinha • 143 points
8 posts
-
2
votes1
answer364
viewsQ: Arrange Boxes vertically
I wanted to put panels in specific positions, so I tried to combine some layout managers, but I still didn’t get the result I need. I tried to use the gridLayout, so the components wouldn’t be…
-
4
votes1
answer426
viewsQ: How to make more than one panel transparent?
Implementing the answer of this issue, i managed to make a panel transparent. However, in order to organize the way I want, I wanted to use more JPanels, with different layout managers. But when I…
-
1
votes1
answer465
viewsQ: Position Jpanels vertically
I am trying to add 4 panels, so that they are below each other. So, I decided to use the BorderLayout, together with the "positioning" (NORTH, SOUTH etc.), pass a index, however, he ends up skipping…
-
2
votes2
answers114
viewsQ: Error while trying to compare date
I’m trying to create a validation, to know if the user is at least 12 years old. I tried to base myself on that question: Comparison between dates. However, I believe I’m comparing it wrong, since…
-
0
votes1
answer1069
viewsQ: catch and set value of a Jdatechooser
I created a JDateChooser own, so I can make more personalized changes to it later. The problem is, I realized, if I pick a date on it, it just gives me the current date. For example, if I choose…
-
2
votes1
answer374
viewsQ: How to change the background of a Jdatechooser?
I have a JDateChooser and I’d like to change the background when he wins focu, but I’m not getting it. I tried to do some ways: dataChooser.getDateEditor().getUiComponent().setBackground(new…
-
0
votes1
answer1020
viewsQ: Creating field with weight format with two decimal places and 3 houses before the comma
I’m trying to create a "weight" field, but I’m having some problems. The weight can vary from 2 to 3 decimal places before the point. For example, it could be 80.00 Kg or 100.00 Kg. However, the way…
-
0
votes1
answer148
viewsQ: Create method that takes typed time
How can I create a method that takes the time typed in a field? It will take the contents of the field to save in the database. I use pojo and dao. I made a very short example, what I need to do is…