How to make sure the thread is completed?

Hi there,
Say I have a thread (A) and it's running.
is there anyway I can hold all other tasks/threads until the thread (A) is competed?
My GUI hasa button and once clicked some events happens. I would like to restrict the user from clicking the button again until thread A is completed.
any idea?
peter

Hi there,
Say I have a thread (A) and it's running.
is there anyway I can hold all other tasks/threads
until the thread (A) is competed?
My GUI hasa button and once clicked some events
happens. I would like to restrict the user from
clicking the button again until thread A is
completed.
any idea?
petereither..
Thread someOtherThread;
synchronized(this)
   try
        while(someOtherThread.isAlive())
           try
                     // preemptive wait. is better that sleep
                     // which leaves the Thread ON the scheduler list.
                     // This loop will eat about 0% CPU
               notifyAll();
               wait(100);   // Tweak poll time to taste
          catch(InterruptedException ie)
   catch(NullPointerException npex)
}OR
use
try
someOtherThread.join();
catch(InterruptedException ie)
}T)

Similar Messages

  • How to make sure the maps are loaded though nokia ...

    Hi,
    I have downloaded new nokia map v.3.0109 to my nokia E75 and loaded maps by using nokia map loader (Asia).
    but still I cant see the all regional map which I downloaded, without usign live internet connection.
    How to make sure the maps are loaded properly to my mobile ?
    with regards
    Moderator's note: Email address removed. It is not wise to publish your personal information on a public forum.
    Message Edited by myn1126 on 27-Jan-2010 07:54 AM

    Hi,
    I have downloaded new nokia map v.3.0109 to my nokia E75 and loaded maps by using nokia map loader (Asia).
    but still I cant see the all regional map which I downloaded, without usign live internet connection.
    How to make sure the maps are loaded properly to my mobile ?
    with regards
    Moderator's note: Email address removed. It is not wise to publish your personal information on a public forum.
    Message Edited by myn1126 on 27-Jan-2010 07:54 AM

  • How to Make sure the doc is there in the target system??

    Hello Everybody-
    I am trying to send a vendor master to a R/3 system from XI via Proxy,I did not write any code in Proxy yet as it will be written by the ABAP guys later in the R/3 system, I see a checkered flag in the XI monitor,but is there any way i can make sure the document has reached the target system?
    Thanks
    Venkat

    Below is the XML i am sending
    <b>  <?xml version="1.0" ?>
    - <GenericVendor>
    - <GenericVendorRecord>
      <GenericVendorID>0000010015</GenericVendorID>
      <BusinessPartner />
      <GroupID>533</GroupID>
      <LocalPartnerID>0000010015</LocalPartnerID>
      <ClientSystemObjectType>SLD_BusinessSystemID</ClientSystemObjectType>
      <Street60>778 Sunny Drive</Street60>
      <TextLong>Auto Supplier</TextLong>
      </GenericVendorRecord>
    - <GenericVendorRecord>
      <GenericVendorID>0000010017</GenericVendorID>
      <BusinessPartner />
      <GroupID>534</GroupID>
      <LocalPartnerID>0000010017</LocalPartnerID>
      <ClientSystemObjectType>SLD_BusinessSystemID</ClientSystemObjectType>
      <Street60>333 Clint Street</Street60>
      <TextLong>Auto Switches Inc</TextLong>
      </GenericVendorRecord>
    - <GenericVendorRecord>
      <GenericVendorID>1000001006</GenericVendorID>
      <BusinessPartner />
      <GroupID>535</GroupID>
      <Country>United States Minor Outlying Islands</Country>
      <LocalPartnerID>1000001006</LocalPartnerID>
      <ClientSystemObjectType>BW</ClientSystemObjectType>
      <City>Cleveland</City>
      <Street60>500 Woods Street</Street60>
      <TextLong>Bosch Corp</TextLong>
      </GenericVendorRecord>
    - <GenericVendorRecord>
      <GenericVendorID>1000001006</GenericVendorID>
      <BusinessPartner />
      <GroupID>535</GroupID>
      <Country>United States Minor Outlying Islands</Country>
      <LocalPartnerID>0000010012</LocalPartnerID>
      <ClientSystemObjectType>SLD_BusinessSystemID</ClientSystemObjectType>
      <City>Cleveland</City>
      <Street60>500 Woods Street</Street60>
      <TextLong>Bosch Corp</TextLong>
      </GenericVendorRecord>
    - <GenericVendorRecord>
      <GenericVendorID>1000001004</GenericVendorID>
      <BusinessPartner />
      <GroupID>536</GroupID>
      <Country>Canada</Country>
      <LocalPartnerID>1000001004</LocalPartnerID>
      <ClientSystemObjectType>BW</ClientSystemObjectType>
      <City>Toronto</City>
      <Street60>555 Superior Street</Street60>
      <TextLong>Dana Corp</TextLong>
      </GenericVendorRecord>
    - <GenericVendorRecord>
      <GenericVendorID>1000001004</GenericVendorID>
      <BusinessPartner />
      <GroupID>536</GroupID>
      <Country>Canada</Country>
      <LocalPartnerID>0000010010</LocalPartnerID>
      <ClientSystemObjectType>SLD_BusinessSystemID</ClientSystemObjectType>
      <City>Toronto</City>
      <Street60>555 Superior Street</Street60>
      <TextLong>Dana Corp</TextLong>
      </GenericVendorRecord>
    - <GenericVendorRecord>
      <GenericVendorID>0000010014</GenericVendorID>
      <BusinessPartner />
      <GroupID>537</GroupID>
      <LocalPartnerID>0000010014</LocalPartnerID>
      <ClientSystemObjectType>SLD_BusinessSystemID</ClientSystemObjectType>
      <Street60>500 Charlotte Road</Street60>
      <TextLong>Gates Corp</TextLong>
      </GenericVendorRecord>
    - <GenericVendorRecord>
      <GenericVendorID>0000010013</GenericVendorID>
      <BusinessPartner />
      <GroupID>538</GroupID>
      <LocalPartnerID>0000010013</LocalPartnerID>
      <ClientSystemObjectType>SLD_BusinessSystemID</ClientSystemObjectType>
      <Street60>500 Woods Street</Street60>
      <TextLong>Metaldyne</TextLong>
      </GenericVendorRecord>
    - <GenericVendorRecord>
      <GenericVendorID>0000010011</GenericVendorID>
      <BusinessPartner />
      <GroupID>539</GroupID>
      <LocalPartnerID>0000010011</LocalPartnerID>
      <ClientSystemObjectType>SLD_BusinessSystemID</ClientSystemObjectType>
      <Street60>555 Superior Street</Street60>
      <TextLong>Teleflex</TextLong>
      </GenericVendorRecord>
    - <GenericVendorRecord>
      <GenericVendorID>0000010006</GenericVendorID>
      <BusinessPartner />
      <GroupID>540</GroupID>
      <LocalPartnerID>0000010006</LocalPartnerID>
      <ClientSystemObjectType>SLD_BusinessSystemID</ClientSystemObjectType>
      <Street60>700 Sunny Drive</Street60>
      <TextLong>Tenneco Corp</TextLong>
      </GenericVendorRecord>
    - <GenericVendorRecord>
      <GenericVendorID>0000010007</GenericVendorID>
      <BusinessPartner />
      <GroupID>541</GroupID>
      <LocalPartnerID>0000010007</LocalPartnerID>
      <ClientSystemObjectType>SLD_BusinessSystemID</ClientSystemObjectType>
      <Street60>test</Street60>
      <TextLong>The Budd Co</TextLong>
      </GenericVendorRecord>
    - <GenericVendorRecord>
      <GenericVendorID>0000010016</GenericVendorID>
      <BusinessPartner />
      <GroupID>542</GroupID>
      <LocalPartnerID>0000010016</LocalPartnerID>
      <ClientSystemObjectType>SLD_BusinessSystemID</ClientSystemObjectType>
      <Street60>1000 Tara Belle Drive</Street60>
      <TextLong>Tire Supplies</TextLong>
      </GenericVendorRecord>
    - <GenericVendorRecord>
      <GenericVendorID>1000001001</GenericVendorID>
      <BusinessPartner />
      <GroupID>543</GroupID>
      <Country>United States Minor Outlying Islands</Country>
      <LocalPartnerID>1000001001</LocalPartnerID>
      <ClientSystemObjectType>BW</ClientSystemObjectType>
      <City>Houston</City>
      <Street60>111 Corporate Way</Street60>
      <TextLong>Visteon Corp</TextLong>
      </GenericVendorRecord>
    - <GenericVendorRecord>
      <GenericVendorID>1000001001</GenericVendorID>
      <BusinessPartner />
      <GroupID>543</GroupID>
      <Country>United States Minor Outlying Islands</Country>
      <LocalPartnerID>2000001001</LocalPartnerID>
      <ClientSystemObjectType>SLD_BusinessSystemID</ClientSystemObjectType>
      <City>Houston</City>
      <Street60>111 Corporate Way</Street60>
      <TextLong>Visteon Corp</TextLong>
      </GenericVendorRecord>
    - <GenericVendorRecord>
      <GenericVendorID>1000001009</GenericVendorID>
      <BusinessPartner />
      <GroupID>545</GroupID>
      <Country>Canada</Country>
      <LocalPartnerID>1000001009</LocalPartnerID>
      <ClientSystemObjectType>BW</ClientSystemObjectType>
      <City>Toronto</City>
      <Street60>777 Highway Drive</Street60>
      <TextLong>Continental Tire</TextLong>
      </GenericVendorRecord>
    - <GenericVendorRecord>
      <GenericVendorID>1000001010</GenericVendorID>
      <BusinessPartner />
      <GroupID>546</GroupID>
      <Country>Mexico</Country>
      <LocalPartnerID>1000001010</LocalPartnerID>
      <ClientSystemObjectType>BW</ClientSystemObjectType>
      <City>Cancun</City>
      <Street60>333 Beach Street</Street60>
      <TextLong>Cooper Standard</TextLong>
      </GenericVendorRecord>
    - <GenericVendorRecord>
      <GenericVendorID>1000001007</GenericVendorID>
      <BusinessPartner />
      <GroupID>547</GroupID>
      <Country>Mexico</Country>
      <LocalPartnerID>1000001007</LocalPartnerID>
      <ClientSystemObjectType>BW</ClientSystemObjectType>
      <City>Cancun</City>
      <Street60>546 Pebbles Road</Street60>
      <TextLong>Fed Mogul Corp</TextLong>
      </GenericVendorRecord>
    - <GenericVendorRecord>
      <GenericVendorID>1000001003</GenericVendorID>
      <BusinessPartner />
      <GroupID>548</GroupID>
      <Country>Canada</Country>
      <LocalPartnerID>1000001003</LocalPartnerID>
      <ClientSystemObjectType>BW</ClientSystemObjectType>
      <City>Toronto</City>
      <Street60>777 Highway Drive</Street60>
      <TextLong>Goodyear</TextLong>
      </GenericVendorRecord>
    - <GenericVendorRecord>
      <GenericVendorID>1000001002</GenericVendorID>
      <BusinessPartner />
      <GroupID>549</GroupID>
      <Country>Mexico</Country>
      <LocalPartnerID>1000001002</LocalPartnerID>
      <ClientSystemObjectType>BW</ClientSystemObjectType>
      <City>Cancun</City>
      <Street60>777 Sunny Drive</Street60>
      <TextLong>Johnson Controls</TextLong>
      </GenericVendorRecord>
    - <GenericVendorRecord>
      <GenericVendorID>1000001005</GenericVendorID>
      <BusinessPartner />
      <GroupID>550</GroupID>
      <Country>United States Minor Outlying Islands</Country>
      <LocalPartnerID>1000001005</LocalPartnerID>
      <ClientSystemObjectType>BW</ClientSystemObjectType>
      <City>Chicago</City>
      <Street60>111 Canal Street</Street60>
      <TextLong>Kautex</TextLong>
      </GenericVendorRecord>
    - <GenericVendorRecord>
      <GenericVendorID>1000001011</GenericVendorID>
      <BusinessPartner />
      <GroupID>551</GroupID>
      <Country>Mexico</Country>
      <LocalPartnerID>1000001011</LocalPartnerID>
      <ClientSystemObjectType>BW</ClientSystemObjectType>
      <City>Cancun</City>
      <Street60>123 River Drive</Street60>
      <TextLong>Lear Corp</TextLong>
      </GenericVendorRecord>
    - <GenericVendorRecord>
      <GenericVendorID>1000001008</GenericVendorID>
      <BusinessPartner />
      <GroupID>552</GroupID>
      <Country>Mexico</Country>
      <LocalPartnerID>1000001008</LocalPartnerID>
      <ClientSystemObjectType>BW</ClientSystemObjectType>
      <City>Cancun</City>
      <Street60>778 Sunny Drive</Street60>
      <TextLong>Tower Automotive</TextLong>
      </GenericVendorRecord>
      </GenericVendor></b>
    and the error iam getting is.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Inbound Proxy
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIProxy</SAP:Category>
      <SAP:Code area="ABAP">PARSE_APPLICATION_DATA</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error during XML => ABAP conversion (; error ID: ; ( )) PARSE_APPLICATION_DATA Error during XML => ABAP conversion (Request Message; error ID: CX_ST_DESERIALIZATION_ERROR; (/1SAI/TXS00000000000000000001 XML Bytepos.: 865 XML Path: GenericVendor(1)GenericVendorRecord(3)Country(4) Error Text: Data loss occurred when converting United States Minor Outlying Islands Kernel ErrorId: CONVT_DATA_LOSS)) Error during XML => ABAP conversion (Request Message; error ID: CX_ST_DESERIALIZATION_ERROR; (/1SAI/TXS00000000000000000001 XML Bytepos.: 865 XML Path: GenericVendor(1)GenericVendorRecord(3)Country(4) Error Text: Data loss occurred when converting United States Minor Outlying Islands Kernel ErrorId: CONVT_DATA_LOSS)) An error occurred when deserializing in the simple transformation program /1SAI/TXS00000000000000000001 Data loss occurred when converting United States Minor Outlying Islands</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error><b></b>
    Message was edited by: Venkat Yalamanchili

  • How to make sure the change of NLS_LANG is working?

    I want to show unicode through iSQL*PLUS.
    Refer to the guide article,there are three steps to reach it.
    1.browser encording :Unicode(UTF8)
    2.database character set : UTF8
    3.new environmental var : TRADITIONAL CHINESE_TAIWAN.UTF8
    I make sure that the 1 and 2 steps are definitely reached.
    But I'm not sure the apach server got the new parameter or not.It looks all the same.....
    So,my question is how can I got the information(NLS_LANG parameter) of HTTPServer?
    Besides,if anyone can teach me how to show unicode through iSQL*PLUS,I would be very greatful.
    Thank in advance.

    By Firefox index, did you mean site map?
    Firefox doesn't keep an index of a web site. The web site does.
    This sounds like a server configuration problem, not a browser problem. But could you please paste the full error messages(s) from Gater Host / WordPress?

  • How to set PS for the most reliable image previews and how to make sure the color spaces are the same across plateforms

    I've been having an ongoing problem with some of my images changing color/luminance values after merging or flattening an image. This seems to most often happen if I use one of the filters (like crosshatch or notepaper, not sharpen or blur). I can make a copy using command/option/shift + E which most often will look exactly like what's on screen.
    Some people have suggested that it's to do with resolution, PS showing me a low resolution image but I don't think so because the histogram changes -- sometimes in a big way, but most often those spikes in the luminance levels are shaved off. Also, when I have the image open at 100% and effect a merge/flatten, the color changes.
    I'd like to know if there's a way to have PS show me one for one what I'm working on while I'm working on it, or if there is a way to control the color profiles when I'm saving. My best guess at this point is that there is a color profile mismatch going on somewhere. I just don't know where to look for it.
    Typically I work in 16 bit, so my color space is set to ProPhoto RGB; my camera is set to the Adobe color space;
    color management policies are set to preserve color profiles;
    conversion options --> intent is set to relative colorimetric.

    But it is calibrated. I use Xrite 1 and update it every month (on the first).
    The colors can be really off. Here's an example.
    https://flic.kr/p/r6A1Zd (what I want) https://flic.kr/p/qc5QTD (not what I want)
    Also, I can't see how the bit depth will have any effect since the change in color happens in PS when I merge or flatten. It's 8 bit through the editing and 8 bit when I flatten it.
    Have you any suggestions on what I can do on the computer side?

  • How to make sure the addon is running when user open the SAP B1 client?

    Hi,
    Is it possible that that we can set somewhere in SAP B1 setting and without running addon user can not login into SAP B1 client? I tried even set the addon to Mandatory in addon administration, but user still can choose running without addon. Any suggestion ?
    Thanks!
    Lan
    Edited by: ZHANGLAN on Aug 19, 2010 10:49 PM

    Hi All,
    Maybe I didn't describe my situation clear enough. I have lot of lient PC with different environment, i am always be reported that the AddOn doesn't work. In most case they are caused by some unexpected reason like anti-virus softeware or windows update. If the addon crashes then user lost everything in addon and they will starti complaints... My idea is to make the addon as mandatory requirement before user can start to use SAP B1. But for now, the setting in addon administration is more like an option, end user still can be allowed to run SAP B1 without addon.
    Lan

  • How to make sure the input is an Integer?

    The code is like this:
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    import java.io.*;
    public class addPanel extends JPanel implements ActionListener {
         private JLabel lblName, lblStreetNum, lblStreetName, lblSuburb, lblPostcode, lblTele, lblEmail, lblPackage;
         private JButton btnAdd, btnClear;
         private JButton btnLoad;
         private JScrollPane scroll;
         private JRadioButton rbtnBasic, rbtnMovie, rbtnPlus;
         private JTextField txtName, txtStreetNum, txtStreetName, txtSuburb, txtTele, txtEmail, txtPostcode;
         private JTextArea display;
    * Create a new <code>addPanel</code>.
    * Here goes the design and implementation of the search panel.
    * The user can enter all the fields that specific the subscriber's information.
         public addPanel() {
              setLayout(new BorderLayout());
              JPanel all = new JPanel(new FlowLayout());
              lblName = new JLabel("Name:");
              lblName.setPreferredSize(new java.awt.Dimension(100, 20));
              lblStreetNum = new JLabel("Street Number:");
              lblStreetNum.setPreferredSize(new java.awt.Dimension(100, 20));
              lblStreetName = new JLabel("Street Name:");
              lblStreetName.setPreferredSize(new java.awt.Dimension(100, 20));
              lblSuburb = new JLabel("Suburb:");
              lblSuburb.setPreferredSize(new java.awt.Dimension(100, 20));
              lblPostcode = new JLabel("Postcode:");
              lblPostcode.setPreferredSize(new java.awt.Dimension(100, 20));
              lblTele = new JLabel("Telephone:");
              lblTele.setPreferredSize(new java.awt.Dimension(100, 20));
              lblEmail = new JLabel("Email:");
              lblEmail.setPreferredSize(new java.awt.Dimension(100, 20));
              lblPackage = new JLabel("Package:");
              lblPackage.setPreferredSize(new java.awt.Dimension(100, 20));
              txtName = new JTextField("");
              txtName.setPreferredSize(new java.awt.Dimension(300, 25));
              txtStreetNum = new JTextField("");
              txtStreetNum.setPreferredSize(new java.awt.Dimension(300, 25));
              txtStreetName = new JTextField("");
              txtStreetName.setPreferredSize(new java.awt.Dimension(300, 25));
              txtSuburb = new JTextField("");
              txtSuburb.setPreferredSize(new java.awt.Dimension(300, 25));
              txtPostcode = new JTextField("");
              txtPostcode.setPreferredSize(new java.awt.Dimension(300, 25));
              txtTele = new JTextField("");
              txtTele.setPreferredSize(new java.awt.Dimension(300, 25));
              txtEmail = new JTextField("");
              txtEmail.setPreferredSize(new java.awt.Dimension(300, 25));
              btnAdd = new JButton("Add");
              btnAdd.setPreferredSize(new java.awt.Dimension(90, 25));
              btnClear = new JButton("Clear");
              btnClear.setPreferredSize(new java.awt.Dimension(90, 25));
              btnLoad = new JButton("Load");
              btnLoad.setPreferredSize(new java.awt.Dimension(90, 25));
              btnLoad.addActionListener(this);
              btnAdd.addActionListener(this);
              btnClear.addActionListener(this);
              rbtnBasic = new JRadioButton("Basic");
              rbtnBasic.setSelected(true);
              rbtnMovie = new JRadioButton("Movie Essentials");
              rbtnPlus = new JRadioButton("Entertainment Plus");
              ButtonGroup group = new ButtonGroup();
              group.add(rbtnBasic);
              group.add(rbtnMovie);
              group.add(rbtnPlus);
              JPanel rbtnPanel = new JPanel (new GridLayout(3,1));
              rbtnPanel.setPreferredSize(new java.awt.Dimension(300, 90));
              rbtnPanel.add(rbtnBasic); rbtnPanel.add(rbtnMovie); rbtnPanel.add(rbtnPlus);
              display = new JTextArea( 100, 130);
              display.setPreferredSize(new java.awt.Dimension(350, 200));
              scroll = new JScrollPane();
              scroll.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
              scroll.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
              scroll.setPreferredSize(new java.awt.Dimension(350, 200));
              scroll.getViewport().add(display);
              all.add(lblName); all.add(txtName);
              all.add(lblStreetNum); all.add(txtStreetNum);
              all.add(lblStreetName); all.add(txtStreetName);
              all.add(lblSuburb); all.add(txtSuburb);
              all.add(lblPostcode); all.add(txtPostcode);
              all.add(lblTele); all.add(txtTele);
              all.add(lblEmail); all.add(txtEmail);
              all.add(lblPackage); all.add(rbtnPanel);
              all.add(btnAdd); all.add(btnClear);
              all.add(scroll);
              add(all);
         public void actionPerformed (ActionEvent e) {
              String ac = e.getActionCommand();
              String testStNum = txtStNum.getText();
              String testPostcode = txtPostcode.getText();
              String testTele = txtTele.getText();
              String packageType = "";
              if (rbtnBasic.isSelected()) { packageType = "Basic";}
              else if (rbtnMovie.isSelected()) { packageType = "Movie Essentials";}
              else if (rbtnPlus.isSelected()) { packageType = "Entertainment Plus";}
              // if "add" button is pressed
              if (ac.equals("Add")) {
    //               int stNum = Integer.parseInt(testStNum);
    //               int tele = Integer.parseInt(testStNum);
    //               int postcode = Integer.parseInt(testStNum);
                   // check the user has enter the fields or not
                   if ( (txtName.getText().equals("")) ||
                   (txtStreetNum.getText().equals("")) ||
                   (txtStreetName.getText().equals("")) ||
                   (txtSuburb.getText().equals("")) ||
    (txtPostcode.getText().equals("")) ||
    (txtTele.getText().equals("")) ||
    (txtEmail.getText().equals("")) ) {
                        display.append("Please fill in the fields in order to add a Subscriber!\n\n");
                   else {
                        session.addSubscriber(txtName.getText() , txtStreetNum.getText(), txtStreetName.getText(), txtSuburb.getText(), txtPostcode.getText(), txtTele.getText(), txtEmail.getText(), packageType);
                        display.append("Subscriber successfully added!\n\n");
                        txtName.setText(""); txtStreetNum.setText("");
                        txtStreetName.setText(""); txtSuburb.setText("");
                        txtTele.setText(""); txtEmail.setText(""); txtPostcode.setText("");
              if (ac.equals("Clear")) {
                   txtName.setText(""); txtStreetNum.setText("");
                   txtStreetName.setText(""); txtSuburb.setText("");
                   txtTele.setText(""); txtEmail.setText(""); txtPostcode.setText("");
                   display.setText("");
    This is kinda stupid actually,
    I want the input of txtStNum, txtPostcode, and txtTele must be Integer.
    If they are not Integer, the session.addSubscriber() will not be called,
    and in the TextArea --> display tell the user to input Integer......
    Thanks..

    Ok, that was difficult to read because you didnt use [ code ] tags... however... maybe this is something you could use with a keylistener for your text boxes
        public static void checkIsNumber(java.awt.event.KeyEvent evt){
            char c = evt.getKeyChar();
            //checks to see if the Key hit is a digit or backspace or delete
            if (!((Character.isDigit(c) ||
            (c == java.awt.event.KeyEvent.VK_BACK_SPACE) ||
            (c == java.awt.event.KeyEvent.VK_DELETE) ||
            (c == java.awt.event.KeyEvent.VK_MINUS)))) {
                //If not then beep and consume the event.
                Toolkit.getDefaultToolkit().beep();
                evt.consume();
        }If you don't want negitive numbers then take out the VK_MINUS portion of the if.
    This thing goes in your keyTyped event, if the input from the key is incorrect the program beeps at you and does nothing. you could easily change it to fit whatever needs you may have (such as displaying the error)

  • How do make sure the only audio files in my "Audio Files" folder are what are currently used in my project?

    I noticed my hard drive space was getting suspiciously low...
    After doing a little digging I realized that every single audio file (even the ones i have deleted segments for in my projects' arrange windows) are being saved in every one of my projects' "Audio Files" folders.
    One 4 minute song (comprised of 3 guitars, 1 bass, Midi drums, and a syth) has a cooresponding "Audio Files" folder containing over 1,600 Wav files and is consuming 3.0 + Gigs of hard drive space FROM THAT SONG ALONE!
    It seems as if every take i have ever recorded (even If it is no longer represented in my projects's arrange windows) remains saved in these "Audio Files" folders.
    Is there a setting/method to ensure what STAYS on my hard drive is only what is being used in the projects? There seems to be no logical reason for keeping every mistake that is otherwise deleted in the overall projects.
    there must be... because hand-weeding out every file it too daunting a task to be feasible.....
    THANKS!

    Hi
    When you delete a recorded region from the Arrange, Logic gives you an option to 'delete' or 'keep' the underlying audio file. You must've chosen to keep, or you have only been deleting regions which only refer to part of the file, so the whole audio file is still being 'used'.
    One method of cleaning up is to go to the Audio Bin, choose Edit:Select Unused, and then Delete.
    If you (really) want to tidy up further, you could use the Optimise Files function Audio Bin:Audio Files (but I'd suggest that you read up on that function in the manual to fully understand what it will do).
    CCT

  • How to make sure the Live cache information is getting reflect in the bex?

    Hi All,
    When the user enters some data in the planning book as soon as he saves it. It should be getting reflected in the cube isnt it? when i run the query it doesnt get reflected?
    What is the technical settings should i do ? to reflected those changes in apo 3.5 verison.?
    Thanks
    Pooja

    Hi Pooja, Rafael,
    You can actually have a bex report with life data.
    For that you need to use a remote cube, and not a basic one.
    On comment though: you access only the information stored in the live cache, so for example you will not get the projected stock easily.
    By default the projected stock is not stored; but even if you sotre it in a time series key figure, you still need to run the calculation... so any changes in order will not be reflected untill the next sotck calculation...
    So to get the projected stock real time is more complex and required some abap coding... to get the the order real time is quite easy to do with remote cube
    Good luck
    Julien

  • I keep getting urgent msgs to download 3.6. I have done so, but the download doesn[t seem to finish completely. How can I make sure the download has occurred? h s

    I have dowloaded both 3.6 and 4.1 exe, however, I still get the urgent mesg from firefox. My download file shows that the downloads took place, but I guess they never were completely installed. How can I check to make sure the downloads are installed? Will the urgent messages stop when the downloads are truly installed?'

    Do a clean (re-)install:
    * Download a fresh Firefox copy and save the file to the desktop.
    * http://www.mozilla.com/firefox/all.html
    * Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    * Don't remove personal data if you uninstall the current version (doesn't apply to Firefox 3.0.x).
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    Your bookmarks and other profile data are stored elsewhere (not in the Firefox program folder) and won't be affected by a (re)install.
    *[http://kb.mozillazine.org/Profile_folder_-_Firefox]

  • I keep getting a message reading "The server responded with an error...Make sure the URL is correct. Error 404" How do I correct this issue?

    The URL https://calendar.google.com/calendar/dav/[email protected]/user///calendar.google.com/calendar/dav/[email protected]/user/ encountered HTTP error 404. Make sure the URL is correct. How do I correct this issue so that I no longer see this message? Your help will be greatly appreciated.

    I simply un checked calendar in my account settings and closed ical.
    I checked it again, and opened ical.
    Thanks for the tip Linc Davis! but it works without deleting the google account completely. this was pretty straighforward and fast.

  • HT204053 I have multiple devices used by family members, how do you make sure the kids don't see Moms messages from Dad and visa versa?

    I have multiple devices used by family members, how do you make sure the kids don't see Moms messages from Dad and visa versa?

    Hi Roger:
    Thanks for the reply.  I think I figured out the problem.  Apple has confused (at least in my mind) the different IDs that people can have.  In the iCloud settings, they use the term Apple ID and not iCloud ID.  I guess there really is no such thing as an iCloud ID.  There are Apple IDs with various attributes.  This is not clearly explained or easy to see (how could I look up to see if my Apple ID is associated with iTunes for example?).
    I created, what I thought were iCloud IDs for each family member, but we all use my Apple ID for iTunes.
    One other question - why does the syncing of Notes using iCloud require an @me.com email account.  That makes no sense to me.
    Thanks for your help!
    AO

  • HT4515 How to make sure that after browsing that the webpage is not running in the background, but totally closed down

    How to make sure that after browsing that the webpage is not running in the background, but totally closed down

    Double tap the Home button, tap & hold the Safari icon until it starts to wiggle, tap the red minus sign to remove it from the Multi-Tasking bar. Tap the Home button when finished.

  • I just upgraded to the new 4, but not sure how to make sure all my apps (purchases) get over to the new phone from iphone 3.  can't seem to find instructions. thanks.

    I just upgraded to the new iphone 4, but am hesitant to get it plugged in b/c I don't know how to make sure all the apps purchased on my iphone 3 get to the new phone.  can't seem to find instructions so I'm sure it just "does it", but hesitant to literally pull the plug.  thanks.

    Follow these instructions:  iPhone: Transferring information from your current iPhone to a new iPhone, http://support.apple.com/kb/ht2109

  • How can i make sure the graphic file from my subcontract create is really llegal?

    how can i make sure the graphic file from my subcontract create is really llegal?
    They have creat the PNG file which creat from Adobe Illustrator CS5.
    I have try checking on Metadata In Adobe Bridge, and it seem to be blank.
    So i would likt to know how can i make sure the graphic file from my subcontract create is really llegal?
    Thanks

    I have try checking on Metadata In Adobe Bridge, and it seem to be blank.
    So i would likt to know how can i make sure the graphic file from my subcontract create is really llegal?
    shoo: if i had to do that for every file i get  i would go insane, as scott said, post contract: files that they (sub contractor) supply you, presume them ok unless you KNOW otherwise, or a copyright flag pops up contradicting ownership.
    G

Maybe you are looking for

  • Having problem in recognising file using utl_file package..

    Hi, I am using utl_file utility to read the CSV file, utl_file.fopen function is useed to open file. This fopen function has three input parameters, second parameter is file name. My problem is that, i have to read file on daily basis. File name will

  • Garbled text in Safari after installing Lion

    After installing Lion, Safari now displays many pages with what appears to be missing font, garbled text. Many sites I've visted in the past (including my bank) just have "AAAAAAAA" wherever there's supposed to be text. My first thought is either mis

  • ***** that You Can not remove/Hide apps removed from Iphone 5

    Kinda ***** that iphone 5 won't let you hide app purchases uninstalled on your Phone. Thought this was supposed to be a smart phone?

  • Creative Cloud Photoshop and Android Smartphone

    Photoshop can be used on desktop and mobile, so says the Adobe website. I have a Samsung (=Android) smartphone and am a Creative Cloud Member. Which app can I download in Google Play Store to have optimal access to photoshop as a cloud member?

  • Using History Columns without SecurityManager

    Hi There is a nice feature in BC4J which allows to manage history columns ("created by", "modified by") automatically. See Entity Wizard/Attribute/Checkbox "History column". This mechanismn uses JAZN to retrive the Name of the User. This is a nice fe