Help trouble with folders

My hard drive crashed and I got a new one put in, but i used to have tiger and now leopard is installed and the folders are annoying me. When i click on a folder in the hard drive it opens in its own window. Then i select a folder in that window and open it and a new window pops open. By the time i get to what i need there are 16 windows open. Is there a way to change the settings where windows open in the same window they came from??

In the main menu bar (Finder) see click on the name "Finder" and note the
drop-down menu beneath the name, and where it says "Preferences" you
should choose that, and in a small control box, choose "General" and then
see if the option check-box to choose, "Always open folders in a new window"
is tagged, if it is, uncheck that box to deselect that as a default option.
This should stop extra windows for folders, etc from opening. You can also
change the in-folder preference or view choices, through some additional
settings in both finder's View and also within a folder, by clicking a cog-wheel
device in the folder's menu bar header, and note the options within it. There
also are other means to customize folders and views, etc within the system
Hopefully de-selecting the noted item above helps resolve multiple folder/windows.
{Three interruptions, while I'm at the computer, and the answer is already posted!}
+PS: Hello, and welcome to Apple Support Discussions community!+
Good luck & happy computing!
+{ edited }+

Similar Messages

  • Picasa to iPhoto - help needed with folders/importing

    I am converting over from Picasa on windows to iPhoto on a new iMac I recently bought. And I have to say, the conversion has not been as smooth as I thought it would be. Any help will be appreciated highly
    1. In Picasa, I was able to see my underlying folder structure. At the same time I was able to arrange pictures from multiple folders into albums which became the metadata container.
    Question: Is there a way to easily see the folder structure of the underlying file system rather than have the iPhoto library which seems to show simply in terms of years.
    2. From other posts on the discussion board it seems like I can simply drag the folder from Finder to the source section of iPhoto to somewhat mimic what I described in #1 above. If that is the only option, I have the next question, and that is -
    Question: If I drag and drop a folder from Finder to the source section of iPhoto why does iPhoto not bring everything in as "Originals". I see that some of my pictures go into the corresponding "Modified" folder. It seems like there is an internal "modification" that is done at the time of import which I am unable to check on/off.
    Question: Also, in the same method, I see that the picture got duplicated on the file system - once appearing in the original folder which I dragged from the Finder, and the second time showing up under Originals or Modified folders within the iPhoto library folder under Pictures.
    How do I elimiate this duplication? Can I eliminate it and keep the "file system folder structure" available?
    Thanks in advance!

    TD,
    Thanks for the excellent explanation of the application and how it differs from what I have been used to doing. Without going into too much details, I would like to say that Picasa may be a file organizer, but it does allow me a concept of "albums" which is virtual and when I choose to put the same picture in multiple albums, it does not make a new copy each time.
    But I am not here to compare Picasa with iPhoto, only here to see how to do things in iPhoto the same or better way.
    Rolls, on the other hand) in the iPhoto Window (View
    -> Film Rolls) correspond exactly with the Roll
    Folders in the Originals Folder in the iPhoto Library
    Folder. You can move photos between Rolls, you can
    rename rolls, edit them, create them, as long as you
    do it via the iPhoto Window. Check out the Info Pane
    (wee 'i', lower left) the name and date fields are
    editable. Edit a Roll Name using the Info Pane, the
    Roll Folder in iPhoto Library Folder/Originals will
    also have the new name.
    So, rolls are in fact "real" and not virtual concepts right? I would actually be moving the files from one roll to another underneath when I move a picture in iPhoto from one roll to another. Is that the correct understanding I have?
    And, then FYI: A Note about the iPhoto Library
    Folder:
    In this folder there are various files, which are the
    Library itself and some ancillary files. Then you
    have three folders
    Originals are the photos as they were
    downloaded from your camera or scanner.
    (ii) Modified contains edited pics, shots that
    you have cropped, rotated or changed in any way.
    This allows the Photos -> Revert to Original command
    - very useful if you don't like the changes you've
    made.
    (iii) Data holds the thumbnails the the app
    needs to show you the photos in the iPhoto Window.
    Very cool. That makes sense, and I did read about this folder structure in some other posts which is very helpful to get started.
    If I drag and drop a folder from Finder to the
    source section of iPhoto why does iPhoto not bring
    everything in as "Originals". I see that some of my
    pictures go into the corresponding "Modified" folder.
    It seems like there is an internal "modification"
    that is done at the time of import which I am unable
    to check on/off.
    Your camera has an Auto Rotate feature, right? What
    happens there is that your camera doesn't rotate the
    pics, it simply puts a flag on them "Display Me This
    Way". Part of the core philosophy of iPhoto is to
    leave your original file untouched, so it creates a
    modified version, showing the rotation. How to stop
    it? Turn off auto-rotate or rotate the pics before
    they come into iPhoto.
    Excellent point. I will change that setting on the camera. Of course for all the pictures I have downloaded already, I suppose there is no way to change the rotation settings, right?
    Also, in the same method, I see that the picture
    got duplicated on the file system - once appearing in
    the original folder which I dragged from the Finder,
    and the second time showing up under Originals or
    Modified folders within the iPhoto library folder
    under Pictures.
    How do I elimiate this duplication? Can I eliminate
    it and keep the "file system folder structure"
    available?
    Trash your Original file structure. Let iPhoto do the
    file management. Freaky, right? Well don't do it
    right away, leave it until you feel confident in
    iPhoto, until you feel that you can trust the
    application.
    The other alternative is to not copy the files into
    the iPhoto Library Folder (You can change this at
    iPhoto -> Preferences -> Advanced). The down side is
    that iPhoto will still create the modified and data
    folders, when you delete from iPhoto you'll need to
    track down the individual pic yourself to delete it
    from the HD and things like migrating the library to
    an external HD or a new machine can be trickier.
    Ok, now that I understand the application a little better, I see that the original files and folder structure is not useful at all.
    But unfortunately, I would like to keep the folder structure on my external hard drive so that if I log into windows on bootcamp, I could use Picasa to access the same set of pictures. I currently have an automator action (backup folder/sync folder) which takes all the contents of Pictures folder and replicates it to the external drive. Then when I log in from Picasa, I have set the option to only scan the external drive.
    If I trash the original structure and simply sync the iPhoto Library folder, and then access it through Picasa, will there be any problems if Picasa drops some of its "database type" files (I know for sure it drops a Picasa.ini)?
    If I do not move any files from one folder to another, is it ok to let Picasa access the iPhoto Library folder?
    Most people who want to keep their own structure do
    so because they're afraid they won't be able to find
    the picture files: There are three ways (at least) to
    get files from the iPhoto Window.
    1. Drag and Drop: Drag a photo from the iPhoto
    Window to the desktop, there iPhoto will make a
    full-sized copy of the pic.
    2. File -> Export: Select the files in the
    iPhoto Window and go File -> Export. The dialogue
    will give you various options, including altering the
    format, naming the files and changing the size.
    Again, producing a copy.
    3. Show File: Right- (or Control-) Click on a
    pic and in the resulting dialogue choose 'Show File'.
    A Finder window will pop open with the file already
    selected.
    Thanks very much again for the detailed explanation. I really appreciate it.
    And, as I said above, Rolls have a direct
    correspondence with the iPhoto Library Folder.
    And I suppose if rolls are "real" then the virtual equivalents would be things like smart folders?
    -rpmm

  • Help trouble with forwarded message

    Hello,
    I realized that many people have this issues as I had recently, but I still need some help about this.
    I found that original sender was actually receiving my forwarded message to other people.  I had an important correspondence to make with my Attorney since February, I forwarded several messages from my opponent to my attorney.  We have been resolving issues very well, but one day, the opponents suddenly changed their attitude and giving me a hard time.  I was checking my older correspondence with the person who was actually mediating the situation and found out that my conversation with my attorney was leaked to the opponents because I hit "forward" to including the original message from the sender(opponent).  The mediator actually saw what I was talking with my attorney.  it was bad enough, the mediator was not telling me she was recovering my e-mail to my attorney.  Now I have a trust issue to my mediator.  It is not professional that mediator leaked my conversation with my attorney to the opponents, but Apple mail set up caused this situation.  Am I wrong?  I want to know if I could avoid this by myself, if it was my problem, I want Apple to teach me how to use e-mail setting correctly ASAP.  In my understanding, it should be my choice if I including the original sender or not when I forward the message to others, correct? 
    Why Apple automatically include the original sender when I forward my comments to others???
    is anyone know to fix this problem?  We act civil to each other and the mediator was taking her position fairly, but once they knew my attorney has more to say to opponents, the mediator revealed her position toward executives in the company (opponent)  My legal issue to justify my position should not be jeopardized by something like this that I cannot control.  Bad thing is I didn't know the opponent are reading my conversation to my attorney until now.  I didn't say anything wrong on the e-mail to my attorney to offend the opponent, but the opponent has been over reacting to the issue with me.  Original issue was mediated by the mediator, but now I need my attorney longer to resolve the issue.  Because of the forwarding message setting with Apple, I had extra problem.  I recently send a message to the mediator and asked if she received any e-mail that should be going only to my attorney, she has no answer.  I don't like any e-mail setting I cannot fix causes this trouble in the future.  I will never forward the message to my attorney and ask a question again, but I want Apple to make better setting to avoid this kind of situation. 

    seems like you tried to invoke the method parseXml of the class com.bt.ma.utils.xmlPolicyReader but used a wrong (illegal & incompatible) parameter attribute...

  • Please Help: Trouble with nested CASE statement and comparing dates

    Please tell me why the query below is always returning the bold null even when the start_date of OLD is greater than or equal to the start_date of NEW.
    What I want to do is get the difference of the start_dates of two statuses ( Start_date of OLD - Start_date of NEW) if
    1. end_date of NEW is not null
    2. start_date of OLD is greater than start_date of NEW
    else return null.
    select id,
    case when max(end_date) keep (dense_rank last order by decode(request_wflow_status,'New',1,0),start_date) is null then
    null
    else
              case when max(decode(status,'OLD',start_date,null)) > max(decode(status,'NEW',start_date,null))
              then max(decode(status,'OLD',start_date,null)) - max(decode(status,'NEW',start_date,null))
    else
    null
    end
    end result
    from cc_request_status where id =1
    group by id;

    Avinash,
    Thank you for your help.. Here is a more description of my problem..
    Here is a sample of data I have for a table with four columns (id,status,start_date,end_date)
    What I need to do is to get difference of the start dates of the maximum available dates, if data is valid. The pseducode is as follows:
    IF end_date of New status is null
    THEN return null
    ELSE
    IF start_date of old >= start_date of new
    THEN return (start_date of old - start_date of new)
    ELSE return null
    I used the following query but always return the bold null
    select id,
    (case when max(end_date) keep (dense_rank last order by decode(status,'new',1,0),start_date) is null then
    null
    else
              (case when max(decode(status,'old',start_date,null)) >=
              max(decode(status,'new',start_date,null))
              then max(decode(status,'old',start_date,null)) - max(decode(status,'new',start_date,null))
    else
    null
    end)
    end) result
    from tbl where id =1
    Based on the below sample, I expected to get the following result; 14-Mar-07 - 16-Feb-07 which is the difference of the maximum start_dates of the two statuses. However the query is not working.. Please help me.. Thank you..
    Id    Status    start_date      end_date
    1     new      03-Feb-07      07-Feb-07
    1     new      16-Feb-07      21-Feb-07
    1     old      '10-Mar-07      12-Mar-07
    1     old      '14-Mar-07      16-Mar-07

  • HELP: Trouble with partial filled arrays

    For HW, I have to write a deleteRepeats static method for an array of characters that deletes any character previously listed and returns the new array size. The example the problem gives is:
    char a[10];
    a[0]='a';
    a[1]='b';
    a[2]='a';
    a[3]='c';
    int size = 4;
    size = deleteRepeats(a, size);
    The problem then says after the code is executed, a[0] should be 'a', a[1] should be 'b', a[2] should be 'c' and size is 3. I read the section in my book on partially filled arrays, but I still can't get this method to work properly. Here is my code:
    public static int deleteRepeats(char[] a, int size) {
    size=a.length;
    for(int i=0; i<size; i++) {
    for(int j=1; i+j<size; j++) {
    if(a==a[i+j]) {
    a[i+j]=a[(i+j)+1];
    size--;
    return size;
    With that code, when I put in the test array [aabcd], it returns 3, when it should be 4 and it changes the array to [abccd]. I'm sure there's numerous problems with my code. Any help is greatly appreciated.

    Please post code in code tags.
    First, I have no idea why they make you work with partially-filled arrays. It seems like the worst idea in the world. You should use ArrayLists for this kind of thing.
    Why do you do "size=a.length;" at the beginning of the method? You lose the size information.
    And I don't see how the algorithm does what you want. When you "delete" an element from your list of numbers in the array, you need to shift all later elements backwards to fill the gap.

  • HELP troubles with dynamically generated URLs

    I'm trying to integrate a new shopping cart, but DW CS4 can't follow the dynamic links in the template pages. They render fine in Live View. I can follow the CSS in the CSS Styles panel, but of course, it's not editable. Related files are far from complete and if I try to click on one, I get an error that the file can't be found.
    The templates all contain dynamically generated URLs such as:
    <?php include("${__TPL_DIR__}pages/templates/part.header.tpl.html"); ?>
    The .ini files used have site root relative references.
    Any ideas? Or am I stuck limping along?

    Thanks David,
    I found a few articles in the Developer Center that were helpful in understanding what I was looking at. The articles on creating Drupal and Wordpress themes explained how the pages are created dynamically, as well as how to use DW to modify and create themes. Though the specifics are different than what I am looking at, the concepts are similar. They also confirmed that attaching the relevant CSS files as design time style sheets was a practical workaround in the absence of an add-on to help DW understand the site structure. I was hoping that I had just not done something correctly, but I can live with a workaround, knowing that an "easier" way isn't just waiting for me to learn something about DW.
    Don

  • Help, trouble with my OS and device maybe.

    Guys, I heard the new OS 10.3.1 has been released, but my Blackberry hasnt updated yet! Tried BlackBerry link, OTA, Web, none works. It shows that my device has the latest available device software! My BlackBerry is currently on version 10.2.1.3062! Help please? Please? :'( I really wanna use the new OS 10.3.1!! :'(

    As has always been, unless you purchased from ShopBB, then your carrier controls when (if ever) you will receive the update via the official methods.
    If you want to move to it anyway, then I suggest you try the very clean and very forceful AutoLoader method:
    http://supportforums.blackberry.com/t5/BlackBerry-​10-OS-Device-Software/Upgrading-OS10-devices-using​...
    Beware that it is completely destructive...the device will be "like new"...no data, no apps, no accounts, etc. Be sure you take a full backup first, as well as make full manual documentation of all apps, accounts, configurations, etc. Sometimes a restore reintroduces the very corruption one is trying to eliminate, and manual reconfiguration is necessary.
    You can also use this to fall back to a prior OS if you desire...you can install any OS level for which you can find an AutoLoader. (Hint...search over on the CB site!)
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Please please help trouble with exported quality

    please please help me> i have been searching the net for over 3 hrs for a solution and whatever I have found has been a little too technical for me . I am uploading video to i movie from a disk. the file types on the disk are mp4. I am then editing the clips on iMovie '09 when I go to export the movie I am chosing to export movie as a "large" 960x540
    .mov file. The quality ***...it is blurry and grainy and unusable. Someone in another forum told me to run the mp4 movie in quicktime and tell them what movie inspector says about the clip. Movie inspector says:
    Formatt: Apple MPEG4 Decompressor, 640 × 480, Millions
    FPS: 29.97
    Playing FPS: 30
    Data size 129 MB
    Data Rate: 1504.39 kbits/s
    Size 640 x 480
    I am dying over here any help please? and thank you all so much

    once I share to the media browser where does it go? cant find it.
    It's "hidden" in your user folder Movies>iMovie Projects. Right-click (Control-click) on the name of your Project and select "Show Package Contents". In the folder named Movies you will see your exported file. It could be either a .m4v or .mov file, or possibly another type, depending on whether standard definition or high definition and the size option chosen when exported. If you are producing a DVD, you drag the file from iDVD's Media-Movies pane onto the Theme background.
    Also, when sharing to the media browser I can only save it as "medium" quality...the other choices arent available?
    Then AppleMan's earlier advice will be correct (as always) - he recommended using the Medium setting based on your QuickTime details. It appears that your original MP4 video has an aspect ratio of 4:3, unless your Project settings are incorrect. You set the dimensions (standard 4:3, widescreen 16:9 or iPhone 3:2) of the project in File>Project Properties then selecting the General tab.
    In iMovie '09, I've mainly worked with AVCHD video which produces .MTS files that are converted to AIC (Apple Intermediate Codec) on import. This is high definition footage which iMovie can import as 1920 x 1080 or 960 x 540 (both widescreen 16:9). Hence, on export I can share at Large (960 x 540) or HD (1280 x 720). I'm not sure why you are only seeing a Medium option - could be due to the aspect ratio or maybe it's standard definition in MP4 format (just guessing!). If other options are greyed out, have you tried ticking the boxes - that activates each option for me.
    John

  • Please Help, trouble with j2sdk 1.4.2

    Hello anyone,
    Im only a rookie with java so,
    can some one please help me on why Java 2 SDK 1.4.2 cant preview my class files
    i have made very simple programs and compiled them by javac and after i type java (file name).class its come up with an error msg.
    the code is...
    import java.util.*;
    public class ExampleProgram
    public static void main(String[] args)
    System.out.println("Testing Java");

    Hello Mike and BBQ Frito
    thanx for all your help it works now
    all i had to do was type SET CLASSPATH and then type the file without .class
    thanx again bye
    andy

  • I'm really frustraded - Please help - Trouble with printing

    Hello guys, Im programing a software for a parking lot in java. I need to print tickets with an EPSON U220 printer. When I print, the margins of the paper are all messed up. It seems I can only print from the half of the paper to the left. What can it be? also, when I print from notepad the same happens, half of the paper is blank and only the other half prints.
    How could I solve this problem?
    Where could I start reading?
    Thanks ALOT for your time!
    Best regards
    Michel
    Edited by: mbehlok on Oct 23, 2009 8:02 PM

    mbehlok wrote:
    also, when I print from notepad the same happensSounds like the issue is completely unrelated to Java. Maybe a printer driver bug. Check/contact Epson support.

  • Help-trouble With Listener

    One class (class 1)implements mouse listener and responds to a mouse events.
    As part of that response it needs to call a variable set method in another class (class 2)and also have that setMethod call it's own ActionPerformed.
    Seems the problem is I don't have aaction event to pass
    I only have a mouse event. As follows:
    class 1
    public void mousePressed(MouseEvent e) {
    int y1=Math.abs(e.getY()-y);
    this.sourceReference.setVar(y1);
    repaint();
    class 2
    int var;
    public void setVar(int y)
    var=y;
    this.ActionPerformed(?? ); //This is what I want to do
    Same question slightly different.
    From class 1 I scould first call the setVar method
    and then issue a call to class 2's ActionPerformed.
    But again I don't seem to have the proper action event e to pass it.
    Thanks
    PS I posted this on the beginner site but no response.

    You can create an appropriate ActionEvent with an appropriate constructor.
    public ActionEvent(Object source, int id, String command)
    source should be the source (possibly component) that generated the event.
    id should be ActionEvent.ACTION_PERFORMED
    command should be whatever is meaningful for the event you are firing.
    Rather than tightly coupling this to a single actionPerformed method, you should look into making a fireActionPerformed-esque method (See the source for some of the swing components for examples) and registering action listeners... this means that you can extend the system at a later date so two or more other components are notified by the event.

  • Help Trouble with RAW

    I see some issues have popped up with raw, but I am having an issue that I cant find a solution. I do a lot of HDR photos and my CF reader crapped out so I had to plug in my D300 to get the pics, which I have done before without any issues, and the thumnails show up genericly with a lock icon on them. I can still see all my other raw shots inside of bridge, but not any new ones. The old ones I can see also will not import now. I have installed the new 5.1 ACR. I am using CS3. Does anyone know what I can do?

    Check to make sure these are not labeled as "read only" files.

  • Need Help: Trouble with Wireless Router Connection on MBP

    Hi all.  I just bought a MacBook Pro (my first Mac ever) and love, love, love it.  However, one glitch is driving me crazy.  I do *NOT* have an airport but I connect to my cable modem through my netgear wireless router.  When my MacBook Pro goes into sleep mode, I lose the connection to the wireless router.  I have to go unplug the router to reboot it for the MBP to see it again.  I think it has something to do with how it is assigning the IP address.  Has anyone else seen this issue?  Know how to solve it?  Thanks so much.

    See "Symptom: The network connection drops unexpectedly" on this page:
    Troubleshooting Wi-Fi issues in OS X Lion and Mac OS X v10.6

  • Please Help trouble with error Java 34

    I'm working on a basic program that uses JButton and JFrame for display/activity, I have been able to get the rest of the program running but I get this error when trying to Register a button event listener.
    .java:34: non-static variable this cannot be referenced from a static context
              createAction = new ButtonHandler();
    ^
    The code I used to create this Button is
         JButton create;
              ButtonHandler createAction;
              create = new JButton("Create");
              createAction = new ButtonHandler();
              create.addActionListener(createAction);
    Does anyone know why I am getting this error? I tried removing Static from my class main declaration but then the program terminates with this error
    java.lang.NoSuchMethodError: main
    Exception in thread "main"
    ----jGRASP wedge2: exit code for process is 1.
    Edited by: Grudairian on Oct 25, 2007 3:39 PM

    Grudairian wrote:
    I'm working on a basic program that uses JButton and JFrame for display/activity, I have been able to get the rest of the program running but I get this error when trying to Register a button event listener.
    .java:34: non-static variable this cannot be referenced from a static context
              createAction = new ButtonHandler();
    ^
    The code I used to create this Button is
         JButton create;
              ButtonHandler createAction;
              create = new JButton("Create");
              createAction = new ButtonHandler();
              create.addActionListener(createAction);
    Does anyone know why I am getting this error? I tried removing Static from my class main declaration but then the program terminates with this error
    java.lang.NoSuchMethodError: main
    Exception in thread "main"
    ----jGRASP wedge2: exit code for process is 1.
    Edited by: Grudairian on Oct 25, 2007 3:39 PMWhat you are trying to do is so overwhelmingly wrong that there is absolutely no way you have any idea what you are doing. You most certainly should not be trying to build GUI applications; have you gone through the Sun tutorial? Do you understand what the static (notice that it is all lowercase, because java is a case sensitive language) keyword means? How about the "this" keyword? Do you know what an instance is? Do you know the difference between a class and an object? If the answers to ANY of those questions is "no", then you need to go through the basic java tutorial:
    http://java.sun.com/docs/books/tutorial/

  • Help, trouble with JProgressBar

    Hi everybody
    I am having trouble implementing a JProgressBar. I am using SwingWorker and following the examples from the Swing tutorial but the task that the program is supposed to do is not doing it, it is like if the program stays in the Timer, and does not execute anything else. I am posting the simplified code that I am using.
    // GUI part (where thw progress bar is)
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class TaskGui extends JFrame
    private Container cp;
    private JTextField tf;
    private JLabel title;
    private JButton bGo;
    private JProgressBar progressBar;
    private Timer timer;
    private Task theTask;
    final private int SECOND= 1000;
    public TaskGui()
    super("Task Test");
    theTask= new Task();
    cp= getContentPane();
    cp.setLayout(new FlowLayout());
    title= new JLabel("Testing Progress Bar");
    // Initialize text fields
    tf= new JTextField(10);
    tf.setEditable(false);
    progressBar= new JProgressBar(0,100);
    progressBar.setValue(0);
    progressBar.setStringPainted(true);
    JPanel progPane= getProgBorderPane();
    // Event handler for "Go" button
    bGo= new JButton("Go");
    bGo.addActionListener( new ActionListener()
    public void actionPerformed(ActionEvent e)
    bGo.setEnabled(false);
    theTask.go();
    timer.start();
    cp.add(title);
    cp.add(tf);
    cp.add(progPane);
    cp.add(bGo);
    timer= new Timer(SECOND, new ActionListener()
    public void actionPerformed(ActionEvent e)
    progressBar.setValue(theTask.getPercentDone());
    out(theTask.getPercentDone() +" "+ theTask.getMaxCount() + "\n");
    if (theTask.finished())
    timer.stop();
    bGo.setEnabled(true);
    private JPanel getProgBorderPane()
    Border border= BorderFactory.createLoweredBevelBorder();
    TitledBorder tBorder= BorderFactory.createTitledBorder(
    border, "Progress...");
    JPanel bPane= new JPanel();
    bPane.setBorder(tBorder);
    progressBar= new JProgressBar(0,100);
    progressBar.setValue(0);
    progressBar.setStringPainted(true);
    bPane.add(progressBar);
    return bPane;
    private void out(String str) {System.out.print(str);}
    public static void main(String[] args)
    JFrame frame= new TaskGui();
    frame.addWindowListener(new WindowAdapter()
    public void windowClosing(WindowEvent e)
    System.exit(0);
    frame.setSize(270,150);
    frame.setVisible(true);
    // Actual task
    public class Task
    private final static int SECOND= 1000;
    private final long maxCount= 10000;
    private long sofar;
    private boolean finished= false;
    public Task()
    sofar=0;
    public void go()
    final SwingWorker worker= new SwingWorker()
    public Object construct()
    return new RandCount();
    public int getPercentDone() { return (int)((sofar*100)/maxCount); }
    public long getMaxCount() { return maxCount; }
    public boolean finished() { return finished; }
    class RandCount
    public RandCount() {}
    public void work()
    do
    sofar += Math.random()*10;
    } while (sofar >= maxCount);
    finished= true;

    Check this out. I have posted a simplified application using JProgressBar.
    http://forum.java.sun.com/thread.jsp?forum=57&thread=138973

Maybe you are looking for

  • One itunes account for 2 phones

    My husband got his iphone before I did and set up itunes account. When I got my phone later, he set everything up for me, but used same itunes account. Now every time he or I download an app or update our phones we have trouble. What do I need to do?

  • How can I have a .pdf that is encrypted (read only, no printing), but is searchable?

    I have a file containing secured .pdf documents.  These documents can be viewed electronically, but cannot be printed.  The security settings chosen are "Encrypt all document contents except metadata," and "Restrict editing and printing of the docume

  • Substring() Issue

    Hi, I have a string with the following content: String1 String2 With other words: "\n\n\n\nString1\nString2" How can I extract String1 & String2 from the whole string? Thanks in advance!

  • Problem referencing a newly created class instance - I don't understand why

    Hi, I am completely new to actionscript although I do come from a OOP background. I have been asked to trial Flash and Actionscript 3 in particular - so I do come with a few preconceptions on how I expect actionscript to behave. I have a problem I do

  • What is the best strategy to purge a set of database tables.

    Hi, I have 6 tables I would require to purge data from. 1 parent table - All of the data that needs to be purged are from a partition created on this table 5 child table - Using the parent record identifier, these records needs to be purged as well.