Help me with my JFileChooser() please

How can I set the directory to start inn, not use det default??

Use the method setCurrentDirectory(File path) on your
JFileChooser object.
-- Alexis

Similar Messages

  • TS1424 I get "We could not complete your iTunes Store request. An unknown error occurred (4002)  Can any person help me with this on, please?

    I get "We could not complete your iTunes Store request. An unknown error occurred (4002)  Can any person help me with this on, please?

    Turning off iTunes Match and Genius and then turning them back on appears to have worked for some people e.g.
    https://discussions.apple.com/message/22059685#22059685
    https://discussions.apple.com/message/18427550#18427550

  • When I plug in my headphones into my imac only the right side plays music. I tried with other headphones and still has the same problem. I tried the headphones with other devices and they work properly. Can anyone help me with my problem please?

    When I plug in my headphones into my imac only the right side plays music. I tried with other headphones and still has the same problem. I tried the headphones with other devices and they work properly. Can anyone help me with my problem please?

    Macs have crazy headpne jacks in different models.
    So we know more about it...
    At the Apple Icon at top left>About this Mac, then click on More Info, then click on Hardware> and report this upto but not including the Serial#...
    Hardware Overview:
    Model Name: iMac
    Model Identifier: iMac7,1
    Processor Name: Intel Core 2 Duo
    Processor Speed: 2.4 GHz
    Number Of Processors: 1
    Total Number Of Cores: 2
    L2 Cache: 4 MB
    Memory: 6 GB
    Bus Speed: 800 MHz
    Boot ROM Version: IM71.007A.B03
    SMC Version (system): 1.21f4

  • Hey guy can you please help me with this issue PLEASE!

    Hey Apple can you please help me with this issue, i have a iPhone 3gs and when i put my sim card into the iPhone it makes iphone 3gs shut down suddenly how do i fix that?
    iPhone version: 6.0.1
    service provider: Vodafone nz

    You could restarting your phone that sometimes fixes issues
    Hold down the Sleep/Wake button and the home button together until the apple logo appears (ignore the ON/OFF slider) then let both buttons go and wait for phone to restart (no data will be lost).

  • HT1212 I don't remember the password of my iphone. I restarted the phone with IOS 7. But I can't remember what the password was. Help me with my problem please.

    I don't remember the password for my iphone 4. I restated it with IOS 7 and the iphone is disable.Please help me with that.

    You will have to restore it from Recovery mode, as described in the tip you were reading when you posted your message. Or see: http://support.apple.com/kb/HT1808. You will lose all data on your phone.

  • Can you help me with my program please?

    hi all,
    I have a problem with the sellMilk function at the Milk class I don't know how to write it right I've tried everything so I need you to help me.
    this function should check the expiry date of the milk and sell the required amount if it is not expired. if it was expired just delete the milkbox.
    I have cases like if the first box has 5 kg and not expired , second box has 10 kg and expired, third box has 8 kg and not expired .. and if the required amount to sell is 6 kg for example it should work like this: first box should become zero because 5 kg has been sold and remainder is 1 .. so it should check the expiry date of the second box and it is expired so delete it. and then check the third box's expiry date and it is not expired so 8-1 = 7 .. and by that way 6 kg has been sold.
    my program it just delete the expired box if it was the first element.
    my code doesn't work well like that! here is the full program so you can check the code to help me please ..
    the problem is just with SellMilk() at the Milk Class
    Thank you
    import java.io.*;
    import java.text.*;
    import java.util.*;
    public class Market
        public static void main(String args[ ])
        { System.out.print("Enter the Market name: " );
            String name1 = Stdin.readLine();
            Market_Store mymarketstore = new Market_Store(name1);
       System.out.println("Welcome To " +name1+" Market ");
       System.out.println("");
            System.out.println("1-Stock new Milk");
            System.out.println("2-Stock new Milk Box");
            System.out.println("3-Sell");
            System.out.println("4- Display");
            System.out.println("");
            System.out.print("Enter your choice: ");
            int choice = Stdin.readInteger();
            while (choice != 5)
                switch (choice)
                case 1:
                 mymarketstore.stockNewMilk();
                    break;
                case 2:
                    mymarketstore.stockMilkBox();
                    break;
                    case 3:
             mymarketstore.sell();
                break;
                case 4:
               mymarketstore.display();
                            break;
                            case 5:
                default:
                    System.out.println("wrong Number");
                    System.out.println("Enter a number between 1 to 4 ");
                    System.out.println("Enter 5 to Exit");
                    break;
                System.out.println("");
              System.out.println("Welcome To " +name1+" Market ");
       System.out.println("");
            System.out.println("1-Stock new Milk");
            System.out.println("2-Stock new Milk Box");
            System.out.println("3-Sell");
            System.out.println("4-Display");
            System.out.println("");
             System.out.print("Enter your choice: ");
                choice = Stdin.readInteger();
    class Market_Store
            private String name;
            private Vector mymilk;
            public Market_Store(String n)
                    name=n;
                    mymilk = new Vector();
            public void stockNewMilk()
                    String N;//milk type
                    System.out.print("Enter the type of the milk: ");
                    N=Stdin.readLine();
                    Milk  m1 = new Milk (N);
                    mymilk.addElement(m1);
            public void stockMilkBox()
            System.out.println("Milk Available in stock : ");
            for (int i=0; i<mymilk.size(); i++){
            Milk m2 = (Milk)mymilk.elementAt(i);
            System.out.print(i+1+")");
            System.out.println(m2.getMilkType());  }
                    System.out.print("Enter the number of the milk to stock new box: ");
            int     ii = Stdin.readInteger();
            ((Milk)(mymilk.elementAt(ii-1))).addNewBox();
            }//end stockMilkBox
            public void sell()
                    //sell specific type of milk
                   System.out.println("Milk Available in stock : ");
            for (int i=0; i<mymilk.size(); i++){
            Milk m2 = (Milk)mymilk.elementAt(i);
            System.out.print(i+1+")");
            System.out.println(m2.getMilkType());
                                   System.out.print("Enter the number of the milk to sell:  ");
            int     ii = Stdin.readInteger();
    System.out.print("Enter the amount required in Kg:  ");
    double amount = Stdin.readDouble();
            ((Milk)(mymilk.elementAt(ii-1))).sellMilk(amount);
            public void display()
            {      System.out.println("Milk Available in stock : ");
            for (int i=0; i<mymilk.size(); i++){
            Milk m2 = (Milk)mymilk.elementAt(i);
            System.out.print(i+1+")");
            System.out.println(m2.getMilkType());
                    System.out.print("Enter the number of the milk to display:  ");
            int     ii = Stdin.readInteger();
                    ((Milk)(mymilk.elementAt(ii-1))).display();
    class MilkBox
            private Date expiredate;
            private Date date;
            private double stock;
            public MilkBox(double stck, Date ed)
                     date = new Date();
                    expiredate = ed;
            public double getStock()
             return stock;     }
            public Date getDate()
                     return date;
    public void setStock(double st)
    { stock = st;}
    public void setExDate(Date dd)
    {expiredate = dd;}
            public Date getExDate()
                     return expiredate;
      public   double sellMilkBox(double amount)
            double excessAmount = 0;
            if (amount < stock)
                double newAmount = stock - amount;
                setStock(newAmount);
            else  
                excessAmount = amount - stock;
                setStock(0);
            return excessAmount;
    public     void display()
                            System.out.println("The box of "+date+" has " +stock+" KG");
    class Milk
            private String Mtype;//milk type
            private Vector mybox;//vector of batches
            public Milk (String n)
                    Mtype =n;
            mybox = new Vector();
      public  void addNewBox()
    double stook;
    System.out.print("Enter the weight of the box: ");
    stook = Stdin.readDouble();
         Date exdate;//expirey date
    System.out.println("Enter the expirey date of the milk box:");
           int d; int m1; int y;
              System.out.println("Enter Year:" );
              y = Stdin.readInteger();
              System.out.println("Enter Month:" );
              m1 = Stdin.readInteger();
              System.out.println("Enter Day:" );
              d = Stdin.readInteger();
                   Calendar r=new GregorianCalendar(y,m1,d);
                    exdate= r.getTime();
                    //send the attributes to Box constructor
                   MilkBox newBox = new MilkBox(stook,exdate);
                    newBox.setStock(stook);
                    newBox.setExDate(exdate);
                    mybox.addElement(newBox);
       public void display()
                    System.out.println("Milk "+Mtype);
                            for (int i=0; i<mybox.size(); i++){
                    MilkBox b= (MilkBox)mybox.elementAt(i);
                    b.display();
    public double sellMilk (double amount)
       for(int i=0;i<mybox.size();i++)
               MilkBox b = (MilkBox)mybox.elementAt(i);
                double stock = b.sellMilkBox(amount);
                double value = b.getStock();
                Date ExpireyDate = b.getExDate();
      if ( ExpireyDate.before(new Date()))
    {  mybox.removeElementAt(i);
            System.out.println("it has expired date");
    if (stock >1|| value  ==  0 && ExpireyDate.after(new Date()))
    {       mybox.remove(b);  
    amount = stock;
    if ( ExpireyDate.before(new Date()))
    {  mybox.removeElementAt(i);
            System.out.println("it has expired date");
      if(amount != 0)
      System.out.println("The extra amount is "+amount+ " KG");
    return amount;}
    public String getMilkType()
    { return Mtype;}
    //set method
    void setMilkType(String n)
    { Mtype = n;}
    }//end class milk
    //STDIN FILE
    final class Stdin
       public static BufferedReader reader=new BufferedReader
        (new InputStreamReader(System.in));
       public static String readLine()
       while(true)
       try{
           return reader.readLine();
           catch(IOException ioe)
             reportError(ioe);
           catch(NumberFormatException nfe)
            reportError(nfe);
       public static int readInteger()
        while(true)
        try{
        return Integer.parseInt(reader.readLine());
        catch(IOException ioe)
        reportError(ioe);
        catch(NumberFormatException nfe)
        reportError(nfe);
       public static double readDouble()
        while(true)
        try{
        return Double.parseDouble(reader.readLine());
        catch(IOException ioe)
        reportError(ioe);
        catch(NumberFormatException nfe)
        reportError(nfe);
        public static void reportError (Exception e)
        System.err.println("Error input:");
        System.err.println("please re-enter data");
        }Edited by: mshadows on Dec 22, 2007 12:06 AM

    ok here is the code that has the problem .. what's wrong with it?
    public double sellMilk (double amount)
       for(int i=0;i<mybox.size();i++)
               MilkBox b = (MilkBox)mybox.elementAt(i);
                double stock = b.sellMilkBox(amount);
                double value = b.getStock();
                Date ExpireyDate = b.getExDate();
      if ( ExpireyDate.before(new Date()))
    {  mybox.removeElementAt(i);
            System.out.println("it has expired date");
    if (stock >1|| value  ==  0 && ExpireyDate.after(new Date()))
    {       mybox.remove(b);  
    amount = stock;
    if ( ExpireyDate.before(new Date()))
    {  mybox.removeElementAt(i);
            System.out.println("it has expired date");
      if(amount != 0)
      System.out.println("The extra amount is "+amount+ " KG");
    return amount;}

  • HT4623 Help me with my Iphone, please:(

    I've download the 6.1 iOS for my Iphone 3gs. But it wasn't work. What's wrong with it? And now my Iphone stop working @.@ OMG~~~ What should i do now? Please help me!

    I try activating it many times but it always said:" Your iPhone could not be activated because te activation server is temporarily unvailable. Try connecting your iPhone to iTune to activate it, or try it again in a couple minutes"
    I've done everything what it said but didn't  work =.="
    Now i'm very worry...
    Help me, please...
    Thank you

  • Help me With my MacBook please!!!

    I was listening to recently downloaded music on my MacBook last night when all of a sudden the screen went black stopped the music and beeped about 9 or 10 times. Now whenever I try to start it up again the screen stays black and beeps the same amount and doesn't work. I have tried to find similar issues but it seems all solutions have to do with the computer starting up and doing something within the computer. If you can offer an attempt at a solution. Please please please let me know and reply to this post. Thank you and have a nice day

    Hi,
    Was there any error messages that appeared before the MacBook shut down?
    Try to perform a PRAM Reset, then attempt to start it up again:
    http://support.apple.com/kb/ht1379
    Also try an SMC Reset if the above doesn't help:
    http://support.apple.com/kb/HT3964
    Thanks,
    Ollie.

  • Help me with my iphone, please!

    When I try update my app on AppStore, appears me "there is a billing issue with your previous account". When I try change my card's information, appear "For help please contact support itunes". What can i do?

    Click here and ask the iTunes Store staff for assistance.
    (101386)

  • Help me with this error please. 0xe800065

    This error drives me nuts. When i plug in my iphone 4s the error 0xe800065 pops up in the itunes saying it cant connect. My iphone is also in a bad shape because it just updated from ios 6.0.1 to 6.1 without me knowing it. My iphone needs to activate with wifi connection but then it fails every time or connect with itunes but....  Can somebody please help me?

    There are troubleshooting steps for 0xE errors here: http://support.apple.com/kb/TS3221.

  • Help needed with Synergy 4500 please

    I have inherited a set of BT Synergy 4500 phones and have been trying to get them set up but am having problems - can somebody please give me some help?
    First, there are three handsets but one is showing as number 4, (I suspect there might have originally been 4 but one has disappeared).  I've been trying to renumber this but no luck.
    When I lift the phone to make a call I get a noise that sounds like an engaged tone - not like an ordinary dial tone, and I can't seem to dial out - nothing happens.
    One of the handsets indicates there are three unanswered calls - how can I clear this? 
    TIA 

    There are help pages here http://bt.custhelp.com/app/answers/detail/a_id/11489/~/bt-synergy-4500
    The guide should tell you how to clear the calls.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Help needed with this tutorial please

    Hello in this InsertUpdateDelete tutorial at:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/index.jsp
    or
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/inserts_updates_deletes.html
    and in this paragraph:
    Changing the Column Components
    and this statement
    In the Visual Designer, select the top Drop Down List component in the Table.
    "It's pretty confusing because there isn't a Drop Down List component in the Table as far as i can tell. There is a Drop Down List on the canvas up above this data table, but that has already been bound in a previous process, here is that previous proces:"
    Configuring the Drop Down List
    Select the Drop Down List in the Visual Designer and, in the Properties window, change its General > id property to personDD.
    Right-click the personDD Drop Down List in the Visual Designer and choose Bind to Data from the pop-up menu. The Bind to Data dialog box appears.........
    Can anyone tell me where i can get help with this tutorial or where i can download the finished program so i can sync up with what is actually being referenced in the questional statement that i mentioned above please?
    Thanks very much!
    BobK

    In Step 5 of "Changing the Column Components" you change the Trip Type column to a drop-down list.
    5. Select TRIP.TRIPTYPEID from the Selected list and make the following changes:
    * Change the Header text field from TRIPTYPEID to Trip Type.
    * Using the drop-down list, change the Component Type from Static Text to Drop Down List.
    6. Click OK to enforce your changes and dismiss the window. If the table columns are too wide after performing the above steps, you can resize them by selecting the first component in each column and dragging its selection handles.
    7. In the Visual Designer, select the top Drop Down List component in the Table. Right-click and choose Bind to Data from the pop-up menu. The Bind to Data dialog box opens.

  • Help needed with CSS menu please

    Hello
    Could someone give me a hand with a CSS menu I am struggling
    with please?
    I want each of the blue menus to have a black border around
    it (so 4 borders in total). And how do I make each menu have a
    closer gap? I need them squashed up a little bit more vertically.
    The code is as follows -
    <style type="text/css">
    #ddblueblockmenu{
    width: 179px;
    border-top: 1px solid #FFFFFF;
    border-right: 1px solid #FFFFFF;
    border-bottom: 0 solid #FFFFFF;
    border-left: 1px solid #FFFFFF;
    #ddblueblockmenu ul{
    margin: 0;
    padding: 0;
    list-style-type: none;
    font: normal 75% 'Trebuchet MS', 'Lucida Grande', Arial,
    sans-serif;
    border: #000000;
    #ddblueblockmenu li a{
    display: block;
    padding: 5px 0;
    padding-left: 9px;
    width: 169px; /*185px minus all left/right paddings and
    margins*/
    text-decoration: none;
    color: white;
    background-color: #2175bc;
    border-bottom: 11px solid #FFFFFF; /*change border gap size
    here*/
    /*border-left: 1px solid #1958b7;
    * html #ddblueblockmenu li a{ /*IE only */
    width: 187px; /*IE 5*/
    w\idth: 169px; /*185px minus all left/right paddings and
    margins*/
    #ddblueblockmenu li a:hover {
    background-color: #2586d7;
    border-left-color: #1c64d1;
    #ddblueblockmenu div.menutitle{
    color: white;
    border-bottom: 1px solid black;
    padding: 1px 0;
    padding-left: 5px;
    background-color: #FFFFFF;
    font: bold 60% 'Trebuchet MS', 'Lucida Grande', Arial,
    sans-serif;
    </style>
    <body>
    <div id="ddblueblockmenu">
    <ul>
    <li><a href="whoarewe.htm"><strong>What We
    Offer</strong></a></li>
    <li><a
    href="guidelines.htm"><strong>Professional
    Guidelines</strong></a></li>
    <li><a
    href="workshops.htm"><strong>Workshops</strong></a></li>
    <li><a href="contactus.htm"
    style="border-bottom-color: white; font-weight:
    bold;">Contact</a></li>
    </ul>
    </div>
    </body>
    </html>
    Any help is very greatfull appreciated!!
    Tom

    "Gary White" <[email protected]> wrote in message
    news:[email protected]..
    > On Tue, 23 May 2006 11:42:13 +1000, ".: Nadia :. ACE :."
    > <[email protected]> wrote:
    >
    >>If you want a border the same color around the whole
    menu, you can use the
    >>short-cut method:
    >>
    >>border { 1px solid #FFF;}
    >
    >
    > Uh ...
    >
    > #ddblueblockmenu{
    > width: 179px;
    > border: 1px solid #fff;
    > }
    >
    um... that's what I meant... the OP had all four sides styled
    separately,
    with 0 for one side... but mentioned he wanted a border on
    all sides....
    hence my arrow pointing out the side that had 0 for border
    and what could
    be used as a shortcut method of styling the border....
    Maybe my post wasn't exactly clear ;-)
    Nadia
    Adobe� Community Expert : Dreamweaver
    http://www.csstemplates.com.au
    - CSS Templates | Free Templates
    http://www.perrelink.com.au
    - Web Dev
    http://www.DreamweaverResources.com
    - Dropdown Menu Templates|Tutorials
    http://www.adobe.com/devnet/dreamweaver/css.html

  • OS X Freezing - Help Me With Console File Please

    Hi there.  I have a MBP 2011 15" i7.  Since I've moved over to this computer from my last MBP, I am getting issues where the computer locks up when it comes back from sleep mode.  The only thing that fixes it is a hard reboot.  I read online to check out my Console messages, but I have no clue what I am looking at.  My file is saved here: http://dl.dropbox.com/u/2411532/All%20Messages.log
    Can you please take a look at the Console file and let me know if you see any issues?  One thing I saw was an entry for "Clean My Mac" but that isn't installed on my machine.  Could that be it? 
    Thanks for your time and help.

    I've gotten rid of the CleanMyMac stuff with a product called Lingo.  Not sure if that is the culprit or not.

  • Can some one help me with my wii please?@?@??!?!?!?

    ok, its not that i want ot know why this sems to be such a big problem, i just would like to know how to fix it! hopefully this isn getting old hat, but it seems to some times want to connect, and some times not( or atleast fund an access point), but when it does, i've entered the correct password i dont know how many times in a row, but it would not reconize the password, then i got it to by not entering a password at all..... only to have it fail the connection test..... yipee, and i thought nintendo was the mac of the game consoul world! itd be simply awesum, no MIRACLUS!, if some one could guide me thru step by step on how to set this up!!!
    HELP ME PLEASE!!
    -the big turd in the sky,
    turdfurgisin

    turdfurgisin, Welcome to the discussion area!
    Are you using an AirPort Express (AX) to create your wireless network?
    Are you using wireless encryption? If so what type (WPA2, WPA, or WEP)?

Maybe you are looking for

  • Cannot save PSB - CMYK file as a PDF file in Photoshop Cc

    Hi . I have a psb file CMYK open in photoshop cc , but cannot save it as a pdf. I've searched for a solution but cannot find it. The file is just over 5gb in size and I need to give it to the printers as a CMYK pdf file. Please advise.

  • How to change the order of pages according to their order in the tabs?

    Hello.There is a file pdf, contains bookmarks, but the pages in the document are not consecutive. How to do that, they were going after each other strictly in order as in the bookmarks? Acrobat reader 8

  • IO Error exporting to PDF after deployment to WAS 6 (using RAD7)

    <p>Hello,</p><p>I have been using the new CR4E that I downloaded and installed to IBM's RAD 7  - My reports export to PDF and display beautifully from my local WAS 6 test server - but no luck after deploying to my production WAS 6 server.  I've publi

  • Content Viewer for Web, when can we sign in?

    Content Viewer for Web is updated to Version: 1.r24.0.35. But how - and when - can we make it work with our Entitlement service?

  • Custom display size for Mavericks?

    Hi everyone. My monitor's screen resolution is 1280x960. But there isn't an option that is close to this in the display settings on my mac. There is no way to make a custom screen resolution (why not, apple?) and the one that is semi-decent makes my