It is in the middle of the same line.
Type: Posts; User: startas
It is in the middle of the same line.
try {
thread2.join();
}
catch(InterruptedException e) {
System.out.println("Exception caught : " + e);
}
It works.
http://s8.postimg.org/3vpwyclit/new.png
I scroll to position nr 1, to see my code, and when i start writing in the middle of screen, scrollhell just scrolls back to position number 2 automatically...
I dont need line wrapping, i need to disable autoscrolling.
netbeans automatic scrolling is just driving me crazy, as fast as i start writing, horizontal scrollbar position just resets, i cannot handle it anymore, how to disable it?
Well, that's shame, x^2 is simply x*x.
I'm trying, but results are not good. In this case google is more of an enemy, because there is no good articles about it, just a few about one or another thing, but no one is about all things...
Yeah, i tried, but it's still unclear :
1) If i use Graphics/2D, then i convert String into Graphics, there is no usage of real text fields/areas, just converting text into graphics and working with...
Well, i dont know where to start, i only googled for these things, but i found very little info about shadows and other things on text in java, so it's still not clear, if:
1) java fully supports...
So, i use JTextArea in my program to show multiline text with custom font, is it possible/and easy to add a shadow to text in JTextArea ?
And second question, maybe it's possible to use css styles...
If you mean to set a picture on jbutton, you can do that with
button.setIcon(new ImageIcon("full image path here(c:/my/images/bigboom.jpg), or path in working directory(boom.png), image types of...
Thanks, i wrote mouseEntered(), mouseExited(), mousePressed(), mouseReleased(), mouseClicked() methods and it works perfectly.
So, i have a JButton and a JTextField, and i need a way to connect both elements mouse events and make them act like JButton's mouse events. I.e., if i click on text field, button is clicked too, if...
Well, you are not converting your new code of lower case character to a real lower case character, you just pick a number and put it to string, you need to use "Character.toChars(97)".
I'm making a simple game, and part of the game is elements, that randomly appears/disappears at random positions, i realised these elements via jbutton, and i'm looking for the best way to keep these...
Well, visually. I have a few panels-tabs, tabs has their own elements, and i need a way to add somewhere element, which will be visible over all other elements, so far the only way i found is to add...
So the only variant to keep one element over every other element is to add that element directly to frame, i.e. JFrame frame.add(button, 0) ?
If i have a simple JTabbedPane tabbedPane, and i add a few tabs to it with tabbedPane.addTab("name", JPanel panel), is it possible to add the same one element, i.e. JButton, to all of those...
You should post declarations of you variables, there might be something with it, also, you can check your grammar, there is spelling mistakes in almost every word, and you can write your program in...
Ok, my bad, update : it's not the point if it is jpanel or jlabel or jbutton or whatever, the point is, i can set frame's size i.e. to 1300x700, but i cant fit other elements into frame's work place...
It will be just a program for myself, so no different pcs, especially devices, and screens. I'm just starting to build my programs gui, but initial code looks like this :
import...
I dont like layout managers and the way they work, so i dont use them, i do everything manually, it is much easier to place elements in the right place manualy, layout manager is like stupid AI in...
2308
So, i noticed a little misbehavior in java with all the sizes of jpanel. When i set bounds of jpanel, i.e., setbounds(0, 0, 100, 100), then the first point's (0,0) position is normal, but the...
I will try it later, and please read everything, not just what you want.
setSelectedIcon is not what i needed (or just a wrong name choosen by devs), i have made my own real toggle buttons. I have a few more questions, i did not google about them yet, but maybe you know...