×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Mar 2009
    Location
    Delhi
    Posts
    223

    j2me polish : showing syntax error in polish.css file and syntax is right

    .mainScreen {
    padding: 5;
    padding-left: 15;
    padding-right: 15;
    font-color: #6262d4;
    font-style: bold;
    font-size: large;
    background {
    color: white;
    }
    background-image: url( flames.png );
    background-anchor: left | bottom;
    layout: horizontal-expand | horizontal-center | top;
    screen-change-animation: verticalflash;
    view-type: dropping;

    }




    My polish.css is showing error in above code. error is in above written bold lines
    Error is : Syntax Error


    and in addition to that plz tell me how can i use my polish.css in my j2me file.i knw i can use by mentioning //#style in j2me file.. but it shows error while i doing this...
    and the error is:


    [javac] E:\My Documents\WorkSpace2\polishform\build\test\Generic\DefaultColorPhone\en_US\source\Main.java:24: cannot find symbol
    [javac] symbol : constructor Main(java.lang.String,http://www.easywms.com.TestFormClass...olish.ui.Style)
    [javac] location: class Main
    [javac] myform = new MyForm("Form Include", this, de.enough.polish.ui.StyleSheet.mainscreenStyle );
    [javac] ^
    [javac] 1 error

  2. #2
    Super Contributor
    Join Date
    Jun 2007
    Location
    Mumbai
    Posts
    539

    Re: j2me polish : showing syntax error in polish.css file and syntax is right

    Hi poojs,

    [javac] E:\My Documents\WorkSpace2\polishform\build\test\Generic\DefaultColorPhone\en_US\source\Main.java:24: cannot find symbol
    [javac] symbol : constructor Main(java.lang.String,http://www.easywms.com.TestFormClass...olish.ui.Style)
    [javac] location: class Main
    [javac] myform = new MyForm("Form Include", this, de.enough.polish.ui.StyleSheet.mainscreenStyle );
    [javac] ^
    [javac] 1 error
    can u post the ur code for 2-3 lines around 24th line of Main.java. i dont see any issue with polish.css code section.
    au revoir
    Prakash Raman

  3. #3
    Regular Contributor
    Join Date
    Mar 2009
    Location
    Delhi
    Posts
    223

    Re: j2me polish : showing syntax error in polish.css file and syntax is right

    below is my code frm line 15 to 40


    public class Main extends MIDlet implements CommandListener
    {
    private MyCanvas canvas;
    private TextField userName,pswd, accountno;
    private TextField amt, debitamt,creditamt, balance;
    public String label,pvarinfo,bankinfo;
    private Display d1;
    private Form f1;
    String[] payment;
    private Ticker ticker,tickerbank;
    Image image;
    private Command submit,submitinfo,verify,login, cancel, exit, btmm, btb,btm,submitp;
    String[] stringElements = {"Micro Finance", "Mobile Payments"};
    ImageItem imageItem, imageItem1, it1, it2, it3;
    List pvar, bank;



    public Main()
    {

    ticker = new Ticker ("Payments at Anywhere and Anytime");
    canvas=new MyCanvas(this);

    }



    but polish.css is also showing syantax error although the application is running ok types

Similar Threads

  1. i cant build helloworld project
    By akhin in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 2
    Last Post: 2008-12-22, 13:38
  2. carbidec++ helloworld project problem
    By akhin in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 0
    Last Post: 2007-03-11, 13:40
  3. carbide build problem help please
    By berkcekisbas in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2006-09-26, 19:41
  4. g++ Compilation Problem - Please Help
    By gilly_kumar in forum Symbian
    Replies: 0
    Last Post: 2005-09-12, 16:22
  5. Cannot compile SDK's examples for 7650 platform...
    By midletsoft in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2003-08-12, 19:11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×