Posts by Dongabi • 415 points
10 posts
-
0
votes2
answers922
views -
-1
votes1
answer178
viewsQ: Layout of text box
I’m trying to do something like those forum elements, which show a div with a user photo and a space with some text on the right, you know? I’ve tried to position one on the other side using the…
-
3
votes2
answers998
viewsQ: Animation when changing the display into HTML
Hello my dear programmers friends of this our Brazil! I need your help on the following question: I have a button that when pressed changes the display from a div to block. So: CSS #form-pergunta {…
-
1
votes1
answer933
viewsQ: Always focus on Jframe
I need that when I click on some button of my application the focus returns to the JFrame. Is there any method for this? I could call the method MeuFrame.requestFocus() in each ActionPerformed, but…
-
3
votes1
answer766
viewsQ: Exception in thread "AWT-Eventqueue-0" java.lang.Stackoverflowerror
I have this mistake here: run: Exception in thread "AWT-EventQueue-0" java.lang.StackOverflowError at sun.awt.Win32GraphicsConfig.getBounds(Native Method) at…
-
4
votes1
answer173
viewsQ: Problems with new in Java
Why every time I use new in my class, for example: if(e.getSource() == levelButton) { new PainelNivel().setVisible(true); } Java executes this command, i.e., shows the class Panel and opens the…
-
8
votes1
answer9291
viewsQ: Execute cmd commands from Java
I wonder how I do to execute cmd commands in java. Well, I did that: import java.io.*; public class Commands { static final Runtime run = Runtime.getRuntime(); static Process pro; static…
-
7
votes2
answers1998
views -
1
votes1
answer670
viewsQ: Toggle action from a button
I’ve been searching the internet and I haven’t found anything that can explain me how I do to switch the action of a button in Java... Example: I have a button that when I press it I want it to…
-
3
votes1
answer1530
viewsQ: "Transparent" text in java
I wanted to do a text similar to this: This "transparent" text, when clicked it disappears and you can start writing in the dialog box... someone knows how to do it in Java? Help me, people, help…