JAVA Help request... GUI related
So I want to make a similar to nodus where it has the arrow keys to change tabs. I've tried this: (using integers)
//Else of debug menu
private int swag = 3
If(checkKey(Keyboard.KEY_RIGHT))
{
swag = 4. //scrolls to next tab?
}
If(swag = 4)
{
Drawrect blah blah blah
}
//repeat for checkKey left and swag = 2
Any help? Solutions? Or am I looking at this wrong. Please don't tell me I'm noob or to look at nodus code because I know or have done both.
Noob out