G4P.setCursor(ARROW); cannot find symbol

edited October 2013 in Android Mode

Hey,

I am using G4P for designing the android app UI and G4PTools version is 2.2.3 I am getting this error cannot find symbol at the line G4P.setCursor(ARROW); I tried a lot to fix it but i couldn't. Please let me know where i went wrong. Any suggestions appreciated.

Code for reference:

Code in my project xyz

// Need G4P library import g4p_controls.*;

public void setup(){ size(480, 320, JAVA2D); createGUI(); customGUI(); // Place your setup code here

}

public void draw(){ background(230);

}

// Use this method to add additional statements // to customise the GUI controls public void customGUI(){

}

code in GUI flile:

/* ========================================================= * ==== WARNING === * ========================================================= * The code in this tab has been generated from the GUI form * designer and care should be taken when editing this file. * Only add/edit code inside the event handlers i.e. only * use lines between the matching comment tags. e.g.

void myBtnEvents(GButton button) { //CODE:button1:12356: // It is safe to enter your event code here
} //CODE:button1:12356:

  • Do not rename this tab!
  • ========================================================= */

public void button1_click1(GButton source, GEvent event) { //CODE:button1:429909: println("button1 - GButton event occured " + System.currentTimeMillis()%10000000 ); } //CODE:button1:429909:

// Create all the GUI controls. // autogenerated do not edit public void createGUI(){ G4P.messagesEnabled(false); G4P.setGlobalColorScheme(GCScheme.BLUE_SCHEME); G4P.setCursor(ARROW); if(frame != null) frame.setTitle("Sketch Window"); button1 = new GButton(this, 200, 145, 80, 30); button1.setText("test"); button1.addEventHandler(this, "button1_click1"); }

// Variable declarations // autogenerated do not edit GButton button1;

Thank You Rakshatha

Answers

  • Hey,

    Sorry, got the error G4P is not supported in android mode. Late realization. Thanks anyways.

Sign In or Register to comment.