SRL Archive - Java Help and Tutorials

How do you create a box data type in java?


rj

2013-08-29 21:06:37

How do you create a box data type in java? -.-

It's like impossible to google because every website is talking about a Jbox or something to do with the GUI

KingKong

2013-08-30 04:31:47

you mean a c type structure or simba record like TBox? If so you have to make a class with 4 member variables as everything in java must be in a class. So like this:


public class TBox{
int X1;
int X2;
int Y1;
int Y2;
}

rj

2013-08-30 15:05:46

From: KingKong
you mean a c type structure or simba record like TBox? If so you have to make a class with 4 member variables as everything in java must be in a class. So like this:


public class TBox{
int X1;
int X2;
int Y1;
int Y2;
}


thanks