Why repaint is automatically called

in the slot machine program below, you try to run it, play once , after that you leave the bet textfield to be 0, and click play again, when you click down the JOptionMessage dialog, three slot is atomatically set back to lemon, but it shoudn't be that, I didn't call repaint in my program, why
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
public class Slot extends JFrame implements ActionListener,Runnable
     ImageIcon img;
     JButton play;
     JPanel leftCanvas;
     JPanel centerCanvas;
     JPanel rightCanvas;
     JTextField amount;
     JTextField bet;
     SpinThread t1;
     SpinThread t2;
     SpinThread t3;
     Thread t;
     int credit,betAmount;
     AudioClip audioClip=Applet.newAudioClip(this.getClass().getResource("win.au"));
     public Slot(String s) {
     /** Constructor */
      super( s );
      setSize(300,200);
      img = new ImageIcon("images/lemon.gif") ;
      Container c = getContentPane();
      c.setLayout( new BorderLayout() );
      /** Panel with Label showing title */
     JPanel title = new JPanel ();
      title.setFont(new Font("TimesRoman", Font.BOLD, 16));
      title.add(new Label("Slot Machine Simulation"));
      c.add(title, "North");
      /** Panel with 3 Canvases showing pictures */
      JPanel slotPanel = new JPanel(new GridLayout(1, 3));
      leftCanvas = new JPanel();
      centerCanvas = new JPanel();
      rightCanvas = new JPanel() ;
      slotPanel.add(leftCanvas);
      slotPanel.add(centerCanvas);
      slotPanel.add(rightCanvas) ;
      c.add(slotPanel,"Center") ;
      /** the Bottom panel showing the credit, betting amount and play button */
      JPanel messagePanel = new JPanel(new GridLayout(1,3));
      /** credit panel */
      JPanel creditPanel = new JPanel();
      creditPanel.setLayout(new FlowLayout()) ;
      JLabel label1  = new JLabel("Credit") ;
      creditPanel.add(label1) ;
      amount = new JTextField("1000") ;
      amount.setHorizontalAlignment(JTextField.RIGHT) ;
      amount.setEditable(false) ;
      creditPanel.add(amount) ;
      messagePanel.add(creditPanel) ;     
      /** betting panel*/
      JPanel bettingPanel = new JPanel();
      bettingPanel.setLayout(new FlowLayout()) ;
      JLabel label2  = new JLabel("Bet") ;
      bettingPanel.add(label2) ;
      bet = new JTextField(3) ;
      bet.setText("50") ;
      bet.setHorizontalAlignment(JTextField.RIGHT) ;
      bettingPanel.add(bet) ;
      messagePanel.add(bettingPanel) ;
     /** button panel */
      JPanel buttonPanel = new JPanel();
      buttonPanel.setLayout(new FlowLayout()) ;
      play = new JButton("PLAY") ;
      play.addActionListener(this) ;
      buttonPanel.add(play) ;
      messagePanel.add(buttonPanel) ;
     /** add the last panel to the south end */ 
      c.add(messagePanel,"South") ;
      credit=Integer.parseInt(amount.getText());
      betAmount=Integer.parseInt(bet.getText());
   public void paint(Graphics g)
   {  super.paint(g);
          img.paintIcon(leftCanvas,leftCanvas.getGraphics(),0,0);
      img.paintIcon(centerCanvas,centerCanvas.getGraphics(),0,0);
      img.paintIcon(rightCanvas,rightCanvas.getGraphics(),0,0);
   public void check()
   {credit=Integer.parseInt(amount.getText());
    betAmount=Integer.parseInt(bet.getText());
        if(t1.index==t2.index&&t2.index==t3.index&&t3.index==6)
             credit=credit+1000000;
             audioClip.play();
             //Splash win=new Splash();
             //win.setSize(200,200);
             //win.setVisible(true);
    else if(t1.index==t2.index&&t2.index==t3.index)
            credit=credit+betAmount*100;
        else if(t1.index==t2.index||t2.index==t3.index||t3.index==t1.index)
             credit=credit+betAmount*10;
        else
             credit=credit-betAmount;
        amount.setText(String.valueOf(credit));
        bet.setText("0");
   public void actionPerformed(ActionEvent e)
        if(e.getSource()==play)
             credit=Integer.parseInt(amount.getText());
        betAmount=Integer.parseInt(bet.getText());
             if(betAmount<=0)
             JOptionPane.showMessageDialog(this,"Bet must be positive!");
       else  if(betAmount>100||betAmount>credit)
             JOptionPane.showMessageDialog(this,"Bet exceed the upper limit(100) or not enough credit!");
       else if(betAmount<credit&&betAmount<=100&&betAmount>0)
            t1=new SpinThread(leftCanvas,20);
        t2=new SpinThread(centerCanvas,40);
        t3=new SpinThread(rightCanvas,60);
        t=new Thread(this);
         t.setPriority(1);
            t1.start();
             t2.start();
             t3.start();
             t.start();
   public void run()
            boolean done=false;
            while(!done)
                if(!(t1.isAlive()||t2.isAlive()||t3.isAlive()))
                     done=true;
            check();
   public static void main(String[] args)
         Slot mySlot=new Slot("Slot Machine Simulation");
         mySlot.show();
         mySlot.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
class SpinThread extends Thread
     JPanel p;
     int delay;
     ImageIcon[] img={new ImageIcon("images/ball.gif"),
     new ImageIcon("images/bar.gif"),new ImageIcon("images/bell.gif"),
     new ImageIcon("images/fruit.gif"),new ImageIcon("images/lemeon.gif"),
     new ImageIcon("images/seven.gif")};
     int index;
     public SpinThread(JPanel p,int delay)
          super();
          this.p=p;
          this.delay=delay;
     public void run()
          int i=0;
          while(i<delay)
               index=Math.round((float)Math.random()*5);
               display(p.getGraphics());
               try{
                    sleep(delay);
               }catch(InterruptedException e){;}
               i++;
     public void display(Graphics g)
       img[index].paintIcon(p,g,0,0);
}

That's the way repaint works
Anytime a java component which lies beneath some other window is uncovered, the UI thread will do a repaint

Similar Messages

  • Automatic calling of procedure

    Is there any way in Oracle 8i where I can call a procedure or a script (.sql) automatically during a particular time daily.
    Thanks!!!

    Thanks Nicolas & Murali !!!!
    I was planning for the AT command. Using new software is out of scope for this.
    I hope Nicolas meant the AT command when he said I can schedule a task thro Task Manager.
    Why I wanted to know about this is the materialized views which I use should be refreshed daily with a simple command DBMS_MVIEW.REFRESH_ALL_MVIEWS .
    So I thought of putting this in a sql which will be called by AT command. The .sql will connect to the database & call DBMS_MVIEW.REFRESH_ALL_MVIEWS . Due to AT command it will be automatically called during specific time daily.
    I think DBMS_JOB is better suited for this.
    As per info in Oracle help sites I think I will do something like
    DECLARE
    l_job NUMBER;
    BEGIN
    DBMS_JOB.submit(l_job,
    'BEGIN DBMS_MVIEW.REFRESH_ALL_MVIEWS; END;',
    SYSDATE,
    'SYSDATE + 1');
    COMMIT;
    DBMS_OUTPUT.put_line('Job: ' || l_job);
    END;
    so the DBMS_MVIEW.REFRESH_ALL_MVIEWS will be called daily automatically.
    Thanks,
    Indu

  • Automatically call specific method at other method invocation~ish?

    I have a class which basically acts as a wrapper around a List. It contains a List object and some methods that do something with that list.
    Now, in order to prevent exceptions, I've made a basic method that just checks if the List field is null and, if so, it will create a new ArrayList and chuck it in that field.
    Right now, I just have a call to that particular method in each other method that performs an operation on the list, like so:
    public class SomeClass<T> {
       private List<T> list;
       private void checkList() {
         if ( list == null) {
           list = new ArrayList<T>();
      public int method() {
        checkList();
        return list.doSomething();
      }Is there a way, prefferably a native Java way, to automatically have the checkList() method called before each and any method invocation? As in, whenever a method is called in the SomeClass, Java / the JVM automatically calls the checkList method?
    }

    Yop wrote:
    I have a class which basically acts as a wrapper around a List. It contains a List object and some methods that do something with that list.
    Now, in order to prevent exceptions, I've made a basic method that just checks if the List field is null and, if so, it will create a new ArrayList and chuck it in that field.
    Right now, I just have a call to that particular method in each other method that performs an operation on the list, like so:
    public class SomeClass<T> {
    private List<T> list;
    private void checkList() {
    if ( list == null) {
    list = new ArrayList<T>();
    public int method() {
    checkList();
    return list.doSomething();
    }Is there a way, prefferably a native Java way, to automatically have the checkList() method called before each and any method invocation? As in, whenever a method is called in the SomeClass, Java / the JVM automatically calls the checkList method?
    }Why not return the List<T> in the check() method? Like this:
    List<T> check() {
       if (list == null) list= new ArrayList<T>();
       return list;
    void otherMethod(T t) {
       check().add(t);
    }Instead of using variable 'list' directly, use the 'check()' method.
    kind regards,
    Jos

  • Why my iPhone automatically create a WiFi Ad Hoc ?

    Why my iPhone automatically create a WiFi Ad Hoc with Free Public WiFi or with the last SSID I have been using ?
    Is it possible to disable this feature , if it's really a feature ?
    JP

    FaceTime calls can only be done over WiFi, that's why.

  • Why are my current calls being interrupted by new calls?

    Why are my current calls being interrupted by new calls?
    I'm using iPhone 6 plus and reset my network settings multiple times. The issue is random.

    glic1 wrote:
    Why are my current calls being interrupted by new calls?
    I'm using iPhone 6 plus and reset my network settings multiple times. The issue is random.
    Are you saying when your on a phone call and someone else calls you it does what exactly?  Disconnect your current call with the new call?

  • Any ideas why the second HOST call does not work???

    Hi Folks.
    I have written the following code which works fine in all but one respect.
    The code creates a zip file on a server (Accessed over a network) hence the full windows network path name.
    The call to host on the server works in terms of running the zipinvoices.bat file and the zip file is generated on the server in the correct location.
    The prigram unit also generates the correctly formatted mailinvoices.bat file. However, the second call to HOST does not run/execute the mailinvoices.bat file. If I go to the server and run the mailinvoices.bat file directly, it runs perfectly and emails the file to me, no problemo.
    Why does the second call to HOST from the client machine not run?
    Any clues anyone???
    Cheers
    Simon Gadd
    PROCEDURE send_email_invoices_pu_p (p_organisation IN VARCHAR2) IS
    v_processing_cycle          CHAR(4);     
         v_alert_but                              NUMBER;
         v_error_num                              NUMBER;
         v_sent_status                     NUMBER(1);
    v_stage                                        NUMBER(1);
    v_year                                        VARCHAR2(4);
    v_month                                        VARCHAR2(9);
    v_folder_name                         VARCHAR2(25); -- Name of the file which holds the 'Printed' invoices in the receivables folder. v_organisation                    VARCHAR2(50);
    v_password                              VARCHAR2(25);
    v_organisation                    VARCHAR2(25);
         v_host_command                    VARCHAR2(100);
    v_from_name                              VARCHAR2(100);
    v_to_name                                   VARCHAR2(100);
    v_subject                                   VARCHAR2(100);
    v_error_txt                              VARCHAR2(200);
    v_file                                        VARCHAR2(200);
    v_message                                   VARCHAR2(500);
         v_line_buffer                         VARCHAR2(5000);
    v_working                                   BOOLEAN := TRUE;
    v_zipinvoices_bat               TEXT_IO.FILE_TYPE;
         v_mailinvoices_bat          TEXT_IO.FILE_TYPE;
         CURSOR c_sent_status IS
              SELECT sent
              FROM INVOICE_EMAIL
              WHERE UPPER(ORGANISATION) = UPPER(v_organisation);
         CURSOR c_select_folder IS
              SELECT folder
              FROM INVOICE_EMAIL
              WHERE UPPER(ORGANISATION) = UPPER(v_organisation);     
    CURSOR c_select_email_elements IS
    SELECT      send_to,
                        send_from
    FROM INVOICE_EMAIL
              WHERE UPPER(ORGANISATION) = UPPER(v_organisation);
    BEGIN
    v_organisation := p_organisation;
    -- Check to see if the invoices have already been e-mailed for this Procssing Cycle. If they have,
    -- then warn the user of this and get them to confirm that they wish to proceed and e-mail them again.
    -- The batch e-mail process will re-zip the invoices (ignoring a pre existing .zip file) and overwrite
    -- the existing zip file if it exists or generate it if it does not exist.
         OPEN c_sent_status;
              FETCH c_sent_status INTO v_sent_status;
         CLOSE c_sent_status;     
         IF v_sent_status = 1 THEN
              v_alert_but := SHOW_ALERT('SEND_AGAIN_ALRT');
                   IF v_alert_but = ALERT_BUTTON2 THEN RAISE FORM_TRIGGER_FAILURE;
                        ELSE NULL;
                   END IF;
         END IF;
    :CONTROL.WORKING := 'Started Zipping invoices for '||INITCAP(v_organisation)||'.'||CHR(10)||'Please wait..';
    SYNCHRONIZE;
    -- The following code opens the zipinvoices.bat file which resides in the root folder \\Ebony\c$\FCSS\DB_SCRIPTS\ and modifies it ready to
    -- zip up the invoices in the relevant organisation's invoice folder for the current processing cycle.
    v_processing_cycle := GET_CURRENT_TRAFFIC_PERIOD;
    v_month := RTRIM(INITCAP(TO_CHAR(TO_DATE(v_processing_cycle, 'MMYY'), 'MONTH')));
    v_year := (TO_CHAR(TO_DATE(v_processing_cycle, 'MMYY'), 'YYYY'));
         OPEN c_select_folder;
         FETCH c_select_folder INTO v_folder_name;
         CLOSE c_select_folder;
    KILL_OLD_ZIP_PU_P('del \\Ebony\c$\FCSS\CYCLE_DATA\'||v_processing_cycle||'\receivables\'||v_folder_name||'\invoices.zip');
    SELECT zip_password
    INTO v_password
    FROM INVOICE_EMAIL
    WHERE UPPER(ORGANISATION) = UPPER(v_organisation);
    v_zipinvoices_bat := TEXT_IO.FOPEN('\\Ebony\c$\FCSS\DB_SCRIPTS\zipinvoices.bat', 'w');
    v_line_buffer := 'cd..';
    TEXT_IO.PUT_LINE (v_zipinvoices_bat, v_line_buffer);
    v_line_buffer := 'cd..';
    TEXT_IO.PUT_LINE (v_zipinvoices_bat, v_line_buffer);
    v_line_buffer := 'wzzip -s'||v_password||' -x*.zip -ybc \\Ebony\c$\FCSS\CYCLE_DATA\'||v_processing_cycle||'\receivables\'||v_folder_name||'\invoices \\Ebony\c$\FCSS\CYCLE_DATA\'||v_processing_cycle||'\receivables\'||v_folder_name||'\*.*';
    TEXT_IO.PUT_LINE (v_zipinvoices_bat, v_line_buffer);
    v_line_buffer := 'exit';
    TEXT_IO.PUT_LINE (v_zipinvoices_bat, v_line_buffer);
    TEXT_IO.FCLOSE (v_zipinvoices_bat);
    -- The following code executes the freshly edited \\Ebony\c$\FCSS\DB_SCRIPTS\zipinvoices.bat file to produce the zipped invoices file
    -- ready to be e-mailed out to the address specified in the INVOICE_EMAIL table for the relevant organisation.
    v_host_command := '\\Ebony\c$\FCSS\DB_SCRIPTS\zipinvoices.bat';
    v_stage := 1;
    HOST (v_host_command, NO_SCREEN);
    IF NOT Form_Success THEN
         IF v_stage = 1 THEN
         :CONTROL.WORKING := 'Error -- The .zip file for '||INITCAP(v_organisation)||' was not produced.';
              SYNCHRONIZE;     
         ELSIF v_STAGE = 2 THEN
         :CONTROL.WORKING := 'Error -- The zipped invoices file for '||INITCAP(v_organisation)||' was not emailed.';
              SYNCHRONIZE;               
              END IF;     
    ELSE NULL;
    END IF;
    :CONTROL.WORKING := 'All invoices for '||INITCAP(v_organisation)||' successfully zipped.'||CHR(10)||'Attempting to send via e-mail.'||CHR(10)||'Please wait..';
    SYNCHRONIZE;
    -- The following code e-mails the freshly created .zip file for the relevant organisation and e-mails it to the
    -- recipient specified in the relevant row in the INVOICE_EMAIL programme along with from address, subject and
    -- message if specified.
    OPEN c_select_email_elements;
    FETCH c_select_email_elements INTO
    v_to_name,
    v_from_name;
    CLOSE c_select_email_elements;
    v_stage := 2;
    v_mailinvoices_bat := TEXT_IO.FOPEN('\\Ebony\c$\FCSS\DB_SCRIPTS\mailinvoices.bat', 'w');
    v_line_buffer := 'cd..';
    TEXT_IO.PUT_LINE (v_mailinvoices_bat, v_line_buffer);
    v_line_buffer := 'cd..';
    TEXT_IO.PUT_LINE (v_mailinvoices_bat, v_line_buffer);
    v_line_buffer := 'clemail -quiet -smtpserver mailhost.0800dial.com -smtpport 25 -to '||v_to_name||' -from '||v_from_name||' -subject "'||v_month||' '||v_year||' Roaming Traffic Invoices from United Clearing Ltd" -bodyfile \\Ebony\c$\FCSS\DB_SCRIPTS\invoice_body.txt -attach \\Ebony\c$\FCSS\CYCLE_DATA\'||v_processing_cycle||'\receivables\'||v_folder_name||'\invoices.zip';
    TEXT_IO.PUT_LINE (v_mailinvoices_bat, v_line_buffer);
    v_line_buffer := 'exit';
    TEXT_IO.PUT_LINE (v_mailinvoices_bat, v_line_buffer);
    TEXT_IO.FCLOSE (v_mailinvoices_bat);
    v_host_command := '\\Ebony\c$\FCSS\DB_SCRIPTS\mailinvoices.bat';
    HOST (v_host_command, NO_SCREEN);
    IF NOT Form_Success THEN
         IF v_stage = 1 THEN
         :CONTROL.WORKING := 'Error -- The .zip file for '||INITCAP(v_organisation)||' was not produced.';
              SYNCHRONIZE;     
         ELSIF v_STAGE = 2 THEN
         :CONTROL.WORKING := 'Error -- The zipped invoices file for '||INITCAP(v_organisation)||' was not emailed.';
              SYNCHRONIZE;               
              END IF;     
    ELSE NULL;
    END IF;
    UPDATE INVOICE_EMAIL
         SET sent = 1
              WHERE UPPER(ORGANISATION) = UPPER(v_organisation);
    COMMIT;
    GO_BLOCK ('INVOICE_EMAIL');
    EXECUTE_QUERY;               
    :CONTROL.WORKING := 'Please press a button on the left to e-mail invoices to the organisations listed.';
    SYNCHRONIZE;
    EXCEPTION
         WHEN OTHERS THEN
              v_error_num := SQLCODE;
              v_error_txt := SUBSTR(SQLERRM, 1, 200);
              MESSAGE('The error was: '||v_error_txt||' and the code was: '||v_error_num);
              RAISE FORM_TRIGGER_FAILURE;
    END;

    As a suggestion I'd put the Text_io segments into their own begin - exception - end sub-blocks within the main code. This way if Text_io does raise an exception you can catch it earlier as it may be able to recover - That is if it is a text_io exception.
    Other than that you;ll have to step through in Debug.

  • Why does iCal automatically change the date of the entry i am making to the day before??

    why does iCal automatically change the date of the entry i am making to the day before??
    for example, when i am attempting to make a 'all-day' appointment on october 2nd 2011, it automatically shifts it to october 1st.
    but if i am doing a timed appointment for only a few hours, it will allow me to put it on that day.
    i am trying to put in travel dates so any help on how to fix this, would be greatly appreciated.

    alsdman,
    Quit iCal, and try removing the com.apple.iCal.plist file from your Macintosh HD/Users/yourusername/Library/Preferences Folder. Since that Library is now hidden, you have to use the Finder>Go Menu>Depress the "Option" key>Library. Drag the .plist file to your desktop, and log out/in or restart and check iCal for functionality.
    Also go to System Preferences...>Language & Text>Formats>Region: and set/re-set the appropriate "Region."

  • Why does Preview automatically resize the text box to cut off the last character of added text? How do I fix it?

    Why does Preview automatically resize the text box to cut off the last character of added text? How do I fix it?
    I use the Tools > Annotate > Add Text feature, and when I click away after adding text, it automatically changes the text box size such that the last letter -- or last word -- gets bumped off into an invisible line below it, forcing me to manually adjust every single text box. It is highly annoying when trying to complete PDF forms (e.g. job applications).
    It appears to be a glitch, quite honestly, an error resulting from Apple's product design. Has it been fixed in the new operating system (for which they want $30)?
    I would very much appreciate any help you can provide! Thank you for your time.

    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Why can I not call a live person ofr support - this is frustrating.

    Why can I not call a support person directly for help - this is frstrating.

    I understand your discontent regarding the delayed availability of our reps when you call us juliusb85! We offer other customer service alternative for you like Twitter @VZWSupport and Facebook http://fb.me/Verizon or we can assist you here also. However, please keep in mind that this is a peer to peer forum and while our Social Media team monitors the posts, the best way to get immediate assistance when network issues are suspected is to call 800-922-0204 from a different line to troubleshoot device or send us a message on twitter at @VZWSupport.
      AntonioC_VZW
    Follow us on Twitter at www.twitter.com/VZWSupport

  • N Mail, when using "reply all" why does Mail automatically include my email address in the cc line? Whey would I want to include my email address in an email I am sending.  Anybody have any idea how to stop this?

    In Mail, when using "reply all" why does Mail automatically include my email address in the cc line? Whey would I want to include my email address in an email I am sending.? Anybody have any idea how to stop Mail from including my email address in the cc line when using "reply all"?

    Automatically cc myself is not checked.  I did find out that if you have multiple email address that all of them need to be associated with "My Contact" tab.  Thanks

  • Why is the ejbstore() called when i invoke any getter method of my bean ?

    Hi All,
    I have designed one enterprise bean with three attributes title , type and date.
    and i have implemented getter and setter method for these member variables.
    When i call any one of getter methods,
    the output at server as follows :
    getTittle();
    ejbStore();
    getType();
    ejbStore();
    I want to know why the ejbStore() is called as soon as i called any one of getter methods.
    I heard ejbLoad() and ejbStore() are invoked by container based on transaction attribute.
    I even set "Never" as transaction attribute . Still i got a same type of output.
    Could you explain me why it happens ?
    Thanks in advance,
    nvseenu

    Hi magesh ,
    Hi
    ejbStore is called if any of the three is true:
    . A tx completes and the bean participated in the Tx
    and atleast one business method was called. Note that
    getters are also business methods.
    2. A Finder method is called within the tx, which
    causes ejbStore() to be called by the container
    (before the finder executes)
    3. The method is marked using
    "flush-et-end-of-method" attribute in
    sun-ejb-jar.xml.
    I understood the concepts explained here.
    >
    I am surprised that TX_NENVER causes ejbStore(). Can
    you send us the ejb-jar.xml and sun-ejb-jar.xml?The thing which confuse me is why ejbStore() is called for Transction attribute
    "Never".
    My ejb-jar.xml file is as follows:
    <!DOCTYPE ejb-jar PUBLIC
         "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
         "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
    <enterprise-beans>
    <entity>
    <ejb-name>BarronsEJB</ejb-name>
    <home>test.BarronsHome</home>
    <remote>test.Barrons</remote>
    <ejb-class>test.BarronsBean</ejb-class>
    <persistence-type>Bean</persistence-type>
    <prim-key-class>test.BarronsPK</prim-key-class>
    <reentrant>false</reentrant>
    <resource-ref>
    <res-ref-name>jdbc/MySqlDS</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    </entity>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>BarronsEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Never</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    BarronsBean has three member variables " id , title , type " and gettter and setter methods for these variables.
    I use JBoss App Server to run EJB.
    I feel information i have given here may be enough to you to explain me why ejbStore() is called after any one of the getter / setter method is invoked.
    Thanks in advance,
    nvseenu

  • Can anybody say why In the layer menu the background color is white when opening a layer mask, and why does it automatically turns black by simply opening the layer mask properties menu? The vector mask is white anyway.

    Can anybody say why In the layer menu, the background color is white when opening a layer mask, and why does it automatically turns black by simply opening the layer mask properties menu? The vector mask is white anyway.

    Topic or subject titles should be clear, pertinent and concise so that individual users can tell at a glance if they can help or not.
    That field is not for attempting to fit your entire question in there.
    Please keep this in mind next time you post.  Thank you.
    A lot more information about your hardware and software is needed.
    BOILERPLATE TEXT:
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CC", but something like CC2014.v.2.2) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    a screen shot of your settings or of the image could be very helpful too,
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Why can't we call procedure in sql stmt

    Hi,
    Why can't we call procedure in sql stmt?

    Assuming (as Billy mentioned) that the question refers to SELECT statements (also assuming that "stmt" is short for "statement", nice time-saving abbreviation, thanks for that), you cannot use procedures because there is no concept of a procedure in an SQL query, and possibly in declarative languages in general (computer scientists may correct me here).
    How would it work? Everything in a SELECT list has to return something - it's the whole point of a SELECT list. Procedures by definition do not have a RETURN clause (yes you can RETURN to end processing, yes there are OUT parameters, but that is not the same thing). Perhaps you could post an example of the syntax you have in mind.

  • When i burn a playlist, why does it automatically alphabetize my list? how do i kburn it in the order i want?

    when i burn a playlist, why does it automatically alphabetize my list? how do i kburn it in the order i want?

    What format disc? MP3? Audio?
    iTunes 10 for Mac: Create your own MP3 CDs - http://support.apple.com/kb/PH1748
    iTunes 10 for Mac: Disc burning overview - http://support.apple.com/kb/PH1746
    iTunes: How to set the play order of songs on an MP3 CD - http://support.apple.com/kb/HT2455

  • Why does CS6 automatically start when i plug in my Canon Eos camera and how do I stop it

    Why does CS6 automatically start when i plug in my Canon Eos camera and how do I stop it from doing so?

    Autostart is controlled by your operating system. check the relevant system control panel or right-click the drive letter of your memory card to change these options in teh properties.
    Mylenium

Maybe you are looking for

  • I can't reply to a post because I'm not logged in. Can't login - no account. Can't register, no register option. HELP!!!!

    Gosh, you guys make it really, really, really difficult to register an account with Mozilla. I have to ask a question, but I actually wanted to post a reply. I need to login to my account to post a reply, but I don't have an account. I want to regist

  • Interactive Reports in BSP

    Please help me out to make interactive reports or interactive tables in BSP.

  • How to send mail with SSL in ADDT?

    The control panel of ADDT for email settings doesn't have option for ssl enable. Please help me, thanks PS: One question had posted at http://forums.adobe.com/thread/284636?tstart=210

  • Move Inventory Org to new OU

    We have created a new OU and need to move one of the Inventory Orgs to the new unit. Is this possible? I found the Copy Inventory Organization but it will not copy across OUs. Can the HRMS Heirarchy Workbench be used to do this? Any problems with doi

  • Import / Export and TCP packets relay

    Hi All, Any idea what relationship Export/ Import on a local box has on the TCP/IP packets ? I see tremendous amount of packets (42000 / sec) on a Windows 64 bit box while doing Import / Export. Its from an 8i to 10g so the Import / Export.