Posts by JavaTech • 343 points
18 posts
-
1
votes1
answer79
viewsQ: How to use the Balloontip library?
I would like to use tooltips as in the library balloontip, but I haven’t found a way to use it, it seems to be different from toolTips conventional methods that use the method to be applied…
-
1
votes1
answer276
viewsQ: How to put icon in tooltip?
I’m trying to print a text on a tooltip, and at the end, put an icon, however I’m not getting it, I tried to do with html. The problem is that the image comes "broken", does not appear. What would…
-
2
votes1
answer331
viewsQ: How to know if a Jdialog window is open or closed?
I was wondering, how can I know if a screen, in my case a JDialog is open. Is there any event or way to know this? Note: I will use this "information" as a parameter in a condition, for example, if…
-
2
votes2
answers161
viewsQ: Position Buttons Scaled Table Using Layouts Manager
I’m having trouble positioning components. I have a table, and 3 buttons, and I’m trying to place the buttons above the table centrally. Example: I tried to use the FlowLayout, and the result was…
-
4
votes1
answer51
viewsQ: How to set content at position 0 with field disabled?
I need that when my component receives a text (it will receive through a query), the text is "set" at the beginning of the field, because in many cases, the text is extended and the beginning is…
-
3
votes1
answer991
viewsQ: Calculate age by taking a date of type Date
I’d like to calculate the age by taking the date of birth from the database, through the pojo. I was looking at how to do a date calculation, looking at this question: Calculate age per day, month…
-
1
votes1
answer223
viewsQ: How to remove listeners according to component status?
I have a Jlabel that receives an event, and would like to disable that event when the component is disabled (setEnable = false), and only activate it again when the component is enabled. what I did:…
-
1
votes3
answers467
viewsQ: How to get an advanced "for" score?
I was wondering if I could get some kind of control variable, from a for "advanced". For example: In a be normal, I do it this way: for (int i = 0; i < algumaCoisa.size() ou length; i++){…
-
1
votes1
answer118
viewsQ: Control event in the field?
I’m trying to treat a possible empty search when the user gives enter in a field without typing anything. I applied a keyboard event, and every time you press enter, the field performs a search. The…
-
0
votes1
answer658
viewsQ: How to order Jpanel in different positions?
Which Layout manager should I use to position the panels as in the illustrative image below. Edit: I have the Painelx Class, which I am in JFrame as position SOUTH, within that class I have 2 panels…
-
0
votes0
answers86
viewsQ: Ultialize same component in Jtabbedpane
Before describing the problem itself, let me explain what I’m trying to do. I will need to use some buttons that will do basically the same thing, only the actions they will apply change from a tab…
-
0
votes1
answer279
viewsQ: How to add an event to an icon?
I wanted to make it possible to open a screen, perform any action and so by clicking on an icon. I wanted to put different formats, so I don’t use one JButton. Because when passing the image to him,…
-
2
votes1
answer32
viewsQ: About the tables and Sequences that "comes" with Oracle
It occurred to me a question about the need to keep the tables that comes "ready" in oracle. When you create any connection, when looking at the tables you can see several tables and sequences, what…
-
0
votes1
answer93
viewsQ: What is the "function" in Oracle equivalent to a "set Generator"?
I’d like to know, what is the command on Oracle would be equivalent to SET GENERATOR GEN_ID_TABELA TO 5; (command made in FireBird) Because I would like to create a script with the inserts, but to…
-
0
votes2
answers788
viewsQ: How to add text + icon to the label?
I’m in trouble, so I can add a JLabel with a word before an icon. I put the image in my package, and passed the way, the problem is that the label is concatenating with the String (the word I put…
-
0
votes1
answer503
viewsQ: How to add scrollbar to a Scrollpane?
I have a panel, and I will have enough fields and buttons on it. I thought to use a JScrollPane not to make the screen so big. However, I’m not able to add this scroll bar. As I add a scroll bar…
-
2
votes1
answer1282
viewsQ: Change label color according to screen state
I’m having trouble changing the color of a label’s content according to the state of my screen (enabled/disabled). I wonder how I do so I can make him change the color. I made a very simple example…
-
1
votes0
answers158
viewsQ: Oracle physical database file
I’m having the same problem with that question : Where SQL Developer saves the BD file? more like I have no points to comment on, and ask right there, start a new "topic". I tried to do the way the…