IPhoto card layout

I have iPhoto ver 9.4.3. I am trying to create a flat card but iphoto only alows me to use 4 different card layouts.
Is there a way to modify the "standard" layouts or create new card layouts other than what iPhoto allows?

Do you have iWork?  With Pages it's easy to create a collage of photos of any size you want. Just drag the photos from iPhoto onto the Pages layout, resize and place where you want Like this 20 x 30 poster with 96 photos:
The demo version of OmniGraffle will let you create a layout with 10 photos on it.

Similar Messages

  • Hiding a form card layout

    Hey folks i have the code below, its an example that i have been messing around with.
    I have a on the first card button 2 which has an action listener on, it simply opens another formwhich it does correct but i want the form with the card layout on it to be hidden.
    As you can see from my code i have triediy numerous ways with no luck, hope i'm in the right forum and this shouldnt be in event handling
    Any ideas welcomed
    Ambrose
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    public class Tab_Demo implements ActionListener
         final static String ROUTER1 = "Router One";
         final static String ROUTER2 = "Router Two";
         final static String ROUTER3 = "Router Three";
         final static String ROUTER4 = "Router Four";
         final static String ROUTER5 = "Router Five";
         final static String ROUTER6 = "Router Six";
         private     JTable          table1;
         private     JTable          table2;
         private     JTable          table3;
         private     JTable          table4;
         private     JTable          table5;
               public JFrame frame;
         private Button b1 = new Button("Add");
         public void addComponentToPane(Container pane)
              JTabbedPane tabbedPane = new JTabbedPane(); //Create the "cards".           
              JPanel card1 = new JPanel()
         //Make the panel wider than it really needs, so //the window's wide enough for the tabs to stay //in one row.
         public Dimension getPreferredSize()
              Dimension size = super.getPreferredSize();
              size.width += 100;
              size.height += 600;
              return size;
              JButton button2 = new JButton("Button 2");
           button2.addActionListener(this);
           button2.setActionCommand("button2");
            card1.add(button2);
              card1.add(b1);
              card1.add(new JButton("But3"));
              card1.add(new JTextField("f",20));
              JPanel card2 = new JPanel();
              card2.add(new JButton("buttonDays"));
              // Create columns names
              String columnNames[] = { "IP Address ", "Address", "Private User", };
              // Create some data
              String dataValues[][] =
                   { "IP1", "Dublin 1 Ireland", "Yes" },
                   { "1P2", "Dublin 1 Ireland", "Yes" },
                   { "IP3", "Dublin 1 Ireland", "Yes" },
                   { "IP4", "Dublin 1 Ireland", "Yes" },
                   { "IP5", "Dublin 1 Ireland", "Yes" }
              // Create a new table instance
              table2 = new JTable( dataValues, columnNames );
              card2.add(new JScrollPane(table2));
              JPanel card3 = new JPanel();
              JPanel card4 = new JPanel();
              JPanel card5 = new JPanel();
              JPanel card6 = new JPanel();
              tabbedPane.addTab(ROUTER1, card1);
              tabbedPane.addTab(ROUTER2, card2);
              tabbedPane.addTab(ROUTER3, card3);
              tabbedPane.addTab(ROUTER4, card4);
              tabbedPane.addTab(ROUTER5, card5);
              tabbedPane.addTab(ROUTER6, card6);
              pane.add(tabbedPane, BorderLayout.CENTER);
              b1.addActionListener(this);
              public void actionPerformed( ActionEvent e)
              if (e.getActionCommand().equals("button2"))
                   Main_Menu fr = new Main_Menu("User Main Menu");
                   //Test.setDefaultLookAndFeelDecorated(true);
                   fr.show();
                   //this.hide();
                   //frame.setVisible(false);
              /** * Create the GUI and show it. For thread safety, *
              *this method should be invoked from the * event-dispatching thread. */
         private static void createAndShowGUI()
              //Make sure we have nice window decorations.
              //JFrame.setDefaultLookAndFeelDecorated(true);
              //Create and set up the window.
              JFrame frame = new JFrame("TabDemo");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              //Create and set up the content pane.
              Tab_Demo demo = new Tab_Demo();
              demo.addComponentToPane(frame.getContentPane());
              //Display the window.
              frame.pack();
              frame.setVisible(true);
         public static void main(String[] args)
              //Schedule a job for the event-dispatching thread:
              //creating and showing this application's GUI.
              javax.swing.SwingUtilities.invokeLater(new Runnable()
         public void run()
         createAndShowGUI();
    }

    HIDE_WINDOW does not hide a window that is associated to the main canvas of a form, same goes for HIDE_VIEW. And what do you mean by open_form?

  • Hiding a form using card layout

    Hey folks i have the code below, its an example that i have been messing around with.
    I ahve a on the first card button 2 which has an action listener on, it simply opens another formwhich it does correct but i want the form with the card layout on it to be hidden.
    As you can see from my code i have triediy numerous ways with no luck, hope i'm in the right forum and this shouldnt be in event handling
    Any ideas welcomed
    Ambrose
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    public class Tab_Demo implements ActionListener
         final static String ROUTER1 = "Router One";
         final static String ROUTER2 = "Router Two";
         final static String ROUTER3 = "Router Three";
         final static String ROUTER4 = "Router Four";
         final static String ROUTER5 = "Router Five";
         final static String ROUTER6 = "Router Six";
         private     JTable          table1;
         private     JTable          table2;
         private     JTable          table3;
         private     JTable          table4;
         private     JTable          table5;
               public JFrame frame;
         private Button b1 = new Button("Add");
         public void addComponentToPane(Container pane)
              JTabbedPane tabbedPane = new JTabbedPane(); //Create the "cards".           
              JPanel card1 = new JPanel()
         //Make the panel wider than it really needs, so //the window's wide enough for the tabs to stay //in one row.
         public Dimension getPreferredSize()
              Dimension size = super.getPreferredSize();
              size.width += 100;
              size.height += 600;
              return size;
              JButton button2 = new JButton("Button 2");
           button2.addActionListener(this);
           button2.setActionCommand("button2");
            card1.add(button2);
              card1.add(b1);
              card1.add(new JButton("But3"));
              card1.add(new JTextField("f",20));
              JPanel card2 = new JPanel();
              card2.add(new JButton("buttonDays"));
              // Create columns names
              String columnNames[] = { "IP Address ", "Address", "Private User", };
              // Create some data
              String dataValues[][] =
                   { "IP1", "Dublin 1 Ireland", "Yes" },
                   { "1P2", "Dublin 1 Ireland", "Yes" },
                   { "IP3", "Dublin 1 Ireland", "Yes" },
                   { "IP4", "Dublin 1 Ireland", "Yes" },
                   { "IP5", "Dublin 1 Ireland", "Yes" }
              // Create a new table instance
              table2 = new JTable( dataValues, columnNames );
              card2.add(new JScrollPane(table2));
              JPanel card3 = new JPanel();
              JPanel card4 = new JPanel();
              JPanel card5 = new JPanel();
              JPanel card6 = new JPanel();
              tabbedPane.addTab(ROUTER1, card1);
              tabbedPane.addTab(ROUTER2, card2);
              tabbedPane.addTab(ROUTER3, card3);
              tabbedPane.addTab(ROUTER4, card4);
              tabbedPane.addTab(ROUTER5, card5);
              tabbedPane.addTab(ROUTER6, card6);
              pane.add(tabbedPane, BorderLayout.CENTER);
              b1.addActionListener(this);
              public void actionPerformed( ActionEvent e)
              if (e.getActionCommand().equals("button2"))
                   Main_Menu fr = new Main_Menu("User Main Menu");
                   //Test.setDefaultLookAndFeelDecorated(true);
                   fr.show();
                   //this.hide();
                   //frame.setVisible(false);
              /** * Create the GUI and show it. For thread safety, *
              *this method should be invoked from the * event-dispatching thread. */
         private static void createAndShowGUI()
              //Make sure we have nice window decorations.
              //JFrame.setDefaultLookAndFeelDecorated(true);
              //Create and set up the window.
              JFrame frame = new JFrame("TabDemo");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              //Create and set up the content pane.
              Tab_Demo demo = new Tab_Demo();
              demo.addComponentToPane(frame.getContentPane());
              //Display the window.
              frame.pack();
              frame.setVisible(true);
         public static void main(String[] args)
              //Schedule a job for the event-dispatching thread:
              //creating and showing this application's GUI.
              javax.swing.SwingUtilities.invokeLater(new Runnable()
         public void run()
         createAndShowGUI();
    }

    HIDE_WINDOW does not hide a window that is associated to the main canvas of a form, same goes for HIDE_VIEW. And what do you mean by open_form?

  • How to place a single photo, centered on page in iPhoto book layout, without it filling entire page layout?

    how to place a single photo, centered on page, in and iPhoto book layout?

    unless you can find a page layout like that you can not - you can create a custom page in Pages or word or other program and use it - Old Toad rebularry posts instructions as well as links to the tools necessary to to it
    LN

  • Questions about iPhoto card's

    I would like to buy iPhoto card. Do you know, if I can pay for it on delivery?  

    No.  You must supply a credit card or an Apple gift card at the time of ordering.
    OT

  • IPhoto card quality

    I just receivd my first set of cards printed via iPhoto and I must admit I'm a tad disappointed. The printed image is grainy, dark and desaturated. The 5 MB jpeg image looks terrific on screen but the printed card simply doesn't have any punch at all. Has anyone else had this experience ?
    I'm wondering if some of the colour problems are related to colour management profiles ? The image was originally shot in RAW with the camera set to Adobe RGB (1998). After adjusting the image and cropping it was then exported from Aperture as a jpeg for import to iPhoto. The screen is calibrated on a regular basis with an GM EyeOne so we can rule that out of the equation. What profile would you recommend for on-screen soft-proofing from Aperture when the output is tagetted for the iPhoto card printing service ?
    I'm relatively new to digital photography so still going through the learning curve with all this colour management stuff - plenty of opportunity for me to get it wrong !
    Also, does anyone know how to improve the resolution of the printed cards ? They are very grainy.
    All suggestions very gratefully received.
    Roger
    Intel iMac 20-inch   Mac OS X (10.4.6)   iLife 06 Aperture 1.1.1

    Roger:
    As far as the color is concerned Apple and it's suppliers use sRGB for prints, books, etc. That may be a factor.
    The graininess may be partially due to the card stock it's printed on and on the printer itself. I know from experience that the medium sized books from iPhoto are very grainy, visible to the naked eye up close, compared to the large, hardcover books which requires an eye loop at 8x to see the halftone pattern. It may be the same factors working on the cards.

  • Card layout trouble

    I cannot figure out why when I run the program it shows the second card, and will not change when I click on the buttons that should change the card.
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.text.*;
    import java.util.*;
    public class Payroll extends JFrame
        // Card Layout to hold panels of GUI
        private CardLayout cardLayout = new CardLayout();
        // panels for various parts of GUI
        private JPanel homePanel = new JPanel();
        private static JPanel filePanel = new JPanel();
        private JPanel processedPanel = new JPanel();
        private JPanel journalPanel = new JPanel();
        private JPanel checkPanel = new JPanel();
        private JPanel stubPanel = new JPanel();
        // contentPane will hold other panels via cardLayout
        private JPanel contentPane;
        //row panels that will be used in various other panels
        private JPanel firstRow = new JPanel();
        private JPanel secondRow = new JPanel();
        private JPanel thirdRow = new JPanel();
        private JPanel fourthRow = new JPanel();
        private JPanel fifthRow = new JPanel();
        //create other data
        private int fileReturnValue;
        private JFileChooser fc = new JFileChooser();
        private File file;
        public Payroll()
            super("Widget Incorporated Payroll");
            contentPane = (JPanel)getContentPane(); // get contentpane
            contentPane.setLayout(cardLayout);  //set its layout to cardlayout
            //create the panels as cards
            homePanel = createHomePanel();
            filePanel = createFilePanel();
            /*processedPanel = createProcessedPanel();
            journalPanel = createJournalPanel();
            checkPanel = createCheckPanel();
            stubPanel = createStubPanel();*/
            contentPane.add(homePanel,"home");
            contentPane.add(filePanel,"file");
            /*contentPane.add(processedPanel);
            contentPane.add(journalPanel);
            contentPane.add(checkPanel);
            contentPane.add(stubPanel);*/
            cardLayout.show(contentPane, "home");
        private JPanel createHomePanel()
            //Create the layout for this panel
            JPanel homePanel = new JPanel(new GridLayout(4,1));
            FlowLayout rowSetup = new FlowLayout(FlowLayout.CENTER);
                firstRow.setLayout(rowSetup);
                secondRow.setLayout(rowSetup);
                thirdRow.setLayout(rowSetup);
            //Create components for this panel
            JLabel hoursWorkedLabel = new JLabel("Default hours worked:");
            JTextField hoursWorkedField = new JTextField("40",2);   
            JButton processButton = new JButton ("Process payroll for all non-terminated employees");  
            JButton closeButton = new JButton ("End Program");
            //Clear all rows
            firstRow.removeAll();
            secondRow.removeAll();
            thirdRow.removeAll();
            fourthRow.removeAll();
            fifthRow.removeAll();
            //Add the components to rows
            firstRow.add(hoursWorkedLabel);
            firstRow.add(hoursWorkedField);
            secondRow.add(processButton);
            thirdRow.add(closeButton);
            //Add the rows to this panel
            homePanel.add(firstRow);
            homePanel.add(secondRow);
            homePanel.add(thirdRow);
            //Add action listeners to the buttons
            processButton.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    //creates next part of GUI
                    cardLayout.show(contentPane,"file");
            processButton.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    //Verfies user wants to close program
                    int answer = JOptionPane.showConfirmDialog(null,"Are you sure you want to end the program","Exit",JOptionPane.YES_NO_OPTION);
                    if (answer == JOptionPane.YES_OPTION)
                    System.exit(0);
            return homePanel;
        private JPanel createFilePanel()
            //Create the layout for this panel
            JPanel filePanel = new JPanel(new GridLayout(3,1));
            FlowLayout rowSetup = new FlowLayout(FlowLayout.CENTER);
                firstRow.setLayout(rowSetup);
                secondRow.setLayout(rowSetup);
                thirdRow.setLayout(rowSetup);
            //Create components for this panel
            JLabel chooseFileLabel = new JLabel("Select the payroll file");
            final JTextField fileChooseField = new JTextField(25);
            JButton fileChooseButton = new JButton("Find");
            JButton fileOKButton = new JButton("Process");
            JButton fileBackButton = new JButton ("Back");
            //Clear all rows
            firstRow.removeAll();
            secondRow.removeAll();
            thirdRow.removeAll();
            fourthRow.removeAll();
            fifthRow.removeAll();
            //Add the components to rows
            firstRow.add(chooseFileLabel);
            secondRow.add(fileChooseField);
            secondRow.add(fileChooseButton);
            thirdRow.add(fileBackButton);
            thirdRow.add(fileOKButton);
            //Add the rows to this panel
            homePanel.add(firstRow);
            homePanel.add(secondRow);
            homePanel.add(thirdRow);
            //Add action listeners to the buttons
            fileChooseButton.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    //Goes back to previous part of GUI
                    chooseFile(fileChooseField);
            fileBackButton.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    //Goes back to previous part of GUI
                    cardLayout.show(contentPane,"home");
            return filePanel;
        private void chooseFile(JTextField field)
            fileReturnValue = fc.showOpenDialog(filePanel);
            if (fileReturnValue == JFileChooser.APPROVE_OPTION)
                file = fc.getSelectedFile();
            field.setText(file.toString());
        public static void main(String[] args)
            java.awt.EventQueue.invokeLater(new Runnable()
                public void run()
                    Payroll frame = new Payroll();
                    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                    frame.pack();
                    frame.setLocationRelativeTo(null);
                    frame.setVisible(true);           
        }

    I used an example from Encephtalophathic as a guide
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class SimpleCardLO1 extends JFrame
        // first create a CardLayout object
        private CardLayout cardlayout = new CardLayout();
        // contentPane will hold the next two panels via CardLayout
        private JPanel contentPane;
        private JPanel firstPanel;
        private JPanel nextPanel;
        public SimpleCardLO1()
            super("Simple Card Layout");
            contentPane = (JPanel)getContentPane(); // get contentpane
            contentPane.setPreferredSize(new Dimension(160, 80));
            contentPane.setLayout(cardlayout); //set its layout to cardlayout
            // create the two panels held in contentPane as cards
            firstPanel = createFirstPanel();
            nextPanel = createProcessPanel();
            // and add them.  The String helps to recognize which panel is which
            contentPane.add(firstPanel, "First");
            contentPane.add(nextPanel, "Next");
        private JPanel createFirstPanel()
            JPanel firstPanel = new JPanel(new GridLayout(0, 1, 20, 20));
            JPanel buttonPanel = new JPanel();
            JButton nextButton = new JButton("Process");
            buttonPanel.add(nextButton);
            firstPanel.add(buttonPanel);
            nextButton.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    // to get the next panel, simply call cardlayout's next method
                    // also pass a reference the component that is using the cardlayout as its manager
                    cardlayout.next(contentPane);
            return firstPanel;
        private JPanel createProcessPanel()
            JPanel processPanel = new JPanel(new GridLayout(0, 1, 20, 20));
            JPanel buttonPanel = new JPanel();
            JButton backButton = new JButton("Back");
            buttonPanel.add(backButton);
            processPanel.add(buttonPanel);
            backButton.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    // to get the previous panel, call the previous method
                    cardlayout.previous(contentPane);
            return processPanel;
        // code to call this program in a thread-safe way
        public static void main(String[] args)
            java.awt.EventQueue.invokeLater(new Runnable()
                public void run()
                    SimpleCardLO1 frame = new SimpleCardLO1();
                    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                    frame.pack();
                    frame.setLocationRelativeTo(null);
                    frame.setVisible(true);            }
    }The example works and mine doesn't and I just can't find the difference
    Edited by: tim.raptorrunner on Jan 17, 2008 8:54 PM
    As far as I can tell it decided to randomly work.

  • IPhoto card printing on 4 fold paper

    I ran out of single fold paper and found a way to use iPhoto card themes to print on 4 fold paper. If anyone has an easier way, please let me know. Otherwise, the following steps worked for me (so I didn't have to go out in this rain to buy single fold paper.)
    Creating iPhoto card to print on 4 fold paper.
    In iPhoto, select picture(s), and select card theme.
    In iPhoto, select print, and then PDF and save to desktop.
    Click on desktop saved image and Adobe will show card.
    Take 2 screenshots of card's outside and inside.
    Import screenshots into iPhoto and then rotate the pics so they are upside down.
    Drag both pics to desktop.
    Click on one of the pics to bring up Preview.
    After selecting print, use or create 4fold custom paper size for 8.5 x 5.5.
    Check the Preview margins and adjust (request use full size of paper.)
    Insert 4 fold paper with right side down and print the first side by side image up side down.
    Turn paper around and reinsert into printer so that second upside down image prints on same side of paper.
    Let dry and fold paper into a card.

    Here's an easier way to get those screenshots of the front and back of the card into iPhoto.
    Start a Print process, click on the PDF button and select the "*Save PDF to iPhoto*" menu option. This creates a 200 dpi jpeg file of each side of the card.
    Click to view full size
    These two tutorials describe it in a bit more detail:
    #8 - Printing a iPhoto Greeting Card
    #8a - Printing a iPhoto Greeting Card to Standard Stock Sizes
    Happy Holidays

  • Iphoto card

    When purchasing an iPhoto Card it said error but then the money says it came out of my account. How can I tell if the order actually went through without checking my email (account doesn't work). Also will the card be shipped to the recipient in the envelope or in a way I should have prepared it first? Thanks!

    Click on the Store button at the top of this page. On the next page click on the Accounts link at the far right and select View Account from the drop down menu:
    There you should be able to see if the order went thru or not.

  • Looking for iPhoto card design featured on site

    Hi,
    I'm looking for an iPhoto card design that is featured on the following page:
    http://www.apple.com/ilife/iphoto/printproducts.html
    It is the red card with pictures inside the ornaments. I have iPhoto version 6.06 and it is not part of the available themes and designs. If anyone can direct me to where I can find this design, I'd really appreciate it! Thanks in advance.
    Julz05

    I have it in my iPhoto '08 (version 7.1.1) card library
    You are posting in the iPhoto '08 forum - maybe this is reason to upgrade to iLife '08 -- or post the question in the iPhoto 06 forum, you are much more likely to get help on version 6 in the version 6 forum
    Larry Nebel

  • How do you mail an iphoto card directly to a person?

    How do you mail an iphoto card directly to a person?

    That's not a feature of iPhoto for Macs, only iPhoto for iOS.
    The iPhoto for iOS forum is here
    https://discussions.apple.com/community/app_store/iphoto_for_ios
    Regards
    TD

  • OTL: Time Card Layout Notification

    Hi all,
    I have 2 questions:
    1. How do I find out which Time Card Layout Notification we are using AND if that particular layout has been customized? Please answer both parts.
    2. How do I find out if a particular work flow has been customized? in this case its HXCEMP.
    Thank you all.
    OB

    OB,
    Check through the Preferences form to find the layout preference attached to a person.
    If your OTL implementer was wise enough, he would have given a new name to the modified layout. Otherwise use the fndload command to download the layout ldt file and compare with the original ones.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Card Layout

    I want to chage this so that when the user clicks the continueButton I want the two radio buttons to be replaced with secondCategoryCheckBox and some other things. I've been trying to learn card layout from the web but no success. If you know will you take a few seconds to edit my code so I can understand card layout . thanks
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import javax.swing.border.*;
    import java.lang.System;
    public class MainPanel extends JFrame implements ActionListener
    private final int ITEM_PLAIN = 0; // Item types
    private final int ITEM_CHECK = 1;
    private final int ITEM_RADIO = 2;
    private JPanel topPanel;
    private JPanel newItemPanel;
    private JRadioButton tigerRadio;
    private JRadioButton bearRadio;
    private ButtonGroup bg;
    private JButton continueButton;
    private JLabel blankLabel; //used to give space between things
    private JPanel newItemDescriptionPanel;
    private JCheckBox secondCategoryCheckBox;
    private JMenuBar menuBar;
    private JMenu menuFile;
    private JMenu menuEdit;
    private JMenu menuProperty;
    private JMenuItem menuPropertySystem;
    private JMenuItem menuPropertyEditor;
    private JMenuItem menuPropertyDisplay;
    private JMenu menuFileNew;
    private JMenuItem menuFileNewAccount;
    private JMenuItem menuFileNewItem;
    private JMenuItem menuFileOpen;
    private JMenuItem menuFileSave;
    private JMenuItem menuFileSaveAs;
    private JMenuItem menuFileExit;
    private JMenuItem menuEditCopy;
    private JMenuItem menuEditCut;
    private JMenuItem menuEditPaste;
    public MainPanel()
    setTitle( "Ebay Organizer" );
    setSize( 310, 130 );
    topPanel = new JPanel();
    topPanel.setLayout( new BorderLayout() );
    topPanel.setBorder (BorderFactory.createTitledBorder ("TopPanel"));
    //topPanel.setPreferredSize(new Dimension (300,300));
    getContentPane().add( topPanel );
    // For New Item Panel
    ButtonListener ears = new ButtonListener();
    blankLabel = new JLabel (" "); // used to give space between radio buttons and continue button
    continueButton = new JButton ("Continue >");
    continueButton.addActionListener (ears);
    newItemPanel = new JPanel();
    newItemPanel.setLayout (new BoxLayout(newItemPanel, BoxLayout.Y_AXIS));
    topPanel.add (newItemPanel, BorderLayout.NORTH);
    newItemPanel.setBorder (BorderFactory.createTitledBorder ("NewItemPanel"));
    newItemPanel.setVisible (false);
    tigerRadio = new JRadioButton ("Tiger" );
    bearRadio = new JRadioButton ("Bear");
    bg = new ButtonGroup();
    bg.add(tigerRadio);
    bg.add(bearRadio);
    tigerRadio.addActionListener (ears);
    bearRadio.addActionListener (ears);
    newItemPanel.add (tigerRadio);
    newItemPanel.add (bearRadio);
    newItemPanel.add (blankLabel);
    newItemPanel.add (continueButton);
    // ------ After continue pressed ---------
    newItemDescriptionPanel = new JPanel();
    newItemDescriptionPanel.setLayout (new BoxLayout(newItemDescriptionPanel, BoxLayout.Y_AXIS));
    newItemPanel.add (newItemDescriptionPanel, BorderLayout.NORTH);
    newItemDescriptionPanel.setBorder (BorderFactory.createTitledBorder ("newItemDescriptionPanel"));
    secondCategoryCheckBox = new JCheckBox ("second category animal");
    newItemDescriptionPanel.add (secondCategoryCheckBox);
    newItemDescriptionPanel.setVisible (false);
    // Create the menu bar
    menuBar = new JMenuBar();
    // Set this instance as the application's menu bar
    setJMenuBar( menuBar );
    // Build the property sub-menu
    menuProperty = new JMenu( "Properties" );
    menuProperty.setMnemonic( 'P' );
    // Create property items
    menuPropertySystem = CreateMenuItem( menuProperty, ITEM_PLAIN,
    "System...", null, 'S', null );
    menuPropertyEditor = CreateMenuItem( menuProperty, ITEM_PLAIN,
    "Editor...", null, 'E', null );
    menuPropertyDisplay = CreateMenuItem( menuProperty, ITEM_PLAIN,
    "Display...", null, 'D', null );
    //Build the File-New sub-menu
    menuFileNew = new JMenu ("New");
    menuFileNew.setMnemonic ('N');
    //Create File-New items
    menuFileNewItem = CreateMenuItem( menuFileNew, ITEM_PLAIN,
    "Item", null, 'A', null );
    menuFileNewAccount = CreateMenuItem( menuFileNew, ITEM_PLAIN,
    "Account", null, 'A', null );
    // Create the file menu
    menuFile = new JMenu( "File" );
    menuFile.setMnemonic( 'F' );
    menuBar.add( menuFile );
    //Add the File-New menu
    menuFile.add( menuFileNew );
    // Create the file menu
    // Build a file menu items
    menuFileOpen = CreateMenuItem( menuFile, ITEM_PLAIN, "Open...",
    new ImageIcon( "open.gif" ), 'O',
    "Open a new file" );
    menuFileSave = CreateMenuItem( menuFile, ITEM_PLAIN, "Save",
    new ImageIcon( "save.gif" ), 'S',
    " Save this file" );
    menuFileSaveAs = CreateMenuItem( menuFile, ITEM_PLAIN,
    "Save As...", null, 'A',
    "Save this data to a new file" );
    // Add the property menu
    menuFile.addSeparator();
    menuFile.add( menuProperty );
    menuFile.addSeparator();
    menuFileExit = CreateMenuItem( menuFile, ITEM_PLAIN,
    "Exit", null, 'X',
    "Exit the program" );
    //menuFileExit.addActionListener(this);
    // Create the file menu
    menuEdit = new JMenu( "Edit" );
    menuEdit.setMnemonic( 'E' );
    menuBar.add( menuEdit );
    // Create edit menu options
    menuEditCut = CreateMenuItem( menuEdit, ITEM_PLAIN,
    "Cut", null, 'T',
    "Cut data to the clipboard" );
    menuEditCopy = CreateMenuItem( menuEdit, ITEM_PLAIN,
    "Copy", null, 'C',
    "Copy data to the clipboard" );
    menuEditPaste = CreateMenuItem( menuEdit, ITEM_PLAIN,
    "Paste", null, 'P',
    "Paste data from the clipboard" );
    public JMenuItem CreateMenuItem( JMenu menu, int iType, String sText,
    ImageIcon image, int acceleratorKey,
    String sToolTip )
    // Create the item
    JMenuItem menuItem;
    switch( iType )
    case ITEM_RADIO:
    menuItem = new JRadioButtonMenuItem();
    break;
    case ITEM_CHECK:
    menuItem = new JCheckBoxMenuItem();
    break;
    default:
    menuItem = new JMenuItem();
    break;
    // Add the item test
    menuItem.setText( sText );
    // Add the optional icon
    if( image != null )
    menuItem.setIcon( image );
    // Add the accelerator key
    if( acceleratorKey > 0 )
    menuItem.setMnemonic( acceleratorKey );
    // Add the optional tool tip text
    if( sToolTip != null )
    menuItem.setToolTipText( sToolTip );
    // Add an action handler to this menu item
    menuItem.addActionListener( this );
    menu.add( menuItem );
    return menuItem;
    public void actionPerformed( ActionEvent event )
    if (event.getSource() == menuFileExit)
    System.exit(0);
    if (event.getSource() == menuFileNewAccount)
    System.out.println ("hlkadflkajfalkdjfalksfj");
    if (event.getSource() == menuFileNewItem){
    newItemPanel.setVisible (true);
    //System.out.println( event );
    private class ButtonListener implements ActionListener
    public void actionPerformed(ActionEvent event)
    if (event.getSource() == continueButton){
    if (!(tigerRadio.isSelected()) && !(bearRadio.isSelected()))
    JOptionPane.showMessageDialog(null, "You must select at least one.", "Error", JOptionPane.ERROR_MESSAGE);
    else{
    if (tigerRadio.isSelected()){
    //newItemPanel.setVisible (false);
    newItemDescriptionPanel.setVisible (true);
    }

    have you used a JTabbedPane?
    a cardlayout is just a JTabbedPane, but without tabs.
    search the swing forum for
    "new CardLayout"
    and you will find plenty of working examples

  • How do determine shown card in card layout

    Hi, each of my cards is an extended JPanel. I have to run some code, but the code thats needs to be run is dependent on which extended JPanel is currently shown in my card layout (because the code to be run is part of the extended JPanel). So, is there an easy way to get the object that the currenly displayed card is so that I can call methods on that object (one of the extended JPanels)?
    Since the card layout is just the layout of a JPanel anyway, I thought I might just try to call the methods on that panel. But since that is just a normal panel, it doesn't know about the methods I need to call. And I'm not sure if I could just cast it (but even if I could, I wouldn't know what to cast it to because I dont know which cards is currently displayed, and hence which type of extended JPanel to cast it to)
    Thanks in advance,
    -Marshall

    There are different ways to do this. One of the easiest is to keep track of the index of the card that is showing and use this to access the reference to the component you put on that card. You can track the index in your event code.

  • I am wanting to order about 100 individual iphoto cards, is there anyway of doing one order so i am not charged 1.99 delivery for each individual card??

    I am wanting to order about 100 individual iphoto cards, is there anyway of placing one order for all these so i dont get charged £1.99 delivery for each individual card?

    Afraid not.
    Regards
    TD

Maybe you are looking for