public class Exercise {
/*skipped fields*/
public void loadScene() {
Stage WindowExercise=new Stage();
panel1=FXMLLoader.load(getClass().getResource("src//application//Window1(Otgimanie).fxml"));
Scene scene1=new Scene(panel1,600,270);
WindowExercise.setScene(scene1);
WindowExercise.show();
}
public static void main(String[] args) {
Excercise ex = new Exercise();
ex.loadScene();
}
}
java.nio.ByteBuffer bb = java.nio.ByteBuffer.allocate(3+outByte.length);
bb.put(newArray);
bb.put(outByte);
send(bb.array());