Dictation behaviour with spaces and sentence starts

I have been using dictation for several months now with great success. Its behaviour has suddenly changed. It now insists on placing a space before every sentence, thus indenting the first sentence of each paragraph by one space, and defaulting to putting a double space between sentences; which I do not like. Further, the double space is often applied if I print whilst pausing for thought, mid-sentence.
Has anyone else noticed this change in behaviour?
I could not swear, but I suspect that it was triggered when I turned dictation off in system preferences, at that point not realising that this reset my cache on the server. Having said that, even when I first started using this system several months ago, it never did this.
I have since tried toggling dictation off then on, and also trashing the relevant preferences:
com.apple.speech.recognition.AppleSpeechRecognition.prefs
com.apple.speech.recognition.feedback.prefs
com.apple.speech.recognition.recognizer.prefs
Does anyone have any thoughts or ideas around this?
[In this post, I have left the one space paragraph indentations, but had to manually delete those between my sentences and clauses.]
Best regards,
Justin

Polite Bump!

Similar Messages

  • Program Help, working with spaces and only letters

    I'm writing a program that takes an input string and gets the length and/or gets the number of vowels and consonants in the string. I've gotten it working except for consideration of spaces (which are allowed) and error checking for input other than letters. Here is what I've got so far. ANY suggestions would be greatly appreciated. Thank You
    import java.io.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class LetterStringManip extends JFrame
    {//declaring variables
         private JLabel stringOfLettersL, lengthL, lengthRL, vowelsL, vowelsRL, consonantsL, consonantsRL;
           private JTextField stringOfLettersTF;
           private JButton lengthB,vowelB, quitB;
           private LengthButtonHandler lbHandler;
           private VowelButtonHandler vbHandler;
           private QuitButtonHandler qbHandler;
           private static final int WIDTH = 750;
           private static final int HEIGHT = 150;
           public LetterStringManip()
           {// setting up GUI window with buttons
               stringOfLettersL = new JLabel("Enter a String of Letters", SwingConstants.CENTER);
                   lengthL = new JLabel("Length of String: ", SwingConstants.CENTER);
                   lengthRL = new JLabel("", SwingConstants.LEFT);
                   vowelsL = new JLabel("Number of Vowels: ", SwingConstants.CENTER);
                   vowelsRL = new JLabel("", SwingConstants.LEFT);
                   consonantsL = new JLabel("Number of Consonats: ", SwingConstants.CENTER);
                   consonantsRL = new JLabel("", SwingConstants.LEFT);
                   stringOfLettersTF = new JTextField(15);
                   lengthB = new JButton("Length");
                   lbHandler = new LengthButtonHandler();
                   lengthB.addActionListener(lbHandler);
                   vowelB = new JButton("Vowels");
                   vbHandler = new VowelButtonHandler();
                   vowelB.addActionListener(vbHandler);
                   quitB = new JButton("Quit");
                   qbHandler = new QuitButtonHandler();
                   quitB.addActionListener(qbHandler);
                   setTitle("String Of Letters");//Window title
                   Container pane = getContentPane();
                   pane.setLayout(new GridLayout(3,4)); //Window layout
                   pane.add(stringOfLettersL);
                   pane.add(stringOfLettersTF);
                   pane.add(lengthL);
                   pane.add(lengthRL);
                   pane.add(vowelsL);
                   pane.add(vowelsRL);
                   pane.add(consonantsL);
                   pane.add(consonantsRL);
                   pane.add(lengthB);
                   pane.add(vowelB);
                   pane.add(quitB);
                   setSize(WIDTH, HEIGHT);
                   setVisible(true);
                   setDefaultCloseOperation(EXIT_ON_CLOSE);
           }//closes public LetterStringManip()
           private class LengthButtonHandler implements ActionListener
               public void actionPerformed(ActionEvent e)//Length Button is clicked, getLength() method is performed
                      getLength();
                   }//closes public void actionPerformed(ActionEvent e)
           }//closes private class LengthButtonHandler implements ActionListener
           private class VowelButtonHandler implements ActionListener
               public void actionPerformed(ActionEvent e)//Vowels Button is clicked, getVowels() method is performed
                      getVowels();
                   }//closes public void actionPerformed(ActionEvent e)
           }//closes private class VowelButtonHandler implements ActionListener
           private class QuitButtonHandler implements ActionListener//Quit Buttton is pressed
               public void actionPerformed(ActionEvent e)
                       System.exit(0);
                   }//closes public void actionPerformed(ActionEvent e)
           }//closes private class QuitButtonHandler implements ActionListener
                     public void getLength()//gets the length of the string
                       String letString = (stringOfLettersTF.getText());
                       String lengthString;
                 int length;
                         length = letString.length();
                         lengthString = Integer.toString(length);
                         lengthRL.setText(lengthString);
                    }//closes public void getLength()
                     public void getVowels()//gets the number of vowels in the string
                 String letString = (stringOfLettersTF.getText());
                       String vowString;
                         String conString;
                 int countVow = 0;
                         int countCon = 0;
                         int i;
                         int length = letString.length();
                         char[] letter = new char[length];
                 for (i = 0; i < letString.length(); i++)
                     letter[i] = letString.charAt(i);
                     if (letter=='a' || letter[i]=='e' || letter[i]=='i' || letter[i]=='o' || letter[i]=='u')
    countVow++;
                        }//closes for
                        countCon = letString.length() - countVow;
    vowString = Integer.toString(countVow);
                        conString = Integer.toString(countCon);
                        vowelsRL.setText(vowString);
                        consonantsRL.setText(conString);
                   }//closes public void getVowels()
         public static void main(String[] args)
         LetterStringManip stringObject = new LetterStringManip();
         }// closes public static void main(String[] args)
    }//closes public class LetterStringManip extends JFrame

    OK, per the instructions above: I will re-post my code that I have now. I have dealt with the space not being counted now, I only need to figure out how to validate my input so that only letters are allowed. If anyone has any suggestions, or can help me out in any way, it'd be great. The suggestions with creating word and sentence objects is still a little beyond what we have gone over thus far in my Java course, I feel like I can almost grasp it to code it, but end up getting really confused. anyways, hear is my 'crude' code so far:
                     public void getLength()
                       String letString = (stringOfLettersTF.getText());
                       String lengthString;
                          int finalLength;
                          int countSpace = 0;
                                int length = letString.length();
                       char[] letter = new char[length];
                        int i;
                                 for (i = 0; i < letString.length(); i++)
                                    letter[i] = letString.charAt(i);
                                    if (letter==' ')
    countSpace++;
              finalLength = length - countSpace;
                   lengthString = Integer.toString(finalLength);
                   lengthRL.setText(lengthString);
                   public void getVowels()
    String letString = (stringOfLettersTF.getText());
                   String vowString;
                   String conString;
    int countVow = 0;
                   int countCon = 0;
                   int countSpace = 0;
                   int i;
                   int length = letString.length();
                   char[] letter = new char[length];
    for (i = 0; i < letString.length(); i++)
    letter[i] = letString.charAt(i);
    if (letter[i]=='a' || letter[i]=='e' || letter[i]=='i' || letter[i]=='o' || letter[i]=='u')
    countVow++;
                   if (letter[i]==' ')
    countSpace++;
                   countCon = (letString.length() - countVow) - countSpace;
    vowString = Integer.toString(countVow);
                   conString = Integer.toString(countCon);
                   vowelsRL.setText(vowString);
                   consonantsRL.setText(conString);

  • [SOLVED] problem with spaces and ls command in bash script

    I am going mad with a bash script I am trying to finish. The ls command is driving me mad with spaces in path names. This is the portion of my script that is giving me trouble:
    HOMEDIR="/home/panos/Web Site"
    for file in $(find "$HOMEDIR" -type f)
    do
    if [ "$(dateDiff -d $(ls -lh "$file" | awk '{ print $6 }') "$(date +%F)")" -gt 30 ];
    then echo -e "File $file is $(dateDiff -d $(ls -lh "$file" | awk '{ print $6 }') "$(date +%F)") old\r" >> /home/panos/scripts/temp;
    fi
    done
    The dateDiff() function is defined earlier and the script works fine when I change the HOMEDIR variable to a path where there are no spaces in directory and file names. I have isolated the problem to the ls command, so a simpler code sample that also doesn't work correctly with path names with spaces is this:
    #!/bin/bash
    HOMEDIR="/home/panos/test dir"
    for file in $(find "$HOMEDIR" -type f)
    do
    ls -lh "$file"
    done
    TIA
    Last edited by panosk (2009-11-08 21:55:31)

    oops, brain fart. *flushes with embarrassment*
    -- Edit --
    BTW, for this kind of thing, I usually do something like:
    find "$HOMEDIR" -type f | while read file ; do something with "$file" ; done
    Or put those in an array:
    IFS=$'\n' ; files=($(find "$HOMEDIR" -type f)) ; unset IFS
    for file in "${files[@]}" ; do something with "$file" ; done
    The later method is useful when elements of "${files[@]}" will be used multiple times across the script.
    Last edited by lolilolicon (2009-11-09 08:13:07)

  • Schedule type LineChart with clients and unavailable start and end dates

    I have been working on trying to get something in flex which will display a list of clients and their unavailability start and end dates.   I have attempted the line chart and the HLOC chart but have not seen success.  I do have the H or V grids working fine.  But getting the data to display in a line graph based upon start date and end date has been my challenge.  any suggestions
    Current Code:
        <s:Label x="0" y="5" text="Min Date" height="24" fontFamily="Times New Roman" verticalAlign="middle"/>
        <mx:DateField id="minDateField"
                      x="50" y="5"
                      formatString="MM-DD-YYYY"
                      selectedDate="{minDate}"
                      change="minDatefield_changeHandler(event)"/>
        <s:Label x="150"  y="5" text="Max Date" height="24" fontFamily="Times New Roman" verticalAlign="middle"/>
        <mx:DateField id="maxDateField"
                      x="200" y="5"
                      formatString="MM-DD-YYYY"
                      selectedDate="{maxDate}"
                      change="maxDatefield_changeHandler(event)"/>
        <mx:LineChart id="nonAvailsLC" x="0" y="40"
                      showDataTips="true"
                      dataProvider="{getNonAvailsResult.lastResult}"
                      creationComplete="nonAvailsLC_creationCompleteHandler(event)"
                      width="890" height="550">
            <mx:backgroundElements>
                <mx:GridLines gridDirection="both"/>
            </mx:backgroundElements>
            <mx:horizontalAxis>
                <mx:DateTimeAxis dataUnits="days" minimum="{minDate}" maximum="{maxDate}"
                                 labelUnits="days"/>
            </mx:horizontalAxis>       
            <mx:verticalAxis>
                <mx:CategoryAxis categoryField="user" labelFunction="getName"/>
            </mx:verticalAxis>       
            <mx:series>
                <mx:LineSeries xField="startDate" yField="user"
                               form="horizontal"/>
            </mx:series>
        </mx:LineChart>

    I guess I still have lots to learn about Flex and Renderers. I downloaded a Gantt chart with Code and they used the AdvancedDataGrid with renderers and such.  I modified the code to work for me. but if I had to create it myself right now, I would be in trouble.  Lots more to learn.

  • Pekwm menu action with spaces and commas

    Hello,
              I have problems with few wine actions in pekwm menu.
    The action path contains spaces, and wine syntax requires commas to correctly read it.
    The problem is that pekwm syntax also requires commas, so the action doesn't work in the menu.
    The same commands launched from terminal work flawlessly.
    Does anyone know the correct syntax I should use?
    Thank you in advance
    Submenu = "Wine" {
        Entry = "FullTiltPoker" { Icon = "/home/nemesis/.local/share/icons/28F5_FullTiltPoker.0.png"; Actions = "Exec wine /home/nemesis/.wine/drive_c/"Programmi (x86)"/"Full Tilt Poker"/FullTiltPoker.exe &" }
        Entry = "PokerStars" { Icon = "/home/nemesis/.local/share/icons/663D_PokerStarsUpdate.0.png"; Actions = "Exec wine /home/nemesis/.wine/drive_c/"Programmi (x86)"/PokerStars/PokerStarsUpdate.exe &" }
        Entry = "PokerstarsIt" { Icon = "/home/nemesis/.local/share/icons/663D_PokerStarsUpdate.0.png"; Actions = "Exec wine /home/nemesis/.wine/drive_c/"Programmi (x86)"/PokerStars.IT/PokerStarsUpdate.exe &" }
    nemesis@myhost ~]$ pekwm --info
    pekwm: version 0.1.12 Built on Mon Apr 26 20:16:24 UTC 2010
    features:  XShape Xinerama Xft image-xpm image-jpeg image-png Xrandr menus harbour
    Last edited by Nemesis1963 (2010-10-27 11:30:46)

    split takes a RegularExpression as parameter:String[] result = "Testing, one two, three four five".split("[, ]");
    for (int x=0; x<result.length; x++)
         System.out.println(result[x]);

  • Special character : two materila with same no one with space and one withou

    Hi friends,
    in r/3 two material are created with same number one space atend of the number and one with out
    123 and 123space
    In psa material with space is throwing  error  .In r/3 we cant delete the materila no so flag for delteion .
    and my master data is full load because of that process chain failing daily .
    can you please advice with solution .Evern the material comes there is no problem.
    oes RSKC WORK IN THIS CASE?
    Regards
    shekar reddy

    You need to be careful while loading material by removing the space as it might overwrite the correct material. Therefore, you can
    put a filter on the wrong material if possible
    or change the space to some other character to differentiate

  • How do i convert a double array (with spaces and tabs) to a string?

    Hi
    In our files, we have a mixture of spaces and tabs as a delimeter. How do I convert a double array into a string?
    Thank you.

    Not sure about the last part of your question.
    The Search and Replace pattern can be better than the simple Search and Replace string when you have to do complex searchs, such as detecting multiple spaces.
    Have a look at the attachment.
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    ReplaceSpaces.vi ‏27 KB

  • Problem with space and toURI()

    Hi,
    My program is working #1 when I create a MediaLocator like that:
    mediaLocator = new MediaLocator(file.toURL());
    But I know that toURL is depreciated so I changed it to
    mediaLocator = new MediaLocator(file.toURI().toURL());
    And now, when my path contain spaces, it create a folder with %20 instead of space...
    For exemple:
    c:\Documents%20and%20Settings
    instead of
    c:\Documents and Settings
    Thanks for help!

    This works for me - with my videos in
    C:\Workspace\JMF\src\\jmf\My videos
         private void playFile(File f) throws Exception{
            System.out.println("file - '" + f.getPath()+ "'");
            MediaLocator mL= new MediaLocator("file:" + f.getCanonicalPath());
            DataSource dS = Manager.createDataSource(mL);
            Processor proc = Manager.createProcessor(dS);
            proc.addControllerListener(this);
            proc.configure();
         }

  • Problems with Spaces and System Preferences

    Hello all. I previously had setup my spaces so that when I opened certain apps, they would open in specific spaces (ex. Safari opened in upper left space, system preferences opened in lower right space etc.). I had spaces setup so that there were 9 spaces. Now somehow my spaces got reset so that I have only 4. Whenever I open system preferences, or even open spaces preferences to change it, it opens, but does not appear, and when I hit the spaces button, there it is, overlapping my spaces, but I cannot click on it to change the settings, only choose a space to go to.
    Heres what it looks like when i hit the spaces button:
    http://img408.imageshack.us/img408/5122/picture1bw3.png

    Hey guys i found a fix to this but its basically using System preferences blind, and toggling on and off the radio buttons for Expose and Spaces.
    So to really understand my jumble of words to make you understand my weird train of thought. Its The Master & the Grasshopper Lesson on _'Believing without Seeing.'_
    Young Apple Seed (aka Grasshopper), Just because one can not see what one is doing, does not mean one is doing nothing. This just means that the Mime is miming a mime action to a blind person.
    So if you wish to not be the blind mad and the mime, do as it is written, and as you think. For one who goes down a path they choose they will sure be the Mime. And if you are, then you need an Mime EGO check.
    _TO GET WHAT YOU CAN'T SEE_
    1. If you don't already have SP (System Preferences) running then you will need to start the Application named SP.
    2. When in SP, click on View | *Expose and Spaces*
    +(If your here and saying how the bleep do I do this step. Then you need to Bleepity make sure that right next to the Apple Icon in the top left corner reads+ *System Preferences*, +Mr/Mrs/Ms Mime.)+
    3. Press Tab +(ONE TIME)+
    4. Press *Right --> Arrow* +(ONE TIME)+
    *5. Press ⌘L +(ONE TIME)+
    *6. Press ⌘[ +(ONE TIME)+
    7. Press Tab
    8. Press Tab
    9. Press *Space Bar*
    +(Now if you were doing each step while reading it on the screen then right after you did that last step like magic it appears.)+ The space bar toggled Enable or Disable Check box.
    * These steps really should not be here but I noticed a bug that would make my steps not work correctly if these were not done. Usually when you press tab once in a 2 part option menu for SP its tabbed. And usually when you press the arrow key to go to the next tab, usually the focus is still on the tab for the next tab. But it doesn't and that isn't only on my system, its on many others i tried it on. So you Bug mashers or fixers this has been duped on several other systems that range from non-Intel, PowerMac, PowerPC, iMac, even non apple macs. but focus disappears and even if you pressed tab or the arrow keys nothing would happen and trust me you would be doing my steps over and over and then post something either on my profile that i'm a bleepity bleep bleep or something positive. But i'd like the positive comments, but hey if you want to leave me bleepity bleep bleep bleep bleep bleeps? Then i have one thing to say to you "BLEEP you!!"

  • Weird behaviour with Mail and iPhone

    I have recently noticed that not all my mail is coming through to my MBP mail account. Some emails that I have sent have been replied to and they show up on my iPhone but some are missing in my mail inbox. I have also recently noticed that if I read an email on my iPhone it is marked as read when I look whilst in my Mail application (it has only recently started doing this too)
    Any ideas what could be going on, is this a syncing problem with mobileme because the problems have been with a .mac email address.
    Thanks

    However, it successfully goes
    into the method and there is nothing wrong until the
    page got forward and everything is lost from thatThe actionListener method is invoked just fine, however returning the outcome String from it does not make any difference. Only outcomes returned from actions are taken into account. If your navigation works, then it's due to something else.
    forum that actually the bean would not persist after
    I transfer to a new page. Only through hidden fields
    (?) that I can achieve that, is that correct? If you have the bean in request scope then it will be re-instantiated for every request. Consider:
    - Put the bean to session scope
    - Pass the stuff around using f:param or f:attribute
    - Use tomahawk's t:savestate
    - Start using framework that offers converstation/process scope, e.g. Spring WebFlows, Jboss Seam, Trinidad/ADF faces etc.
    Quite confuse with the request and session scope.
    Anybody can help me with that?Request scope lasts for the duration of single http request, session scope generally for the whole duration of users visit. Principle problem with request scope is that it's often too short (as you'v noticed when stuff gets losts) and with session scope that it's too long (using multiple browser windows interfare with each other and things linger in session too long unless manually cleared).
    -Henri

  • I just dowload the AE trial version on a mac with maverick and The start up screen is freezing on "Initializing MediaCore".

    The start up screen is freezing on "Initializing MediaCore" and after 10 minutes it is open saying i have no quicktime that is no true ???
    i am working with maverick on a mac book pro ?

    This is not a chat room, sometimes it takes time for someone to post a reply. What have you tried? We don't know any specifics about your system.

  • NullPointerExcetion with RCP and Web Start

    Hi,
    I'm trying to run a RCP application using Web Start. I tried so many workarounds and tutorials but I always get the same error:
    !SESSION Fri Feb 23 09:36:24 CET 2007 ------------------------------------------
    !ENTRY org.eclipse.core.launcher 4 0 2007-02-23 09:36:24.134
    !MESSAGE Exception launching the Eclipse Platform:
    !STACK
    java.lang.NullPointerException
    at java.util.Hashtable.put(Unknown Source)
    at org.eclipse.core.launcher.WebStartMain.basicRun(WebStartMain.java:58)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.WebStartMain.main(WebStartMain.java:40)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.sun.javaws.Launcher.executeApplication(Unknown Source)
    at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
    at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
    at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
    at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
    at com.sun.javaws.Launcher.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)I've created a wrapper feature with a new jnlp-file but it is always the same. More information you can find here:
    http://www.eclipsezone.com/eclipse/forums/t84269.html
    The problem seems to occur more than once but obviously nobody has a working solution for it. Perhaps someone in here can help me.

    Hello,
    it's a stupid eclipse bug. I spent several hours debugging the problem and it was surprised how poorly the code was written (no logging, exception swallowing, name shadowing, goddamn the author).Fortunately, I finally found a fix ;-)
    The problem is that the code relies on underscore as a delimiter between plugin name and plugin version. However, some plugins have underscore even in their version number (e.g. '...../org.eclipse.osgi_3.2.1.R32x_v20060919.jar') and these plugins fail to load. Not loading the org.eclipse.osgi causes the whole app fail to start.
    Quick solution tweaking the startup.jar:
    1. get the startup.jar sources from $ECLIPSE_HOME/plugins/org.eclipse.platform.source_x.y.z/src/org.eclipse.platform_x.y.z/startupsrc.zip
    2. open WebStartMain.java and find method private void mapURLsToBundleList()
    3. find this line: versionIdPosition = bundleId.lastIndexOf('_');
    4. replace it with versionIdPosition = bundleId.indexOf('_'); // it behaves as 'firstIndexOf(...)' ;-)
    5. build the startup.jar and use it instead of the original one - it should work
    IMPORTANT NOTE: this solution assumes you are not using any plugin with underscore in its 'regular' name. If you are, you can e.g. add some ifs to your modified WebStartMain code.
    Hope this helps ;-)
    Hanzz

  • K9n ultra-2f strange behaviour with 250htt and more

    Hi... My Pc:
    Athlon 4200+ Windsor F2
    MSI k9n ultra-2f , bios rev. 3.9
    2x 1024 DDR2 Goodram 800mhz
    Palit 8600 sonic+
    Chieftec 420w
    I have problem with overclocking more than 240htt... I turn spectrums off , and i set pci-e freq on 103. I also set processor multiplayer on 6 , mem on 400, and HT x2. The problem is that motherboard boot and works with 250 htt , even 300htt but... not always. It works good when i want to boot from shutted down pc, but when i try to change something in bios or reboot it from windows it's not working ( black screen , mobo doesnt boot ) ... I have to turn the pc off , and then turn it on again. Have you guy's some idea's about this problem ;/ ?
    I tried with diffrent HT multiplayer's , i saw also that in CPU-Z , with 250-300fsb it shows HT x1 instead of x2-3 which is set in bios.

    "The problem is that motherboard boot and works with 250 htt , even 300htt but... not always."
    High HTT freq is not important. Go for max CPU freq. and keep HTT below 1000.
    Leave CPU multi to Auto, drop HT link to x3, apply 667 memory index.
    Then start rising CPU HT with small steps and re-test.

  • I tried to update my iphone 4s with ios8 and it started the process but 8 hours later it is still showing the black apple on the screen and has a little left to go on the line below. i can not turn off the phone or do anything it is frozen. can anyon

    see my question above I am frozen out of my iphone 4s after trying to update to ios8.

    Resetting the device should knock it back into order.
    Device Reset (won't affect settings/data/music/apps/etc)
    1. Press and hold (& continue to hold) BOTH the Sleep/Wake button & the Home button.
    2. Continue to hold BOTH (ignoring any other messages that may show) until you see the Apple logo on the screen.
    3. Release BOTH buttons when you see the Apple logo and allow the device to boot normally.

  • Wierd painting behaviour with menus and cardlayout

    I am using a menu to select a panel in a card layout. What happens is that objects on the panels in the card layout do not get drawn in the right place. For example clicking on an item in a table highlights the item but the highlighted item gets drawn outside of the table area (up and left by a few pixels). Similarly a combo box on one of the panels is drawn out of place by a few pixels when another window on the display comes to the top.
    Has anyone experienced this before?
    public class MyProgram extends JFrame {
    * Entry point - create an application window
    public static void main(String args[]){
         JFrame frame = new JFrame("MyProgram");
         ContentFrame a = new ContentFrame(frame,args);
         JMenuBar mainBar = a.getMainMenu();
         frame.getContentPane().setLayout(new FlowLayout());
         frame.setJMenuBar(mainBar);
         frame.getContentPane().add(a);
         frame.setDefaultCloseOperation(3);
         frame.pack();
         frame.setVisible(true);
    ContentFrame extends JPanel {
    ContentFrame () {
    JScrollPane sp = new JScrollPane(new CardFrame());
    setLayout BorderLayout()
    add(sp, CENTER}
    CardFrame extends JPanel {
    CardFrame() {
    JPanel cards = new Jpanel();
    setLayout(new BorderLayout());
    cards = new HJPanel();
    cards.setLayout(new CardLayout());
    addSomeJPanelsToCards();
    add(cards,BorderLayout.CENTER);

    1. Some of your code is missing
    2. It's not a good idea to extend every class unless you need to add some functionality which doesn't exist in the class you are extending. You aren't doing that. Here's a better way to code it.import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Test extends JFrame {
        String[] cardNames = {"Card One", "Card Two", "Another Card",
                   "Yet Another", "Final Card"};
        CardLayout clo = new CardLayout();  // accessed from inner class
        JPanel cardPanel = new JPanel(clo);
        public Test() {
         super("MyProgram");
         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         Container content = getContentPane();
         content.add(cardPanel, BorderLayout.CENTER);
         JMenuBar jmb = new JMenuBar();
         setJMenuBar(jmb);
         JMenu jm = new JMenu("Pick Card");
         jmb.add(jm);
         for (int i=0; i<cardNames.length; i++) {
             JPanel card = new JPanel();
             final String cardName = cardNames;
         card.add(new JLabel("Card Label("+cardName+")"));
         cardPanel.add(cardName,card);
         JMenuItem jmi = new JMenuItem(cardName);
         jm.add(jmi);
         jmi.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent ae) {
              clo.show(cardPanel,cardName);
         setSize(300,200);
         show();
    public static void main(String[] args) { new Test(); }
    }This is just a sample because I don't know what you are doing. Try running it before you tell me its not exactly what you wanted.

Maybe you are looking for

  • Thunderbolt port to 30" cinema display

    I have recently purchased a 15 inch macbook pro. When I first tried to connect the computer to my 30" cinema display both screens flashed and did not connect. I am wondering if the mini displayport cable is compatible with the thunderbolt port? this

  • JAR files for SQLJ and JDBC drivers: what is the best practice?

    starting a migration from IAS 10 to WebLogic 11g. Apparently the jar files for SQLJ are not on the classpath by default. java.lang.NoClassDefFoundError: sqlj/runtime/ref/DefaultContextwhich is the better practice: putting the SQLJ runtime jar into th

  • What value does CROP have in editor if you cannot define output document size and document resolution

    Cannot define document size in EDITOR or output resolution. Document can only be defined as RATIO and output is fixed at 300. This problem does not allow you to edit in EDITOR then crop to a specific size so you don't know what the x,y dimension will

  • Design options for interfacing RFC as Receiver

    hello guys , Need some ideas in developing a scenario for interfacing RFC as receiver from a stored procedure call on DB side , what would be best and easy way to interface this RFC? Best regards Krishna

  • Help: Alternative location for Config Files

    Hello, I'm a newbie ... I would like to create a separate directory to hold the Domain Configuration files. e.g. I installed WebLogic Server in /home/gp/bea/wlserver6.1 And currently, my Domain's configuration files are in /home/gp/bea/wlserver6.1/co