Thank you very much, I did not know that. I just could not remember the name of the class which handled that.
Type: Posts; User: imsuperman05
Thank you very much, I did not know that. I just could not remember the name of the class which handled that.
I'm writing a custom notepad as a challenge for some youngsters. I need a text field so the user can write their data into. For some reason, when I try to go out of bounds or hit the button "Enter"...
No it's not that; I'm 100% positive.
I still need help setting the background.
Oh wow, didn't know that lol. Haven't touched Java 7 in a while, just opened on Eclipse 4.1 hehe.
Sorry, wasn't aware. I won't spoon-feed anymore.
I've used the scanner class before, and I know how to use the delimiter and all that, but I have come to a problem. For my program to work(it parses data into a text file which is being separated by...
I looked through the JTextArea class but not the component class, thank you very much though. Will work with this.
I looked through it thoroughly, all I've found was the setFont() method.
I created a basic notepad to store anything i need and to load it after, just for learning purposes mainly and can be useful later on. I got everything basically working now, but I want to add a...
I've been thinking about just writing a basic game, but I don't know how to. I want to start out with a tic tac toe game. Which will display the images and the checkmarks.. I think it will be...
import it.
static List<Car> cars = new ArrayList<Car>();
Or?
Car[] cars;
It's 335, 478.
Thank you so much for you're time, I appreciate it. This will prob be the last thing I need.
@First
forgot it, i'll just read through it all.
@Second
static int x = 414;
static int y = 315;
image.getRGB(x, y);
I keep getting an ArrayOutofBoundsException, I don't understand what...
No, sorry. I'll rephrase it.
Here's the source code.
public static void main(String...args) {
//while(true) {
try {
rob = new Robot();
rob.mouseMove(x, y);
...
I'm very sorry sir. Yes, I'm looking over it now, and now i'm using BufferedImgae.
Updated thread, down to one problem. Any help is appreciated now.
Thank you ever so much, sir. This is exactly what I needed.
I did look at it though, and I can't seem to find out how to right click.
Well, I meant something along the lines of this..
SAPPHIRERING(1637, 2550, 7, 18, 719, 114, 1),
SAPPHIREAMULET(1692, 1727, 7, 18, 719, 114, 1),
SAPPHIRENECKLACE(1656, 3853, 7, 18, 719,...
Are enums meant to be hardcoded? Meaning to hold tons of data?
Sorry that i'm posting a lot, I just really want answers and this forums is a good place to find answers. I want to learn a lot,...
if ur not gonna help then dont post
What API doc? Robot.class?
First question was that I was trying to get the mouse to right click via java.awt.Robot.
Also, how would I get Java to notice where it's positioned at? Like if it's in a certain place which...
but then it won't execute the process?