OK, got it!


1 2 3 4 5 6 7 8 9 10 11 | if (!getObjects(RedSquare. class ).isEmpty()) { RedSquare RSquare=(RedSquare) getObjects(RedSquare. class ).get( 0 ); if (RSquare.FoundAtY400) { ABusRight.setText( "00002301" ); ABusRight.setBackground(Color.RED); BBusRight.setText( "00000FFF" ); BBusRight.setBackground(Color.GREEN); } } |