Cursor Busy in JFileChooser

I am using a JFileChooser to open directories, some of the directories can contain a lot of sub directories and it can take a while to update the display with the contents (5 seconds), but the JFileChooser doesnt show a busy cursor whilst doing this so can appear to the user that the directory is empty.
is this a bug in java , i havent found anything in the Bug Database. ?
Running on Windows JDK 1.5.

It should work if "parent" is a Window.
I do notice a problem if you navigate to an empty directory, in which case there is no
contentsChanged event and the wait cursor doesn't go away. I will investigate if there
is a solution for that.
Here is a complete example.
import java.awt.*;
import java.beans.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.plaf.*;
import javax.swing.plaf.basic.*;
public class bug5010850 {
    public static void main(String[] args) throws Exception {
        SwingUtilities.invokeAndWait(new Runnable() {
            public void run() {
                final JFileChooser fc = new JFileChooser();
                FileChooserUI ui = fc.getUI();
                if (ui instanceof BasicFileChooserUI) {
                    fc.addPropertyChangeListener(new PropertyChangeListener() {
                        public void propertyChange(PropertyChangeEvent e) {
                            String s = e.getPropertyName();
                            if (s.equals(JFileChooser.DIRECTORY_CHANGED_PROPERTY)) {
                                setCursor(fc, Cursor.WAIT_CURSOR);
                    ListModel model = ((BasicFileChooserUI)ui).getModel();
                    model.addListDataListener(new ListDataListener() {
                        public void contentsChanged(ListDataEvent e) {
                            setCursor(fc, Cursor.DEFAULT_CURSOR);
                        public void intervalAdded(ListDataEvent e) { }
                        public void intervalRemoved(ListDataEvent e) { }
                fc.showSaveDialog(null);
            private void setCursor(JComponent comp, int type) {
                Window window = SwingUtilities.getWindowAncestor(comp);
                if (window != null) {
                    Cursor cursor = Cursor.getPredefinedCursor(type);
                    System.out.println(cursor);
                    window.setCursor(cursor);
        System.exit(0);
}

Similar Messages

  • Set the cursor busy steered by supanel vi

    I let run a vi and there is a subpanel. Is there a way that I can set the cursor busy steered by the subpanel vi. I pass the reference of the mainvi over a global variable into subvi. Without success there is no error message but the busy cursor does not appear. Just setting the cursor in subvi creates a null window error. Is there a easy way to implement it. Or do I have to use user events in main vi called by suvi an then se it busy. Would be not so nice to understand it later.
    kind regards reto

    I attach my test VI (LV 8.0). You can try it.
    Attachments:
    test sub.vi ‏17 KB
    test.vi ‏22 KB
    test global.vi ‏4 KB

  • Using Set Cursor Busy in Veristand Custom Device Page

    I am writing a Custom Device in Veristand and tried using the Set Busy vi to disable the cursor while I am doing some tasks on a System Explorer page.  It seems like the Set and Unset Busy vi do not work inside of the System Explorer environment.  I see that NI provides a way to release the cursor with the Veristand API but I do not see a way to set it busy with in the API.
    Am I correct in saying these cursor VIs don't work the way they would in a normal application? Or is there a work around here that I am missing?
    Thanks.
    Rob
    Solved!
    Go to Solution.

    Hello,
    The idea is good, it works for me if you open a reference to System Explorer.lvlibystem Explorer.vi (VeriStand 2012) :
    Best regards,
    .mrLeft{float:left} .mrInfo{border-left:solid 1px #989898;font-size:x-small;color:#989898}
    Mathieu R.  
      CTD - Certified TestStand Developer / Développeur TestStand Certifié  
      CLAD - Certified LabVIEW Associate Developer  

  • Cursor busy state (Google Chrome problem)

    Hi OTN,
    On ADF page there is a form where input components has autoSubmit="true" and a value change listener.
    VCL perporms database operation, on start of which mouse cursor is changing its state to busy (showing busy icon).
    But the cursor is not changing icon to normal automatically after operation ends - this only happen on mouse move.
    This confuses user, making them think the operation is still ongoing if they do not move the mouse.
    Could I cope the problem with the cursor state?
    I want it it to come back to normal state after operation is over.
    JDeveloper 11.1.1.3
    Thanks.

    Hi Frank,
    Thanks for your answer, but that isn't what I need.
    This isn't a case of a long running query, quite the contrary: the operation takes half a second.
    But the cursor stays busy until the mouse move.
    Edited by: ILya Cyclone on Dec 28, 2010 6:13 PM

  • GDM Cursor 'busy' at Log-on.

    Hi, all!
    Just a slight niggle with my GDM set-up. When GDM is waiting for me to enter my log-on credentials, the cursor appears 'busy'. Usually with other applications, a 'pointer' or 'arrow' would appear and only turn into the 'stop watch' when it really is busy. I have not seen this behaviour on other distros. Do I need to do something to enable my cursor to change to a 'pointer' whilst at the log-on screen?
    Thanks,
    Chris.

    you will need to put some extra lines in the users ~/.bashrc file in their home directory.
    I use this :
    if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/vc/1 ]]; then
    startx
    fi
    Taken from here Start_X_at_boot
    Te effect of the above lines is that when user C logs in on console 1 X is automatically started, & from other consoles just gets the console.
    Other users are not affected.

  • Problem with JFrame and busy/wait Cursor

    Hi -- I'm trying to set a JFrame's cursor to be the busy cursor,
    for the duration of some operation (usually just a few seconds).
    I can get it to work in some situations, but not others.
    Timing does seem to be an issue.
    There are thousands of posts on the BugParade, but
    in general Sun indicates this is not a bug. I just need
    a work-around.
    I've written a test program below to demonstrate the problem.
    I have the problem on Solaris, running with both J2SE 1.3 and 1.4.
    I have not tested on Windows yet.
    When you run the following code, three JFrames will be opened,
    each with the same 5 buttons. The first "F1" listens to its own
    buttons, and works fine. The other two (F2 and F3) listen
    to each other's buttons.
    The "BUSY" button simply sets the cursor on its listener
    to the busy cursor. The "DONE" button sets it to the
    default cursor. These work fine.
    The "SLEEP" button sets the cursor, sleeps for 3 seconds,
    and sets it back. This does not work.
    The "INVOKE LATER" button does the same thing,
    except is uses invokeLater to sleep and set the
    cursor back. This also does not work.
    The "DELAY" button sleeps for 3 seconds (giving you
    time to move the mouse into the other (listerner's)
    window, and then it behaves just like the "SLEEP"
    button. This works.
    Any ideas would be appreciated, thanks.
    -J
    import java.awt.BorderLayout;
    import java.awt.Cursor;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.SwingUtilities;
    public class BusyFrameTest implements ActionListener
    private static Cursor busy = Cursor.getPredefinedCursor (Cursor.WAIT_CURSOR);
    private static Cursor done = Cursor.getDefaultCursor();
    JFrame frame;
    JButton[] buttons;
    public BusyFrameTest (String title)
    frame = new JFrame (title);
    buttons = new JButton[5];
    buttons[0] = new JButton ("BUSY");
    buttons[1] = new JButton ("DONE");
    buttons[2] = new JButton ("SLEEP");
    buttons[3] = new JButton ("INVOKE LATER");
    buttons[4] = new JButton ("DELAY");
    JPanel buttonPanel = new JPanel();
    for (int i = 0; i < buttons.length; i++)
    buttonPanel.add (buttons);
    frame.getContentPane().add (buttonPanel);
    frame.pack();
    frame.setVisible (true);
    public void addListeners (ActionListener listener)
    for (int i = 0; i < buttons.length; i++)
    buttons[i].addActionListener (listener);
    public void actionPerformed (ActionEvent e)
    System.out.print (frame.getTitle() + ": " + e.getActionCommand());
    if (e.getActionCommand().equals ("BUSY"))
    frame.setCursor (busy);
    else if (e.getActionCommand().equals ("DONE"))
    frame.setCursor (done);
    else if (e.getActionCommand().equals ("SLEEP"))
    frame.setCursor (busy);
    try { Thread.sleep (3000); } catch (Exception ex) { }
    frame.setCursor (done);
    System.out.print (" finished");
    else if (e.getActionCommand().equals ("INVOKE LATER"))
    frame.setCursor (busy);
    SwingUtilities.invokeLater (thread);
    else if (e.getActionCommand().equals ("DELAY"))
    try { Thread.sleep (3000); } catch (Exception ex) { }
    frame.setCursor (busy);
    try { Thread.sleep (3000); } catch (Exception ex) { }
    frame.setCursor (done);
    System.out.print (" finished");
    System.out.println();
    Runnable thread = new Runnable()
    public void run()
    try { Thread.sleep (3000); } catch (Exception ex) { }
    frame.setCursor (done);
    System.out.println (" finished");
    public static void main (String[] args)
    BusyFrameTest f1 = new BusyFrameTest ("F1");
    f1.addListeners (f1);
    BusyFrameTest f2 = new BusyFrameTest ("F2");
    BusyFrameTest f3 = new BusyFrameTest ("F3");
    f2.addListeners (f3); // 2 listens to 3
    f3.addListeners (f2); // 3 listens to 2

    I've had the same problems with cursors and repaints in a swing application, and I was thinking of if I could use invokeLater, but I never got that far with it.
    I still believe you would need a thread for the time consuming task, and that invokeLater is something you only need to use in a thread different from the event thread.

  • How do i show busy cursor when i have something loaded in subpanel?

    I have a requirement where i used to use make child and get a sub vi to be a child of main vi. Now since this is supported natively by Labview7 i used the subpanel. I have a problem with this approach. If i set the cursor to busy for the main vi, it remains busy for the subvi as well.
    How do i set the cursor busy for main panel and not the subvi?
    Thanks,
    Anand.

    Sounds like you need to dynamically track the position of the cursor on the screen and set the cursor depending on its position.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Trying to put a busy Cursor but ...confused why its not showing up

    Hi
    I have a Application and within it there are few HBox, List, VBOX , Canvas ......blah.. But one Vbox(vbox1) has a List(list1)
    From List on itemClick I have a requirement of opening up a tree node by doing a lazy loading of the tree
    And during this processing happens I wanted to show a busy cursor to let the user know that on item click the application is trying to load a tree and then open a particular node
    Did the folllowing
    CursorManager.setBusyCursor();
    and
    CursorManager.removeBusyCursor();
    Also
    var cusrorId:Number = CursorManager.setCursor(StyleManager.getStyleDeclaration("CursorManager").getStyle("busyC ursor"),CursorManagerPriority.HIGH)
    and
    CursorManager.removeCursor(cursorId)
    Also
    list1.cursorManager.setBusyCursor();
    vbox1.cursorManager.setBusyCursor();
    and
    list1.cursorManager.removeBusyCursor();
    vbox1.cursorManager.removeBusyCursor();
    But after all this I didn't see any Busy Cursor
    Busy Cursor is shown for few minutes if I put a Timer in between i.e after the ItemClick and before I trigger the processing of lazy loading of the tree
    Guys any guesses
    How can I make it work ? M I doing something wrong ? Please help
    Regards
    Biswamit

    Is it a 2nd gen or a 3rd gen? Only the 3rd gen requires for power to be plugged in, however all cables need to be disconnected initially regardless of model.
    Apple TV (2nd and 3rd generation): Restoring your Apple TV
    Make sure you are connecting directly to computer, not a keyboard port or USB hub. Try a different cable.

  • Different 'mouse enter' event / 'set busy' vi behaviour in LV8?

    In my program, I used the mouse curcor 'set busy' vi to lock the front panel during a measurement.  However, I did want the 'cancel measurement' button to be available.   I solved that by adding a 'mouse enter' and 'mouse leave' event for that button, that would enable the mouse when it was over the button.  (And disable when it left again)
    Worked fine in LV7, but it seems that in Labview 8, this little trick doesn't work anymore...   
    Apparantly, now the 'mouse enter' event only fires when the cursor isn't set to 'busy'. How do I perform something similar to my old trick in Labview 8? 

    I too had a similar issue when upgrading my application source code from LabVIEW 7.1 to 8.0.  There are a couple of things you could try.
    1) Keep calling the "set cursor busy" vi, but don't disable mouse clicks (a boolean input to the set busy VI). Now add a new event to your event structure to monitor the panel for any "mouse down?" events.  Whenever this event occurs, the user is trying to click somewhere, so wire a TRUE to the "Disabled?" input of the event.  Now to keep your cancel button from being filtered out, add some code to determine if the x,y coordinates of the mouse down event are over your cancel button, if so then don't filter this event.
    2) Keep calling the "set cursor busy" vi, but again don't disable the mouse clicks.  Now whenever you want to disable all user events on your front panel controls, open a reference to each front panel control and set it to disabled (all except the cancel button of course).  This sounds difficult, but it is actually really easy.  There is a VI property you can read to get references to each FP control.
    I personally used the 2nd option in my code to do something similar.  I've attached the VI you can use to disable all you FP controls (with exceptions), and also an example of how I used it.  It's a very small VI.
    Hope this helps.
    Attachments:
    SetAllCtrlsToDisabled.zip ‏24 KB

  • Displaying loading busy popup when performing long task.

    Dear All,
    I am refering sample #27 on http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html as i came across the thread Re: Cursor busy state
    But the solution is not working in my scenario following is my code.
    JAVASCRIPT
    function enforcePreventUserInput(evt) {
    var popTask = AdfPage.PAGE.findComponentByAbsoluteId('popTask');
    if (popup != null) {
    AdfPage.PAGE.addBusyStateListener(popTask, handleBusyState);
    evt.preventUserInput();
    //JavaScript call back handler
    function handleBusyState(evt) {
    var popTask = AdfPage.PAGE.findComponentByAbsoluteId('popTask');
    if (popTask != null) {
    if (evt.isBusy()) {
    popTask.show();
    else {
    popTask.hide();
    AdfPage.PAGE.removeBusyStateListener(popTask, handleBusyState);
    <af:selectOneChoice required="#{bindings.EMAIL_TEMPLATE_LOV_VO11.hints.mandatory}"
    shortDesc="#{bindings.EMAIL_TEMPLATE_LOV_VO11.hints.tooltip}"
    id="emailTemplate" simple="true"
    valueChangeListener="#{backingBeanScope.generate_backing.templateSelected}"
    autoSubmit="true"
    valuePassThru="true">
    <af:clientListener method="enforcePreventUserInput" type="valueChange"/>
    <f:selectItem id="select" itemLabel="<-Select->"
    itemValue="-1"/>
    <af:forEach var="row"
    items="#{bindings.EMAIL_TEMPLATE_LOV_VO1Iterator.allRowsInRange}">
    <f:selectItem itemValue="#{row.attributeValues[0]}"
    itemLabel="#{row.attributeValues[1]}"/>
    </af:forEach>
    </af:selectOneChoice>
    <af:popup id="popTask" contentDelivery="immediate">
    <af:dialog id="d2" type="none" title="Please wait ..."
    closeIconVisible="false">
    <af:panelGroupLayout id="pgl1" layout="vertical">
    <af:image source="/Images/oralogo_small.gif" id="i1"/>
    <af:image source="/Images/pleasewait.gif" id="i2"
    inlineStyle="width:214px;"/>
    <af:outputText value="... please wait" id="ot11"/>
    </af:panelGroupLayout>
    </af:dialog>
    </af:popup>
    Can any one please point me out where i am going wrong ?..
    -Thanks

    Do did not mention what went wrong or is not working.
    Have you tried the sample from the code corner page?
    Does this sample work? JDev version?
    Timo

  • JFileChooser with WAIT_CURSOR

    Hi there,
    does anybody know how to show the wait cursor while the JFileChooser is reading large directories and updating its internal file list? How to detect the end of filling the file list in order to set back the cursor?
    Many thanks for any help!

    Although the filechooser will be significantly faster in 1.4.2
    (beta coming soon!), I still agree that a wait cursor is sorely
    lacking. We will try to add one in a future release.
    I haven't tested it, but you could try something like this:
    FileChooserUI ui = fileChooser.getUI();
    if (ui instanceof BasicFileChooserUI) {
        fileChooser.addPropertyChangeListener(new PropertyChangeListener() {
         public void propertyChange(PropertyChangeEvent e) {
             String s = e.getPropertyName();
             if (s.equals(JFileChooser.DIRECTORY_CHANGED_PROPERTY)) {
              // Set wait cursor here
        ListModel model = ((BasicFileChooserUI)ui).getModel();
        model.addListDataListener(new ListDataListener() {
         public void contentsChanged(ListDataEvent e) {
             // Clear wait cursor here
         public void intervalAdded(ListDataEvent e) { }
         public void intervalRemoved(ListDataEvent e) { }
    }Cheers,
    Leif Samuelsson
    Java Swing Team
    Sun Microsystems, Inc.

  • HELP! Adobe Muse encountered an unexpected error and will have to be terminated. BD/getColorBoundsRe

    I keep getthing message when my file loads in the program "This document contains 3 links to assets being unsampled. You should resize smaller or right-mouse click on the assets in the Assets panel to see additional options."
    and then I click okay.
    I get to the plan mode and then I try to go to the design mode (so i can fix the assets) and at about 90% loading it gives me this message "Adobe Muse encountered an unexpected error and will have to be terminated.
    BD/getColorBoundsRect-ArgumentError: Error #2015: Invalid BitmapData." and i have to terminate the program...
    How can i fix my assets so i can open my program? I use muse beta prerelease.

    Well, after 20 hours of work and rebuilding most of my Muse website I finally was able to upload by site again.
    Here was my problems per above and the last 20 hours. When publishing the site it does the following: Optimize assets, exportin desktip page 1 thru 19, Fining export HTML files then uploading images which I have 2208 on this site plus other stuff uploaded.
    I can not answer why it now works as "normally"it would het error #2015 uring optimizing assets wich is an invalid bitmap data error and failed at only 9% publish process then got a 1125 index 0 is out of range0 at publish 20% complete.
    I did rewrite most of the pages and made minor changes to all of them thinking that would force all pages to be uploaded as I also took option to upload all pages instead of just those that changes. All 2008 images were reloaded onto the pages by another hint I read on how to delete all thumbnails and thus the files is to select all and press delete and it will leave one as required. Then the one left could be deleted by itself. Thanks for whoever asked the question and who answered it. This saved me a lot of time.
    Thanks to all that have taken the time to help me out. Muse is a great program but sometimes you don't have any idea if it is working at something so I found myself looking at the computer busy light to see if Muse was taking a lot of cycles. It would help to have a wider use of the cursor busy indicator as sometimes the system seemed like it was hung up but it was not.
    Thanks guys!

  • Can't get timeout to work as expected for USB VISA

    Hi,
    I'm using VISA in LabVIEW (7.1) to talk to a custom USB device. My program transmits a request and waits for the response (See attached block diagram). The response may take a long time and my program then sits in the Read vi and becomes unresponsive, which is not ideal. I would prefer to set a short timeout and call the Read vi repeatedly, but   my problem is that whatever I set the timeout to,eg, 500ms the VISA read vi waits for about 10 seconds if no response is received. 
    Where am I going wrong?
    Thanks,
    Mike 
    Attachments:
    VISA USB Timeout Test.JPG ‏48 KB

    Is there a particular reason you don't want to wait for a response?  I'm looking at the picture and it would seem that waiting for a flash write to complete would be extremely important before doing anything else.  (Like stopping the VI for instance).  I'd make a VI with a front panel that says "WAITING...", call it right after the command to flash as a dialog, make the cursor busy, then close the VI nd "un-busy" the cursor when VISA returns a response (with appropriate error handling on timeout, of course).
    Bill
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Text getting cleared after throwing OAException message

    Hi,
    I have a message text input item and a drop down if user does not enter anything in either and hits button then I am throwing a OAException with a message.
    The problem is each time the user enters let us say some text in the drop down and does not select anything in the list all the text the user enters is being cleared off. They want to be able to preserve the text they wrote as it could be a lots of words.
    I tried acheiving this through saving the text into a variable and displaying it after the error but it gives me compile error saying statement is not reachable.
    Here is my part my code....the one in bold is where I was trying to assign the saved text back but it throws me compile error. Can someone suggest some other way of doing what I am trying to do?
    else if(SaveButton !=null && ((NoteType.length() == 0 || (NoteText.length()==0 && !"".equals(NoteText.trim())))))
    {System.out.println("The Note Status is Null raise an error");
      saveNoteText = NoteText;
      String message = "You must enter a note and select a note type";
            throw new OAException(message, OAException.ERROR);
            *OAMessageTextInputBean Note = (OAMessageTextInputBean)webBean.findChildRecursive("NoteText"); // Does not work*
            *Note.setText(saveNoteText);}*

    Hi Guys,
    Actually yes I am setting the value to NULL in the beginning of the PR when the page first loads.
    But the issue is that if I don't do that then the comments / notes that the user enters are showing up if I hit cancel and come back to the page. So my requirement is that if the User comes in the page the notes and note type should be null or blank.
    There are 2 buttons on the page one is the Save button and the other is the Cancel button. I just want the to handle my items correctly on these events.
    * IF the user hits the save button without entering the required fields then I raise an OAexception but the all the fields are getting cleared out. ( I don't know how since I set them to NULL in the PR not in PFR). I want the error message but I don't want to clear out the fields.
    * IF the user hits the cancel button I don't want to retain or keep the fields I want to blank them out.
    Right now, I can make one or the other work but not both. Can anyone please suggest what I should do. Would really appreciate it. Below is my controller code that setting the stuff
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    String test = (String)pageContext.getParameter("ImcPartyId");
    String ExecuteQueryReport = pageContext.getParameter("ExecuteQueryReport");
    String retURL = pageContext.getParameter("retURL");
    String ExecuteQuery = pageContext.getParameter("ExecuteQuery");
    String SourceSystem = pageContext.getParameter("SourceSystem");
    pageContext.putSessionValue("SourceSystem", SourceSystem);
    System.out.println("The Party ID Here is "+ test);
    {  *OAMessageTextInputBean Note = (OAMessageTextInputBean)webBean.findChildRecursive("NoteText");*     // If I comment this out then in the error
    OAMessageChoiceBean NoteType = (OAMessageChoiceBean)webBean.findChildRecursive("NoteTypeID"); // message my fields are not getting blanked out
    Note.setText(null);
    NoteType.setText(pageContext, null); } // but if I cancel and come back it still shows up...
    pageContext.putSessionValue("retURL", retURL);
    pageContext.putSessionValue("ExecuteQuery", ExecuteQuery);
    pageContext.putSessionValue("ExecuteQueryReport", ExecuteQueryReport);
    // This code added to make the cursor busy after apply.
    OAWebBean body = pageContext.getRootWebBean();
    if (body instanceof OABodyBean)
    ((OABodyBean)body).setBlockOnEverySubmit(true);
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
         System.out.println("Start the Controller");
    String SaveButton = (String)pageContext.getParameter("SaveNote");
    String CancelButton = (String)pageContext.getParameter("CancelNote");
    String NoteText = (String)pageContext.getParameter("NoteText");
    String NoteStatus = (String)pageContext.getParameter("NoteStatusID");
    String NoteType = (String)pageContext.getParameter("NoteTypeID");
    String Party = (String)pageContext.getParameter("ImcPartyId");
    String SourceSystem = (String)pageContext.getSessionValue("SourceSystem");
    String NewStatus = (String)pageContext.getSessionValue("NewStatus"); // This is working.
    String OldStatus = (String)pageContext.getSessionValue("OldStatus");
    String retURL = (String)pageContext.getSessionValue("retURL");
    String ExecuteQuery = (String)pageContext.getSessionValue("ExecuteQuery");
    String ExecuteQueryReport = (String)pageContext.getSessionValue("ExecuteQueryReport");
    System.out.println("THE OLD STATUS IS " + OldStatus + " New Stauts " + NewStatus);
    // System.out.println("The Note Type is " +NoteType);
    // System.out.println("The Party Cancelled is " + Party);
    String RespID = Integer.toString(pageContext.getResponsibilityId());
    String UserID = Integer.toString(pageContext.getUserId());
    OAApplicationModule am = (OAApplicationModule)pageContext.getApplicationModule(webBean);
    Serializable[] params = {NoteText, RespID, UserID, Party, NoteStatus, NoteType};
    Serializable[] params1 = {Party, NewStatus, SourceSystem};
    if (CancelButton != null)
    { System.out.println("Inside Cancel");
    OAApplicationModule projectam = (OAApplicationModule)pageContext.getApplicationModule(webBean).findApplicationModule("ShipperOverviewAM1");
    projectam.invokeMethod("rollbackTransaction");
    CancelButton = null;
    // The user has clicked an "Cancel" icon so we want to navigate back keeping everything in Context.
    HashMap param = new HashMap();
    param.put("partyID", Party);
    param.put("ExecuteQueryReport", ExecuteQueryReport);
    param.put("SourceSystem", SourceSystem);
    param.put("ExecuteQuery", ExecuteQuery);
    param.put("retURL", retURL);
    pageContext.setForwardURL("OA.jsp?page=/xxksms/oracle/apps/imc/ksms/webui/ShipperOverviewPG"
    ,null
    ,OAWebBeanConstants.KEEP_MENU_CONTEXT
    , null
    , param
    ,true // Retain AM
    ,OAWebBeanConstants.ADD_BREAD_CRUMB_NO
    ,OAWebBeanConstants.IGNORE_MESSAGES);
    else if(SaveButton !=null && ((NoteType.length() == 0 || (NoteText.length()==0 && !"".equals(NoteText.trim())))))
    {System.out.println("The Note Status is Null raise an error");
      String message = "You must enter a note and select a note type";
        throw new OAException(message, OAException.ERROR);  }
    else if (SaveButton !=null && ((NoteType.length() > 0 && NoteText.length() > 0 && !"".equals(NoteText.trim()))))
    { System.out.println("Inside here Pressed Save Button");
    String returnValue = (String)am.invokeMethod("addNotes", params);
    //if (a != null && !"".equals(a.trim()))
    // Put an if condition here. Only commit if the Notes return a "S" otherwise throw an exception.
    if (returnValue.equals("S"))
    {  OAApplicationModule projectam = (OAApplicationModule)pageContext.getApplicationModule(webBean).findApplicationModule("ShipperOverviewAM1");
    projectam.invokeMethod("UpdateStatus", params1);
    // projectam.invokeMethod("commitTransaction");
    System.out.println("Commit Transaction Done.");
    MessageToken[] tokens =
    { new MessageToken("NEWSTATUS", NewStatus),
    new MessageToken("OLDSTATUS", OldStatus),
    String MainUrl = "OA.jsp?page=/xxksms/oracle/apps/imc/ksms/webui/ShipperOverviewPG&retainAM=Y&ImcPartyId="+Party+"&ExecuteQueryReport="+ExecuteQueryReport+"&SourceSystem="+SourceSystem+"&ExecuteQuery="+ExecuteQuery+"&retURL="+retURL;
    OAException descMesg = new OAException("XXTSA", "XX_KSMS_SAVED_NOTES", tokens);
    OADialogPage dialogPage = new OADialogPage(OAException.INFORMATION, descMesg, null, MainUrl, null);
    pageContext.redirectToDialogPage(dialogPage);
    else
    {   OAApplicationModule projectam = (OAApplicationModule)pageContext.getApplicationModule(webBean).findApplicationModule("ShipperOverviewAM1");
    projectam.invokeMethod("rollbackTransaction");
    System.out.println("Rollback Executed ");
    String MainUrl = "OA.jsp?page=/xxksms/oracle/apps/imc/ksms/webui/ShipperOverviewPG&retainAM=Y&ImcPartyId="+Party+"&ExecuteQueryReport="+ExecuteQueryReport+"&SourceSystem="+SourceSystem+"&ExecuteQuery="+ExecuteQuery+"&retURL="+retURL;
    OAException descMesg = new OAException("XXTSA", "XX_KSMS_ERROR_NOTES");
    OADialogPage dialogPage = new OADialogPage(OAException.INFORMATION, descMesg, null, MainUrl, null);
    pageContext.redirectToDialogPage(dialogPage);
    // OAApplicationModule rootam = pageContext.getRootApplicationModule();
    //am.invokeMethod("commitTransaction");
    // System.out.println("Inside Save");
    // Try build your own Dialog Page here....
    /*String MainUrl = "OA.jsp?page=/xxksms/oracle/apps/imc/ksms/webui/ShipperOverviewPG&retainAM=Y&ImcPartyId="+Party;
    OAException descMesg = new OAException("XXTSA", "XX_KSMS_SAVED_NOTES");
    OADialogPage dialogPage = new OADialogPage(OAException.INFORMATION, descMesg, null, MainUrl, null);
    // This should take us to and OK Button after pressing the User should go back to Shipper Page. */
    }

  • Acpi common module won't install

    i am trying to help a friend who bought a repaired m35-s456 toshiba laptop.  it is a repaired computer with XP sp1 installed.  the repairman initially installed the os and gave him a installation disk for a dell.  i am not sure if this is a problem with microsoft because it will activate with the origional key code.  
    the problem i am having is, first, attempting to install the toshiba drivers from the download page, from what i understand, the module acpi common modules must be installed first and then the other applicable modules.  but the common module will not install.  just get a cursor busy sign for a few seconds and then nothing.  could it be caused from a dell file or a toshiba problem.  
    have reinstalled XP many times and downloaded and installed windows updates both before and after attempting to install the toshiba modules, but every time on reboot a problem occurs where XP will not load and comes up with an error message: system32/hal.dll missing.
    i tried to order the origional install disk but toshiba says the computer is too old and not available.
    any advise would be appreciated.  have found most programs will not install or run on sp1! 
    Solved!
    Go to Solution.

    Satellite M35-S456 
    Your best bet is to order recovery discs from a third party.
       Digitalmedia-labs.com
       MyRecoveryCDs.com
       RestoreDisks.com
       RestoreCD4u
    -Jerry

Maybe you are looking for

  • Joining "semi-random" user sets in to defined OBIEE model

    Hi, Where I'm currently working, I'm running in to a situation I haven't faced before. Different groups around the organization keep "lists" of employees, "lists" of customers, etc. These lists often contain not just the unique identifier for the emp

  • Ipod video crashes when I attempt to eject after sync (Windows XP)

    My ipod video synced perfectly in itunes for first two months. About two weeks ago, however, the ipod started crashing four out of five times when I try to eject it in itunes or stop the disk from Windows' "remove hardware safely" dialog box. It also

  • Want to know the buffer size on the 5SD mk3...

    ... and/or the number of full res raw files it can hold. Wondering if I usually shoot a max of six shot bursts, does the card write speed even matter? Solved! Go to Solution.

  • Unable to install Flash Player for Firefox -- trojan detection

    Hi. I'm unable to download/install the newest Flash Player update for Firefox. Our SonicWALL firewall is blocking the download with the following message: "Gateway Anti-Virus Alert: This request is blocked by the SonicWALL Anti-Spyware Service. Name:

  • Drag and Drop Funcionality

    I would like to build a web page that supports drag-and-drop functionality ... e.g. drag an image from one area of the page to another. I have read that JSF supports drag-and-drop and was looking for ways to implement this functionality using Java St