Post Fri Jul 05, 2013 11:03 am

Method not working

Hi,

I have a method in JTicketLines that change the look of the sales view.

Normal look
Image
Changed look
Image

The name of the method is changeColor(int i)
Method:


  Code:
public void changeColor(int i){
        if(i==0){
           m_jTicketTable.setBackground(new Color( 50,153,204));

        }
        if (i==1){
            m_jScrollTableTicket.setBackground(jpt.defaultColor);
            m_jTicketTable.setBackground(jpt.defaultColor);
        }
    }



Now, what I want to do is call that method from JCatalog, but I dont know how.
Can anyone help me?