Newbie help: Layout Managers

Hi,
as a newbie in Swing I have difficulties with the Layout Managers... I have read the Swing tutorial but it's still a little bit complicated:
I have a JPanel, I would like to add a JMenuBar, a JToolbar and then 2 additional JPanels at the top and on the left representing rulers like in the "How a Scroll Pane Works" example at
http://java.sun.com/docs/books/tutorial/uiswing/components/scrollpane.html as well as a JTable on the right.
How can I do this... BorderLayout containing my main JPanel at CENTER and the two JPanels representing the rulers at PAGE_START and LINE_START and the JTable at LINE_END? Where can I place then my menu- and toolbar? Can I add a BoxLayout to PAGE_START for that?
In a posting here at the forum I read that the MenuBar should be added to the root Pane. How do I do this? When do I use Content Pane, Layered Pane and Glass Pane?
Do you know a simple example or good tutorials at the web?
Thanks a lot!

Thank you for the link about the rulers.
The rulers goes inside your custom component. It will be like the example at http://java.sun.com/docs/books/tutorial/uiswing/components/scrollpane.html
Other stuffs layered like this.
package tmp;
import javax.swing.*;
import java.awt.*;
public class LayoutExample extends JFrame
    public static void main( String[] args ) throws Exception
        SwingUtilities.invokeAndWait( new Runnable()
            public void run()
                // All the interaction with GUI do inside the MessageLoop thread!
                LayoutExample l = new LayoutExample();
                l.pack();
                l.setVisible( true );
    protected JMenuBar mainMenu;
    protected JToolBar mainToolBar;
    protected RulesFeaturedScrolPane scrollPane;
    public LayoutExample() throws HeadlessException
        super();
        setDefaultCloseOperation( JFrame.DISPOSE_ON_CLOSE );
        setTitle( "Layout Example" );
        // -------------- CREATING NECESSARY CONTROLS ----------------
        // Menu
        mainMenu = new JMenuBar();
        JMenu mnuFile = mainMenu.add( new JMenu( "File" ) );
        mnuFile.add( new JMenuItem( "Open" ) );
        // ToolBar
        mainToolBar = new JToolBar();
        mainToolBar.add( new JButton( "Open" ) );
        // Customized JScrollPane (with rulers)
        scrollPane = new RulesFeaturedScrolPane();
        // -------------- END OF CREATING NECESSARY CONTROLS ----------------
        // Settig up the components
        setJMenuBar( mainMenu ); // Menu added to JFrame not to its ContentPane
        getContentPane().setLayout( new BorderLayout() );
        getContentPane().add( mainToolBar, BorderLayout.NORTH ); // ToolBar added to the ContentPane
        getContentPane().add( scrollPane, BorderLayout.CENTER ); // Other components added to ContentPane
    public static class RulesFeaturedScrolPane extends JPanel // <----------- this may extend JScrollPane
        public RulesFeaturedScrolPane()
            add( new JLabel( "TODO: this class should have rulers" ) );
}Most interesting things starts at getContentPane().setLayout( new BorderLayout() );

Similar Messages

  • How to get a specific layout with the available layout managers?

    Hi
    Not done java GUI's (approximately 5 and a half years) for a while (I havn't even touched java for ages until a few months ago), and I am a little embarrased by how much I have forgotten.
    After tring unsuccessfully several times with TableLayouts and GridBagLayouts to produce this [ [http://i32.tinypic.com/fl94kp.png] ] sort of layout, I have decided I am either being incredibly stupid, or It's a rather difficult thing to do.
    (Sorry about the crudeness of the drawing)
    Please can someone point me on the right track as to what combination of layout managers + components I should be using to achive this, or even be super kind and post a code snippet for it.
    Preferably, I would like to use just the default layout manages / components that come with java, which will allow me to continue working on the GUI in netbeans without it complaining, but I'll use external libraries if absolutely nesecarry.
    Thanks
    A completely unrelated side note, but where the heck have all my past posts and dukes gone. :(
    Edited by: DarthCrap on Aug 2, 2010 5:14 PM

    Yes, A BorderLayout did solve my problems. It appears I was being stupid after all. :)
    @Encephalopathic. Using a gridbaglayout does indeed help with the centering issue for the smaller panel on the right. I had just worked that out myself when you posted. I had been reluctant to try the gridbaglayout for that, because it caused me a load of pain when I tried using it for the original problem.
    Thanks

  • Layout managers and JTabbedPane

    I have a JTabbed pane on my 'form' on which i want to insert two tables. the problem is that the tables are overstepping the 'boundaries' i have desgned for them ,whivh i suspect is a problem with the layout managers. I just cant seem to be able to restrict the tables within the fames and have scrollpanes, both horizontal and vertical for scrolling tables. I have included the code here:
    import java.awt.*;
    import javax.swing.*;
    public class FrmProducts extends JFrame{
         private          JTabbedPane tabbedPane;
         private          JPanel          factorsTab;
         private          JPanel          productListTab;
         private          JPanel          rateHistoryTab;
         private          JTable          forexFactorsTable;
         private          JTable      otherFactorsTable;
         private      JTable          productListTable;
         public FrmProducts(){
              initializeComponents();
         public  void DisplayForm(){
              java.awt.EventQueue.invokeLater(new Runnable(){
                   public void run(){
         private void initializeComponents(){
              setTitle( "Products administration" );
              setSize( 900, 550 );
              setBackground( Color.gray );
              JPanel topPanel = new JPanel();
              topPanel.setLayout( new BorderLayout() );
              getContentPane().add( topPanel );
              Toolkit kit = getToolkit();
              Dimension screenSize = kit.getScreenSize();
              int screenWidth = screenSize.width;                         //all this is to get
              int screenHeight = screenSize.height;                    //the form size and
              Dimension windowSize = getSize();                       //centre the form on
              int windowWidth = windowSize.width;                         //the screen
              int windowHeight = windowSize.height;
              int upperLeftX = (screenWidth - windowWidth)/2;
              int upperLeftY = (screenHeight - windowHeight)/2;
              setLocation(upperLeftX, upperLeftY);
              setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              // Create the tab pages
              createPage1();
              createPage2();
              createPage3();
              // Create a tabbed pane
              tabbedPane = new JTabbedPane();
              tabbedPane.addTab( "Facors", factorsTab );
              tabbedPane.addTab( "Products List", productListTab );
              tabbedPane.addTab( "Rate History", rateHistoryTab );
              topPanel.add( tabbedPane, BorderLayout.CENTER );
              setVisible(true);
         public void createPage1()
              factorsTab = new JPanel();
              factorsTab.setLayout( new GridLayout(2,1) );
              JPanel forexFactorsPanel;          //set up a frame with the forex factors details
              forexFactorsPanel = new JPanel();
              forexFactorsPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder("Forex factors"),
                BorderFactory.createEmptyBorder(5,5,5,5)));
              String forexFactorsColumns[]={"Factor","ZAR","US$"};
              String dummyValues1[][]={ {"Costing exchange rate","485.00",   "3400.00"},
                                          {"Local product exchange rate","430.00","3000.00"},
                                          {"Duty exchange rate1","35.30",          "250.00"},
                                          {"Duty exchange rate2","35.30",          "250.00"}};
              forexFactorsTable=new JTable(dummyValues1,forexFactorsColumns);
              JScrollPane scrollPane1=new JScrollPane(forexFactorsTable);
              forexFactorsPanel.add( scrollPane1, BorderLayout.CENTER );
              factorsTab.add(forexFactorsPanel);
              JPanel otherFactorsPanel;
              otherFactorsPanel=new JPanel();
              otherFactorsPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder("Other factors"),
                     BorderFactory.createEmptyBorder(5,5,5,5)));
              String otherFactorsColumns[]={"Description","Value"};
              String dummyValues2[][]={{"Landing Factor",                         "1.16"},
                                            {"Duty factor",                        "1.065"},
                                            {"Loading for overseas sourcing",  "1.15"},
                                            {"Extra mark up local",             "0.0"},
                                            {"Extra mark up imports",          "0.0"}};
              otherFactorsTable=new JTable(dummyValues2,otherFactorsColumns);
              JScrollPane scrollPane2=new JScrollPane(otherFactorsTable);
              otherFactorsPanel.add(scrollPane2, BorderLayout.CENTER);
              factorsTab.add(otherFactorsPanel);
         public void createPage2()
              productListTab = new JPanel();
              productListTab.setLayout( new BorderLayout() );
              String productListColumns[]={"Code1","Code2","Code3","Sales Category","Product code","Short Description",
                                             "Long Description","Supplier/Manufacturer","Supplier Product code",
                                             "Units","Master stockist","Lead time","re-Order level","economic order qty",
                                             "APR","min shipping qty"};
              String sampleValues[][]={
                     {"AI","AC","CE","Switchgear inc Starters","AIACCE 270","Timer int pulse start 230v 2C/O 30mins",
                       "Timer interval pulse start 230v 2 closed open 30 minutes","AC/DC South Africa","IAP2 30M","each",
                       "Central Stores","2","500","5000","APR","5000"},
                       {"GI","IN","ZZ","Alternative power and accessories","GIINZZ 174","INV HT SERIES 2500W 12v/230v MOD SWV",
                            "INVERTER HT SERIES 2500W 12v/230v MODIFIED SINEWAVE","SINETECH","HT-P-2500-12","each",
                            "Central Stores","6","1000","5000","APR","10000"}
              productListTable=new JTable(sampleValues,productListColumns);
              JScrollPane scrollPane3=new JScrollPane(productListTable);
              productListTab.add(scrollPane3, BorderLayout.CENTER);
         public void createPage3()
              rateHistoryTab = new JPanel();
              rateHistoryTab.setLayout( new GridLayout( 3, 2 ) );
    }This class is called by invoking the DispalyForm() function from a main form. May you please run it and see how the 'factors' panel needs correcting and help me do that

    wondering if there's a method that can be used to show a window(i.e. dialog) within a frame (much like an MDI form). That is, all windows are shown w/in the frame's border or title bar.
    Here's what I have attempted but to no avail:
    java.awt.Dimension screen = getDefaultToolkit.getScreenSize();
    java.awt.Insets frameInsets = this.getInsets();  // frame's insets
    // set bounds of child (window)
    window1.setbounds(frameInsets.top, frameInsets.top,
       screen.width - frameInsets.top -2, screen.height - frameInsets.top -2);any help is appreciated

  • Learning how to use Layout Managers

    The code that is included in this post is public code from the SUN tutorials. I am trying to learn how to use the layouts and add individual programs that were created to each component in the layouts.
    This is what I am exploring:
    I want to have a tabbed layout like the example TabbedPaneDemo located at http://java.sun.com/docs/books/tutorial/uiswing/examples/components/index.html#TabbedPaneDemo. Below is the code.
    In one of the tabs, I want to place a button and report in it. When the button is clicked, I want the report refreshed. Eventually I will be populating an array with data. The report I want to use the example SimpleTableDemo located at http://java.sun.com/docs/books/tutorial/uiswing/examples/components/SimpleTableDemoProject/src/components/SimpleTableDemo.java. Below is the code.
    From what I have learned, you can place a container inside a container. So I should be able to place the SimpleTableDemo inside the tab 4 of the TabbedPaneDemo.
    If this is indeed correct, then how do I put these two things together? I am getting a little lost in all the code.
    Any assistance in helping me learn how to create and use layout managers would be appreciated.
    package components;
    * TabbedPaneDemo.java requires one additional file:
    *   images/middle.gif.
    import javax.swing.JTabbedPane;
    import javax.swing.ImageIcon;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    import javax.swing.JComponent;
    import javax.swing.SwingUtilities;
    import javax.swing.UIManager;
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.GridLayout;
    import java.awt.event.KeyEvent;
    public class TabbedPaneDemo extends JPanel {
        public TabbedPaneDemo() {
            super(new GridLayout(1, 1));
            JTabbedPane tabbedPane = new JTabbedPane();
            ImageIcon icon = createImageIcon("images/middle.gif");
            JComponent panel1 = makeTextPanel("Panel #1");
            tabbedPane.addTab("Tab 1", icon, panel1,
                    "Does nothing");
            tabbedPane.setMnemonicAt(0, KeyEvent.VK_1);
            JComponent panel2 = makeTextPanel("Panel #2");
            tabbedPane.addTab("Tab 2", icon, panel2,
                    "Does twice as much nothing");
            tabbedPane.setMnemonicAt(1, KeyEvent.VK_2);
            JComponent panel3 = makeTextPanel("Panel #3");
            tabbedPane.addTab("Tab 3", icon, panel3,
                    "Still does nothing");
            tabbedPane.setMnemonicAt(2, KeyEvent.VK_3);
            JComponent panel4 = makeTextPanel(
                    "Panel #4 (has a preferred size of 410 x 50).");
            panel4.setPreferredSize(new Dimension(410, 50));
            tabbedPane.addTab("Tab 4", icon, panel4,
                    "Does nothing at all");
            tabbedPane.setMnemonicAt(3, KeyEvent.VK_4);
            //Add the tabbed pane to this panel.
            add(tabbedPane);
            //The following line enables to use scrolling tabs.
            tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
        protected JComponent makeTextPanel(String text) {
            JPanel panel = new JPanel(false);
            JLabel filler = new JLabel(text);
            filler.setHorizontalAlignment(JLabel.CENTER);
            panel.setLayout(new GridLayout(1, 1));
            panel.add(filler);
            return panel;
        /** Returns an ImageIcon, or null if the path was invalid. */
        protected static ImageIcon createImageIcon(String path) {
            java.net.URL imgURL = TabbedPaneDemo.class.getResource(path);
            if (imgURL != null) {
                return new ImageIcon(imgURL);
            } else {
                System.err.println("Couldn't find file: " + path);
                return null;
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from
         * the event dispatch thread.
        private static void createAndShowGUI() {
            //Create and set up the window.
            JFrame frame = new JFrame("TabbedPaneDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Add content to the window.
            frame.add(new TabbedPaneDemo(), BorderLayout.CENTER);
            //Display the window.
            frame.pack();
            frame.setVisible(true);
        public static void main(String[] args) {
            //Schedule a job for the event dispatch thread:
            //creating and showing this application's GUI.
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    //Turn off metal's use of bold fonts
              UIManager.put("swing.boldMetal", Boolean.FALSE);
              createAndShowGUI();
    package components;
    * SimpleTableDemo.java requires no other files.
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import java.awt.Dimension;
    import java.awt.GridLayout;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    public class SimpleTableDemo extends JPanel {
        private boolean DEBUG = false;
        public SimpleTableDemo() {
            super(new GridLayout(1,0));
            String[] columnNames = {"First Name",
                                    "Last Name",
                                    "Sport",
                                    "# of Years",
                                    "Vegetarian"};
            Object[][] data = {
                {"Mary", "Campione",
                 "Snowboarding", new Integer(5), new Boolean(false)},
                {"Alison", "Huml",
                 "Rowing", new Integer(3), new Boolean(true)},
                {"Kathy", "Walrath",
                 "Knitting", new Integer(2), new Boolean(false)},
                {"Sharon", "Zakhour",
                 "Speed reading", new Integer(20), new Boolean(true)},
                {"Philip", "Milne",
                 "Pool", new Integer(10), new Boolean(false)}
            final JTable table = new JTable(data, columnNames);
            table.setPreferredScrollableViewportSize(new Dimension(500, 70));
            table.setFillsViewportHeight(true);
            if (DEBUG) {
                table.addMouseListener(new MouseAdapter() {
                    public void mouseClicked(MouseEvent e) {
                        printDebugData(table);
            //Create the scroll pane and add the table to it.
            JScrollPane scrollPane = new JScrollPane(table);
            //Add the scroll pane to this panel.
            add(scrollPane);
        private void printDebugData(JTable table) {
            int numRows = table.getRowCount();
            int numCols = table.getColumnCount();
            javax.swing.table.TableModel model = table.getModel();
            System.out.println("Value of data: ");
            for (int i=0; i < numRows; i++) {
                System.out.print("    row " + i + ":");
                for (int j=0; j < numCols; j++) {
                    System.out.print("  " + model.getValueAt(i, j));
                System.out.println();
            System.out.println("--------------------------");
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
        private static void createAndShowGUI() {
            //Create and set up the window.
            JFrame frame = new JFrame("SimpleTableDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Create and set up the content pane.
            SimpleTableDemo newContentPane = new SimpleTableDemo();
            newContentPane.setOpaque(true); //content panes must be opaque
            frame.setContentPane(newContentPane);
            //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();
    }

    Before I did what you suggested, which I appreciate your input, I wanted to run the code first.
    I tried to run the SimpleTableDemo and received the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: SimpleTableDemo (wrong name: componets/SimpleTableDemo)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader...
    there are several more lines but as I was typing them out I thought that maybe the code is not written to run it in the command window. The errors seem to be around the ClassLoader. Is that correct? On the SUN example page when you launch the program a Java Web Start runs. So does this mean that the code is designed to only run in WebStart?

  • How to make fixed width size on grid layout managers.,

    hiya,
    my gird contains labels but whenever the labels has different width on their texts, the grid adopts to the width of the text, how not to?
    many thanks! :)

    Thats the way the GridLayout works, each cell is the same size. The size is determined by the largest component added to the grid.
    Here is the Swing tutorial on "Using Layout Managers".
    http://java.sun.com/docs/books/tutorial/uiswing/layout/using.html

  • Heavy Fog - Layout Managers and the word "preferred"

    Hello again world.
    While reading the API, the tutorials, and various other documentation dealing with layout managers, I keep coming across the word "preferred" - "preferred size", "preferred width", "preferred height", and so on.
    However, I can't seem to visualize just what "preferred" means in this context.
    Do they pre-suppose that one has used the setPreferredSize() method?
    And if no set*Size() method is used, how does the parent container size its components? The literature just comes back to "preferred" this and that.
    This whole "preferred" business is, to me, circular and confusing, and the more I read, the foggier things get.
    Anyone out there with a fresh breeze?
    Thank you one and all.
    Ciao for now.

    You should never use setSize(). The size of a component is set by the LayoutManager as the components in the container are layed out. For example say you are using a GridLayout and you have 3 buttons: following text:
    small = new JButton("small");
    medium = new JButton("medium sized");
    large = new JButton("the largest button");
    The preferred size of each button is calculated to be:
    a) the size of the text +
    b) the border +
    c) the margin
    When components are added to the GridLayout all components are made the same size. The preferredSize does not change, but the size of each button is set the the largest preferredSize of the three buttons before it is painted. The GridLayout ignores the preferredSize of individual components and only cares about the largest component.
    On the other hand the FlowLayout repects the preferredSize of each component when they are layed out and painted. When using a FlowLayout you can set the preferredSize of each component to be the same by doing the following:
    small.setPreferredSize( large.getPreferredSize() );
    medium.setPreferredSize( large.getPreferredSize() );
    Every LayoutManager has rules it follows with respect to preferredSize, minimumSize and maximumSize. Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html]Using Layout Managers.

  • Good book on Layout Managers...

    Hi,
    I am looking for good book on Swing. I needed to be a lot of things: a good reference, good explanations, good explanation about how Layout managers work and how to design GUIs.
    One of the biggest problems that I am having is, I think, not understanding how to layout my components and how to control each component so that the GUI doesn't look rediculous. So, I need a general explanation as well as a detailed, all in one.
    Does anyone know of a book or a set of books that would do this?
    Thanks,
    Yaakov.

    Core JFC (2nd Edition) by Kim Topely has a good section on gridbag. I really like this book. For more current books, try Java Swing, Second Edition by James Elliot et al and Swing, Second Edition by Matthew Robinson et al.
    As for layout managers, we've been using RelativeLayout and are very happy with it. Coding it is rather wordy and tedious, but it makes a lot more sense to us than gridbag's wacky concepts (weights, invisible grids with insets etc). I find it much more precise for positioning components than gridbag. Our new Swing programmers understand RelativeLayout within about 10 minutes of messing with it.
    Read about (and obtain) RelativeLayout at:
    http://www.onjava.com/pub/a/onjava/2002/09/18/relativelayout.html
    and
    http://www.onjava.com/pub/a/onjava/2002/11/27/layout2.html
    Michael Billesbach

  • Digital Publishing Suite Help | Layout design overview

    This question was posted in response to the following article: http://helpx.adobe.com/digital-publishing-suite/help/layout-design-overview.html

    Great Video.
    Can you have two 15 page docs for Horz and Vert formats marry them in folio, so that article 1 has a Horz and Vert orientation,article 2 the same and so on and so on right up to article 15?
    Right now it seems like I would have to break the two docs into 15 individual docs each to accomplish the Horz and Vert orientation.

  • Is it possible to make a javafx ui application without using layout managers ?

    I want to make an user interface application without using layout managers. In my previous attempt i made an application in java swing. There i used the setBounds() function. Is there any function like setBounds() in javafx ?

    There really isn't any more to it than that.
    Again, I have no idea why you would do things this way (either in JavaFX or in Swing), but:
    import javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.Label;
    import javafx.scene.control.TextField;
    import javafx.scene.layout.Pane;
    import javafx.stage.Stage;
    public class ManualPositioningExample extends Application {
        @Override
        public void start(Stage primaryStage) {
            final Pane root = new Pane();
            final Button button = new Button("Click me");
            final Label label = new Label("A Label");
            final TextField textField = new TextField();
            root.getChildren().addAll(button, label, textField);
            label.relocate(25, 25);
            textField.relocate(75, 25);
            textField.setPrefSize(100, 20);
            button.relocate(25, 50);
            button.setPrefSize(150, 20);
            Scene scene = new Scene(root, 400, 200);
            primaryStage.setScene(scene);
            primaryStage.show();
        public static void main(String[] args) {
            launch(args);

  • How to use layout managers

    Hi ,
    I designed a JFrame. If i enlrged the frame widow, the components are not arranged properly. How can i arrange them.
    narayana

    the components are not arranged properly.That statement mean absolutely nothing. They are arranged properly according the to the rules of the Layout Manager you are using.
    If it is not layed out the way you want then you need to use a different Layout Manager or combination of Layout Managers. Since you don't define what "properly" means you are on your own.
    Read the tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html]How to Use Layout Managers

  • Remove glossary tab from Microsoft HTML Help layout

    How do I remove the Glossary tab from Microsoft HTML Help layout? Using RoboHelp 11
    Thanks.

    Hi there
    You do that by editing the Window defintion. Click View > Pods > Project Set-up.
    Expand the Windows folder and double-click the CHM Window definition.
    Then DE-select the Glossary option.
    Cheers... Rick

  • Help with layout managers

    I can't seem to understand layouts. Or maybe it's text components. Anyway, this little JFrame class seems to act really strangely, and I cannot figure out why.
    Can anybody tell me how to get pack() to do something sensible with the components in the main JFrame (the one with the statistics is just for reference.)
    The rest of this message is Java code (plus maybe a signature)
    import javax.swing.JFrame;
    import javax.swing.JButton;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    import javax.swing.JTextArea;
    import java.awt.Container;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    public class MyFrame extends JFrame {
    private String str;
    private JPanel panel;
    private JButton button;
    private JTextField textField;
    private JTextArea afterStatus;
    private JFrame otherFrame;
    private Container otherStuff;
    public MyFrame(String s) {
         // Create companion frame to hold statistics.
         afterStatus = new JTextArea();
         otherFrame = new JFrame("Stats");
         otherStuff = otherFrame.getContentPane();
         otherStuff.add(afterStatus, BorderLayout.CENTER);
         otherFrame.pack();
         otherFrame.setVisible(true);
    str = s;
    textField = new JTextField();
         panel = (JPanel)getContentPane();
    button = makeAButton();
    panel.setPreferredSize(new Dimension(200, 30));
    panel.add(button, BorderLayout.WEST);
    panel.add(textField, BorderLayout.EAST);
         textField.setText("Something or other; long so you can see it resize");
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         myUpdate();
    private void myUpdate() {
         afterStatus.setText("Message is now: " + textField.getText() + "\n\n");
         afterStatus.append("textField Status Before Last Pack:\n");
         afterStatus.append("PreferredSize: " + textField.getPreferredSize() + "\n");
         afterStatus.append("Current Size: " + textField.getSize() + "\n\n");
         afterStatus.append("Button Status Before Last Pack:\n");
         afterStatus.append("PreferredSize: " + button.getPreferredSize() + "\n");
         afterStatus.append("Current Size: " + button.getSize() + "\n\n");
    pack();
         afterStatus.append("textField Status After Last Pack:\n");
         afterStatus.append("PreferredSize: " + textField.getPreferredSize() + "\n");
         afterStatus.append("Current Size: " + textField.getSize() + "\n\n");
         afterStatus.append("Button Status After Last Pack:\n");
         afterStatus.append("PreferredSize: " + button.getPreferredSize() + "\n");
         afterStatus.append("Current Size: " + button.getSize() + "\n\n");
         afterStatus.append("ContentPane Status After Last Pack:\n");
         afterStatus.append("PreferredSize: " + panel.getPreferredSize() + "\n");
         afterStatus.append("Current Size: " + panel.getSize() + "\n\n");
         otherFrame.pack();
    public static void main(String[] args) {
    String text = "Hello World";
    MyFrame frame = new MyFrame(text);
    frame.setVisible(true);
    public JButton makeAButton() {
    JButton b = new JButton("Push Me!");
         final JPanel thePanel = panel;
         final MyFrame thisFrame = this;
    class ButtonListener implements ActionListener {
    private int count;
    public ButtonListener() {
    count = 0;
    public void actionPerformed(ActionEvent e) {
    ++count;
    textField.setText("A longer than normalouch " + count);
    thePanel.revalidate();
              thisFrame.myUpdate();
    ButtonListener blist = new ButtonListener();
    b.addActionListener(blist);
    return b;
    public String getText() {
    return str;
    }

    Swing related questions should be posted in the Swing forum.
    Use the "code" tags when posting code, so the code retains its original formatting.
    panel.setPreferredSize(new Dimension(200, 30));Remove the above line. If you set the preferred size of the panel, then it doesn't care about the preferred size of its contained components.

  • Newbie help me obi wans: ...coded locked by template or translator

    Hi Folks,
    I'm such a newbie to DW   I've been using it for a few years actually, but in a very basic sense.
    I dloaded a template, added some graphics, made some buttons etc.. and of course text, but when it comes to coding,
    I've only figure out how to add spaces  lol
    I'm trying to add a flash video to my samples page.  I can add images, but every time I add the .flv, I receive the subject message.
    So here are 2 issues:
    1. I don't know if this related to #2, but I can't erase the 3rd column...or even use it. it's locked - I see a circle with a line through it.  The template I bought did say it was 3 columns, but I don't understand why I can't touch it.  I've attached a tiff of what it looks like right now.
    2. as the subject says "changing code is locked by the template is locked a template or translator" is giving me grief.
    I've reviewed the previous posts on the subject, but I'm afraid my newbie-ness has left me not knowing what to do.  ie. I can't find a time/date to change...I see the <head> and <script>, but they're greyed out on the one page I'm trying to edit.  They're not greyed out on the template page however.
    I also tried saving my .dwt as a new template, but that didn't work either.
    Here is code for my Samples page.  I'll post the code for the template page under that.
    <html><!-- #BeginTemplate "/Templates/Main2.dwt" --><!-- DW6 -->
    <head>
    <!-- #BeginEditable "doctitle" -->
    <title>dvdslideshow</title>
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script>
    <!-- #EndEditable -->
    <LINK REL=STYLESHEET TYPE="text/css" HREF="../style.css">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    //-->
    </script>
    </head>
    <body bgcolor="#FFFFFF" text="#000000" onLoad="MM_preloadImages('../oldafter.jpg','../hockey new 281.jpg','../sp40 fixed.jpg','../redeyegone.jpg','../yellowfinal.jpg','../sp900_800.jpg','../soloedited.jpg ','../breton_done_web.jpg')">
    <table width="0%" border="0" cellspacing="0" cellpadding="0">
      <!--DWLayoutTable-->
      <tr>
        <td width="128" rowspan="8" valign="top" bgcolor="#EBEBE3"> <table width="128" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td><img src="../images/menutop.gif" width="128" height="18"></td>
            </tr>
            <tr>
              <td><p><a href="../index.htm"><img name="Image35" border="0" src="../images/menu/home.gif" width="128" height="19"></a><br>
                  <a href="../services.htm"><img name="Image36" border="0" src="../images/menu/products.gif" width="128" height="19"></a><br>
                  <a href="../samples.htm"><img name="Image37" border="0" src="../images/menu/services.gif" width="128" height="19"></a><br>
                  <a href="../pricing.htm"><img name="Image38" border="0" src="../images/menu/aboutus.gif" width="128" height="19"></a><br>
                  <a href="../the_process.htm"><img name="Image39" border="0" src="../images/menu/company.gif" width="128" height="19"></a><br>
                  <a href="../testimonials.htm"><img name="Image40" border="0" src="../images/menu/links.gif" width="128" height="19"></a><br>
                  <a href="../faq.htm"><img name="Image41" border="0" src="../images/menu/guestbook.gif" width="128" height="19"></a><br>
                  <a href="../disclaimers.htm"><img name="Image42" border="0" src="../images/menu/photo.gif" width="128" height="19"></a><br>
                  <a href="../contact me.htm"></a><a href="../contact_me.htm"><img name="Image45" border="0" src="../images/menu/email.gif" width="128" height="19"></a>
                  <a href="../contact me.htm"></a><a href="../contact me.htm"></a></p></td>
            </tr>
            <tr>
              <td><a href="../specials.htm"><img src="../images/menubottom2.jpg" width="128" height="18" border="0"></a></td>
            </tr>
            <tr>
              <td><img src="../images/sidetop.gif" width="128" height="17"></td>
            </tr>
            <tr>
              <td align="center"><strong>Celebrate a milestone birthday or anniverary
                with a <u>DVD Photo Slideshow</u>. <a href="slideshows2dvd.htm">Click
                here for more details.</a></strong></td>
            </tr>
            <tr>
              <td align="center"> <table width="96%" border="0" cellspacing="0" cellpadding="0" align="center">
                  <tr>
                    <td class="news"><br>
                      <a href="audiotransfers.htm"><img src="../LPcassettes.jpg" width="180" height="152" border="0"></a>
                    </td>
                  </tr>
                </table></td>
            </tr>
          </table>
          <p align="center"><font size="+2">Donations!</font></p>
          <p align="center"> 5% of Memories2dvd's annual revenue will be donated equally
            between the <a href="http://www.cancer.ca/ccs/internet/cancer/0,,3172,00.html"><strong>Canadian
            Cancer Society</strong></a> and the <a href="http://junobeach.org/Centre/index.html"><strong>Juno
            Beach Memorial</strong></a></p>
          <p> </p></td>
        <td width="3" rowspan="7"><img src="../images/clearpixel.gif" width="3" height="1"></td>
        <td width="16" height="56" bgcolor="#6D9A50"><img src="../images/topleft.gif" width="16" height="56"></td>
        <td width="100%" valign="bottom" bgcolor="#6D9A50"><img src="../name.gif" width="360" height="50"></td>
        <td width="16"><img src="../images/topright.gif" width="16" height="56"></td>
      </tr>
      <tr>
        <td colspan="3" height="2"><img src="../images/clearpixel.gif" width="1" height="2"></td>
      </tr>
      <tr>
        <td height="6" colspan="3" bgcolor="#006D15"><img src="../images/clearpixel.gif" width="1" height="6"></td>
      </tr>
      <tr>
        <td colspan="3" height="2"><img src="../images/clearpixel.gif" width="1" height="2"></td>
      </tr>
      <tr>
        <td height="21" bgcolor="#EBEBE3"><img src="../images/lightleft.gif" width="16" height="21"></td>
        <td align="right" bgcolor="#EBEBE3"><div align="left"><strong><a href="mailto:[email protected]">CONTACT
            INFORMATION: Phone: 613-324-2383___ E-MAIL</a> | <a href="../about_me.htm">About
            Me</a></strong> </div></td>
        <td bgcolor="#EBEBE3"> </td>
      </tr>
      <tr>
        <td height="11"><img src="../images/clearpixel.gif" width="1" height="11"></td>
        <td align="right" valign="top"><img src="../images/lightcorner.gif" width="10" height="11"></td>
        <td bgcolor="#EBEBE3"><img src="../images/clearpixel.gif" width="1" height="11"></td>
      </tr>
      <tr>
        <td height="650" colspan="2"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="16" rowspan="2"><img src="../images/innertopleft.gif" width="16" height="16"></td>
              <td bgcolor="#006D15" height="1"><img src="../images/clearpixel.gif" width="1" height="1"></td>
              <td width="16" rowspan="2"><img src="../images/innertopright.gif" width="18" height="16"></td>
            </tr>
            <tr>
              <td width="100%"><img src="../images/clearpixel.gif" width="1" height="15"></td>
            </tr>
            <tr>
              <td background="../images/leftbg.gif"><img src="../images/clearpixel.gif" width="16" height="8"></td>
              <td width="100%" valign="top"> <div align="center">
                  <table width="100%" border="0" cellspacing="2" cellpadding="2">
                    <!--DWLayoutTable-->
                    <!-- #BeginEditable "Body" -->
                  <tr>
                    <td width="267" height="145" valign="top"><p><img src="../pg t samples.jpg" width="119" height="34"></p>
                        <p>It's one thing to read about my services, but once you
                          actually see the results, you will realize that personalization
                          is the key to your DVD project. Aside from your photos,
                          video and favourite music, I completely personalize every
                        aspect of your DVD right from the packaging to the DVD menus.</p>
                        <p>Click <a href="testimonials.htm"><strong>here</strong></a> to read client testimonials.</p>
                        <p>Click on the thumbnails below to view various samples from
                          recent projects.</p>
                        <p><em>All samples have been reduced in quality to be internet
                          friendly. Original versions are of superior quality and
                          full-TV size. </em></p>
                        <p>You will need Apple's Quicktime player to view the movie
                          files. The free download is available by clicking <a href="http://www.apple.com/quicktime/products/qt"><strong>here</strong></a>.</p>
                      <p> </p>                    </td>
                    <td width="290" align="center" valign="top"><p> </p>
                        <p> </p>
                        <p align="center">Follow these links to read about other services:</p>
                        <div align="left">
                          <ul>
                            <li><strong><a href="homedvds.htm"><font size="+1">Video
                            and Reel Transfers</font></a></strong></li>
                            <li><font size="+1"><strong><a href="slideshows2dvd.htm">Photo
                              Slideshows</a></strong></font></li>
                            <li><font size="+1"><strong><a href="../photorestorations.htm">Photo
                              Transfers and Restorations</a></strong></font></li>
                            <li> <font size="+1"><strong><a href="audiotransfers.htm">Audio
                              Transfers</a></strong></font></li>
                          </ul>
                        </div>
                        <p> </p>
                        <p align="right"> </p>
                      <p> </p></td>
                  </tr>
                  <tr valign="top">
                    <td height="232" colspan="2" valign="top"> <p align="left"><strong><font size="+1">PHOTOSLIDESHOW
                          SAMPLES:</font></strong></p>
                      <p align="left"> </p>
                      <p align="left">The following slideshow was recently done for a surprise birthday party.</p>
                      <p align="center"><a href="Sshowsample.mp4"><img src="Sshowsample2.jpg" width="163" height="89"></a></p>
                      <p align="left">Photographs with voice over narration and
                          text titles were combined to create a presentation that
                          will provide generations with a history on their forefather
                          in this biography.</p>
                        <p align="center"><a href="../biography.wmv"><img src="../bio111.jpg" width="111" height="73" border="0"></a></p>
                        <p align="left"> </p>
                        <p align="left">This couple were married by a lake in a beautiful
                          wedding. I compiled camcorder footage along with photographs
                          into a memorable DVD, complete with a bonus music video.
                        <p align="center"><a href="../ceremusicvidsam.mp4"><img src="../arbour.jpg" width="111" height="72" border="0"></a>
                        <p align="left"><strong><font size="+1">8mm REEL COLOUR CORRECTION
                          SAMPLE:</font></strong>
                        <p align="left">Are you videos dark, too bright or discoloured?
                          I can edit your tapes and film to repair colour issues,
                        bringing your movies back to life.                   
                        Click <a href="http://homepage.mac.com/memories2dvd/iMovieTheater30.html"><strong>HERE</strong></a> to view samples.
                        <p align="left"><strong><font size="+1">PHOTO RESTORATION
                          SAMPLES</font></strong>
                        <p align="left">These samples illustrate the various types
                          of blemishes which can be dealt with to restore your photographs.</p>
                        <p align="left"> <strong><u><font size="3">Simply move your
                          mouse cursor over each photo to see the difference.</font></u></strong></p>
                        <p align="left"><strong>General Dust/Blemish Removal</strong></p>
                        <p align="left"> </p>
                        <p> </p>
                        <div align="center">
                          <p align="left"> </p>
                        </div>
                        <p align="left"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('sp40 fix','','../sp40 fixed.jpg',1)"><img src="../sp40_orig.jpg" name="sp40 fix" width="600" height="418" border="0"></a></p>
                        <p align="left"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image56','','../hockey new 281.jpg',1)"><img src="../hockey old 281.jpg" name="Image56" width="270" height="163" border="0"></a></p>
                        <p align="left"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('oldsue','','../oldafter.jpg',1)"><img src="../oldbefore.jpg" name="oldsue" width="320" height="501" border="0"></a></p>
                        <p align="left"><strong>Red Eye Removal</strong></p>
                        <p align="left"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image55','','../redeyegone.jpg',1)"><img src="../redeye.jpg" name="Image55" width="231" height="416" border="0"></a></p>
                        <p align="left"><strong>Colour &amp; Stain Removal</strong></p>
                        <p align="left"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('yellow','','../yellowfinal.jpg',1)"><img src="../yelloworig.jpg" name="yellow" width="270" height="395" border="0"></a></p>
                        <p align="left"><strong>Contrast &amp; Exposure Adjustments
                          and Crack Removals </strong>
                        <p align="left"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('breton','','../breton_done_web.jpg',1)"><img src="../breton base_web.jpg" name="breton" width="539" height="1000" border="0"></a>                   
                        <p align="left"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('cracks','','../sp900_800.jpg',1)"><img src="../sp9orig.jpg" name="cracks" width="600" height="410" border="0"></a>
                        <p align="left"><strong>Isolation of Main Subject</strong>
                        <p align="left"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('isolation','','../soloedited.jpg',1)"><img src="../15sisters.jpg" name="isolation" width="300" height="500" border="0"></a>
                        <p align="left"> </p>
                        <p><br>
                          <img src="../images/clearpixel.gif" width="430
    " height="1"> </p>                    </td>
                  </tr>
                  <!-- #EndEditable -->
                    <tr valign="top">
                      <td height="88" colspan="4" align="center" class="menu"> <p><img src="../images/hr.gif" width="361" height="1"></p>
                        <p class="menu" ><a href="../index.htm"><strong>home</strong></a><strong>
                          | <a href="../services.htm">services</a> | <a href="../sample.htm">samples</a>
                          | <a href="../pricing.htm">pricing</a> | <a href="../testimonials.htm">testimonials</a>
                          | <a href="../the_process.htm">the process</a><br>
                          <a href="../faq.htm"> f.a.q.</a> | <a href="../disclaimers.htm">disclaimers</a>
                          | <a href="../contact_me.htm">contact me</a> | <a href="../about_me.htm">about
                          me</a></strong></p>
                        <p class="menu" >Copyright Memories2dvd<a href="http://www.ibswebdesign.com/" target="_blank"></a>
                          2003 - 2009 All Rights Reserved</p></td>
                    </tr>
                    <tr>
                      <td height="5"></td>
                      <td></td>
                      <td width="211"></td>
                      <td></td>
                    </tr>
                  </table>
                </div></td>
              <td width"23" background="../images/rightbg.gif"><img src="../images/clearpixel.gif" width="16" height="8"></td>
            </tr>
            <tr>
              <td width="16" rowspan="2"><img src="../images/innerbottomleft.gif" width="16" height="16"></td>
              <td width="100%"><img src="../images/clearpixel.gif" width="1" height="15"></td>
              <td width="16" rowspan="2"><img src="../images/innerbottomright.gif" width="18" height="16"></td>
            </tr>
            <tr>
              <td width="1" bgcolor="#006D15" height="1"><img src="../images/clearpixel.gif" width="1" height="1"></td>
            </tr>
          </table></td>
        <td bgcolor="#EBEBE3"> </td>
      </tr>
      <tr>
        <td height="5" colspan="3"><img src="../images/clearpixel.gif" width="1" height="5"></td>
        <td bgcolor="#EBEBE3"><img src="../images/clearpixel.gif" width="1" height="5"></td>
      </tr>
      <tr>
        <td height="20" bgcolor="#006D15"><img src="../images/bottomleftcorner.gif" width="16" height="20"></td>
        <td colspan="3" bgcolor="#006D15"> </td>
        <td bgcolor="#006D15"><img src="../images/bottomrightcorner.gif" width="16" height="20"></td>
      </tr>
    </table>
    </body>
    <!-- #EndTemplate --></html>
    CODE FOR THE TEMPLATE PAGE:
    <html>
    <head>
    <!-- #BeginEditable "doctitle" -->
    <title>Untitled Document.</title>
    <!-- #EndEditable -->
    <LINK REL=STYLESHEET TYPE="text/css" HREF="../style.css">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    //-->
    </script>
    </head>
    <body bgcolor="#FFFFFF" text="#000000">
    <table width="0%" border="0" cellspacing="0" cellpadding="0">
      <!--DWLayoutTable-->
      <tr>
        <td width="128" rowspan="8" valign="top" bgcolor="#EBEBE3"> <table width="128" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td><img src="../images/menutop.gif" width="128" height="18"></td>
            </tr>
            <tr>
              <td><p><a href="../index.htm"><img name="Image35" border="0" src="../images/menu/home.gif" width="128" height="19"></a><br>
                  <a href="../services.htm"><img name="Image36" border="0" src="../images/menu/products.gif" width="128" height="19"></a><br>
                  <a href="../samples.htm"><img name="Image37" border="0" src="../images/menu/services.gif" width="128" height="19"></a><br>
                  <a href="../pricing.htm"><img name="Image38" border="0" src="../images/menu/aboutus.gif" width="128" height="19"></a><br>
                  <a href="../the_process.htm"><img name="Image39" border="0" src="../images/menu/company.gif" width="128" height="19"></a><br>
                  <a href="../testimonials.htm"><img name="Image40" border="0" src="../images/menu/links.gif" width="128" height="19"></a><br>
                  <a href="../faq.htm"><img name="Image41" border="0" src="../images/menu/guestbook.gif" width="128" height="19"></a><br>
                  <a href="../disclaimers.htm"><img name="Image42" border="0" src="../images/menu/photo.gif" width="128" height="19"></a><br>
                  <a href="../contact%20me.htm"></a><a href="../contact_me.htm"><img name="Image45" border="0" src="../images/menu/email.gif" width="128" height="19"></a>
                  <a href="../contact%20me.htm"></a><a href="../contact%20me.htm"></a></p></td>
            </tr>
            <tr>
              <td><a href="../specials.htm"><img src="../images/menubottom2.jpg" width="128" height="18" border="0"></a></td>
            </tr>
            <tr>
              <td> </td>
            </tr>
            <tr>
              <td align="center"><strong>Celebrate a milestone birthday or anniverary
                with a <u>DVD Photo Slideshow</u>. <a href="../slideshows2dvd.htm">Click
                here for more details.</a></strong></td>
            </tr>
            <tr>
              <td align="center"> <table width="96%" border="0" cellspacing="0" cellpadding="0" align="center">
                  <tr>
                    <td class="news"><br>
                      <a href="../audiotransfers.htm"><img src="../LPcassettes.jpg" width="180" height="152" border="0"></a>
                    </td>
                  </tr>
                </table></td>
            </tr>
          </table>
          <p align="center"><font size="+2">Donations!</font></p>
          <p align="center"> 5% of Memories2dvd's annual revenue will be donated equally
            between the <a href="http://www.cancer.ca/ccs/internet/cancer/0,,3172,00.html"><strong>Canadian
            Cancer Society</strong></a> and the <a href="http://junobeach.org/Centre/index.html"><strong>Juno
            Beach Memorial</strong></a></p>
          <p> </p></td>
        <td width="3" rowspan="7"><img src="../images/clearpixel.gif" width="3" height="1"></td>
        <td width="16" height="56" bgcolor="#6D9A50"><img src="../images/topleft.gif" width="16" height="56"></td>
        <td width="100%" valign="bottom" bgcolor="#6D9A50"><img src="../name.gif" width="360" height="50"></td>
        <td width="16"><img src="../images/topright.gif" width="16" height="56"></td>
      </tr>
      <tr>
        <td colspan="3" height="2"><img src="../images/clearpixel.gif" width="1" height="2"></td>
      </tr>
      <tr>
        <td height="6" colspan="3" bgcolor="#006D15"><img src="../images/clearpixel.gif" width="1" height="6"></td>
      </tr>
      <tr>
        <td colspan="3" height="2"><img src="../images/clearpixel.gif" width="1" height="2"></td>
      </tr>
      <tr>
        <td height="21" bgcolor="#EBEBE3"><img src="../images/lightleft.gif" width="16" height="21"></td>
        <td align="right" bgcolor="#EBEBE3"><div align="left"><strong><a href="mailto:[email protected]">CONTACT
            INFORMATION: Phone: 613-831-9365___ E-MAIL</a> | <a href="../about_me.htm">About
            Me</a></strong> </div></td>
        <td bgcolor="#EBEBE3"> </td>
      </tr>
      <tr>
        <td height="11"><img src="../images/clearpixel.gif" width="1" height="11"></td>
        <td align="right" valign="top"><img src="../images/lightcorner.gif" width="10" height="11"></td>
        <td bgcolor="#EBEBE3"><img src="../images/clearpixel.gif" width="1" height="11"></td>
      </tr>
      <tr>
        <td height="650" colspan="2"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="16" rowspan="2"><img src="../images/innertopleft.gif" width="16" height="16"></td>
              <td bgcolor="#006D15" height="1"><img src="../images/clearpixel.gif" width="1" height="1"></td>
              <td width="16" rowspan="2"><img src="../images/innertopright.gif" width="18" height="16"></td>
            </tr>
            <tr>
              <td width="100%"><img src="../images/clearpixel.gif" width="1" height="15"></td>
            </tr>
            <tr>
              <td background="../images/leftbg.gif"><img src="../images/clearpixel.gif" width="16" height="8"></td>
              <td width="100%" valign="top"> <div align="center">
                  <table width="100%" border="0" cellspacing="2" cellpadding="2">
                    <!--DWLayoutTable-->
                    <!-- #BeginEditable "Body" -->
                    <tr>
                      <td width="329" height="189" valign="top"><p><img src="../pg%20t%20instrucnl.jpg" width="300" height="27"></p>
                        <p align="left">From teachers to health care professionals
                          to corporate trainers, I can help you create a compelling
                          instructional video. Using techniques such as Picture in
                          Picture will deliver your educational knowledge with extra
                          value. The ease of navigation of DVD makes instruction more
                          efficient and effective.</p></td>
                      <td width="4" valign="top"><img src="images/hr.gif" width="1" height="125"> </td>
                      <td colspan="2" valign="top"><p><img src="../pg%20t%20blank.jpg" width="204" height="27
    "></p>
                        <p>Follow these links to read about other services:</p>
                        <div align="left">
                          <ul>
                            <li><a href="../homedvds.htm">classic home videos</a></li>
                            <li> <a href="../weddings2dvd.htm">weddings2dvd</a></li>
                            <li> <a href="../sports2dvd.htm">sports2dvd</a></li>
                            <li> <a href="../slideshows2dvd.htm">DVD photo slideshows</a></li>
                            <li> <a href="../reunions2dvd.htm">reunions2dvd</a></li>
                            <li> <a href="instructionaldvds.htm">instructional DVD</a></li>
                          </ul>
                        </div></td>
                    </tr>
                    <tr>
                      <td height="3
    50" colspan="3" valign="top"><p align="center"><img src="../images/hr.gif" width="361" height="1"></p>
                        <p align="left">  </p>
                        <p align="left">Please click <a href="../sample.htm"><strong>here</strong></a>
                          to view real samples from recent projects.<br>
                        </p></td>
                      <td width="2" valign="top"><!--DWLayoutEmptyCell--> </td>
                    </tr>
                    <!-- #EndEditable -->
                    <tr valign="top">
                      <td height="88" colspan="4" align="center" class="menu"> <p><img src="../images/hr.gif" width="361" height="1"></p>
                        <p class="menu" ><a href="../index.htm"><strong>home</strong></a><strong>
                          | <a href="../services.htm">services</a> | <a href="../sample.htm">samples</a>
                          | <a href="../pricing.htm">pricing</a> | <a href="../testimonials.htm">testimonials</a>
                          | <a href="../the_process.htm">the process</a><br>
                          <a href="../faq.htm"> f.a.q.</a> | <a href="../disclaimers.htm">disclaimers</a>
                          | <a href="../contact_me.htm">contact me</a> | <a href="../about_me.htm">about
                          me</a></strong></p>
                        <p class="menu" >Copyright Memories2dvd<a href="http://www.ibswebdesign.com/" target="_blank"></a>
                          2003 - 2009 All Rights Reserved</p></td>
                    </tr>
                    <tr>
                      <td height="5"></td>
                      <td></td>
                      <td width="211"></td>
                      <td></td>
                    </tr>
                  </table>
                </div></td>
              <td width"23" background="../images/rightbg.gif"><img src="../images/clearpixel.gif" width="16" height="8"></td>
            </tr>
            <tr>
              <td width="16" rowspan="2"><img src="../images/innerbottomleft.gif" width="16" height="16"></td>
              <td width="100%"><img src="../images/clearpixel.gif" width="1" height="15"></td>
              <td width="16" rowspan="2"><img src="../images/innerbottomright.gif" width="18" height="16"></td>
            </tr>
            <tr>
              <td width="1" bgcolor="#006D15" height="1"><img src="../images/clearpixel.gif" width="1" height="1"></td>
            </tr>
          </table></td>
        <td bgcolor="#EBEBE3"><!-- TemplateBeginEditable name="EditRegion1" --><!-- TemplateEndEditable --></td>
      </tr>
      <tr>
        <td height="5" colspan="3"><img src="../images/clearpixel.gif" width="1" height="5"></td>
        <td bgcolor="#EBEBE3"><img src="../images/clearpixel.gif" width="1" height="5"></td>
      </tr>
      <tr>
        <td height="20" bgcolor="#006D15"><img src="../images/bottomleftcorner.gif" width="16" height="20"></td>
        <td colspan="3" bgcolor="#006D15"> </td>
        <td bgcolor="#006D15"><img src="../images/bottomrightcorner.gif" width="16" height="20"></td>
      </tr>
    </table>
    </body>
    </html>
    Any help is hugely appreciated.
    Cheers
    keebler

    thanks for the quick reply!
    I found the 2 things to change, but when I go back to my page...everything is gone!  eek
    (fear no panic - I did back up my website prior to making any changes
    (file attached).
    it looks like there is only 1 column instead of 3 sections. I was hoping to lose just the one on the right.
    here is the new code from my Samples page (not the template)  I"ll post that below.
    <!-- #BeginTemplate "/Templates/Main2.dwt" --><!-- DW6 --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <head>
    <!-- #BeginEditable "doctitle" -->
    <title>dvdslideshow</title>
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script>
    <!-- #EndEditable -->
    <LINK REL=STYLESHEET TYPE="text/css" HREF="public_html/style.css">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    //-->
    </script>
    </head>
    <body bgcolor="#FFFFFF" text="#000000" onLoad="MM_preloadImages('sp40 fixed.jpg','hockey new 281.jpg','oldafter.jpg','redeyegone.jpg','yellowfinal.jpg','breton_done_web.jpg','sp900_8 00.jpg','soloedited.jpg')">
    <table width="0%" border="0" cellspacing="0" cellpadding="0">
      <!--DWLayoutTable-->
      <tr>
        <td width="128" rowspan="8" valign="top" bgcolor="#EBEBE3"> <table width="128" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td><img src="public_html/images/menutop.gif" width="128" height="18"></td>
            </tr>
            <tr>
              <td><p><a href="public_html/index.htm"><img name="Image35" border="0" src="public_html/images/menu/home.gif" width="128" height="19"></a><br>
                  <a href="public_html/services.htm"><img name="Image36" border="0" src="public_html/images/menu/products.gif" width="128" height="19"></a><br>
                  <a href="public_html/samples.htm"><img name="Image37" border="0" src="public_html/images/menu/services.gif" width="128" height="19"></a><br>
                  <a href="public_html/pricing.htm"><img name="Image38" border="0" src="public_html/images/menu/aboutus.gif" width="128" height="19"></a><br>
                  <a href="public_html/the_process.htm"><img name="Image39" border="0" src="public_html/images/menu/company.gif" width="128" height="19"></a><br>
                  <a href="public_html/testimonials.htm"><img name="Image40" border="0" src="public_html/images/menu/links.gif" width="128" height="19"></a><br>
                  <a href="public_html/faq.htm"><img name="Image41" border="0" src="public_html/images/menu/guestbook.gif" width="128" height="19"></a><br>
                  <a href="public_html/disclaimers.htm"><img name="Image42" border="0" src="public_html/images/menu/photo.gif" width="128" height="19"></a><br>
                  <a href="public_html/contact me.htm"></a><a href="public_html/contact_me.htm"><img name="Image45" border="0" src="public_html/images/menu/email.gif" width="128" height="19"></a>
                  <a href="public_html/contact me.htm"></a><a href="public_html/contact me.htm"></a></p></td>
            </tr>
            <tr>
              <td><a href="public_html/specials.htm"><img src="public_html/images/menubottom2.jpg" width="128" height="18" border="0"></a></td>
            </tr>
            <tr>
              <td> </td>
            </tr>
            <tr>
              <td align="center"><strong>Celebrate a milestone birthday or anniverary
                with a <u>DVD Photo Slideshow</u>. <a href="public_html/slideshows2dvd.htm">Click
                here for more details.</a></strong></td>
            </tr>
            <tr>
              <td align="center"> <table width="96%" border="0" cellspacing="0" cellpadding="0" align="center">
                  <tr>
                    <td class="news"><br>
                      <a href="public_html/audiotransfers.htm"><img src="public_html/LPcassettes.jpg" width="180" height="152" border="0"></a>
                    </td>
                  </tr>
                </table></td>
            </tr>
          </table>
          <p align="center"><font size="+2">Donations!</font></p>
          <p align="center"> 5% of Memories2dvd's annual revenue will be donated equally
            between the <a href="http://www.cancer.ca/ccs/internet/cancer/0,,3172,00.html"><strong>Canadian
            Cancer Society</strong></a> and the <a href="http://junobeach.org/Centre/index.html"><strong>Juno
            Beach Memorial</strong></a></p>
          <p> </p></td>
        <td width="3" rowspan="7"><img src="public_html/images/clearpixel.gif" width="3" height="1"></td>
        <td width="16" height="56" bgcolor="#6D9A50"><img src="public_html/images/topleft.gif" width="16" height="56"></td>
        <td width="100%" valign="bottom" bgcolor="#6D9A50"><img src="public_html/name.gif" width="360" height="50"></td>
        <td width="16"><img src="public_html/images/topright.gif" width="16" height="56"></td>
      </tr>
      <tr>
        <td colspan="3" height="2"><img src="public_html/images/clearpixel.gif" width="1" height="2"></td>
      </tr>
      <tr>
        <td height="6" colspan="3" bgcolor="#006D15"><img src="public_html/images/clearpixel.gif" width="1" height="6"></td>
      </tr>
      <tr>
        <td colspan="3" height="2"><img src="public_html/images/clearpixel.gif" width="1" height="2"></td>
      </tr>
      <tr>
        <td height="21" bgcolor="#EBEBE3"><img src="public_html/images/lightleft.gif" width="16" height="21"></td>
        <td align="right" bgcolor="#EBEBE3"><div align="left"><strong><a href="mailto:[email protected]">CONTACT
            INFORMATION: Phone: 613-831-9365___ E-MAIL</a> | <a href="public_html/about_me.htm">About
            Me</a></strong> </div></td>
        <td bgcolor="#EBEBE3"> </td>
      </tr>
      <tr>
        <td height="11"><img src="public_html/images/clearpixel.gif" width="1" height="11"></td>
        <td align="right" valign="top"><img src="public_html/images/lightcorner.gif" width="10" height="11"></td>
        <td bgcolor="#EBEBE3"><img src="public_html/images/clearpixel.gif" width="1" height="11"></td>
      </tr>
      <tr>
        <td height="650" colspan="2"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="16" rowspan="2"><img src="public_html/images/innertopleft.gif" width="16" height="16"></td>
              <td bgcolor="#006D15" height="1"><img src="public_html/images/clearpixel.gif" width="1" height="1"></td>
              <td width="16" rowspan="2"><img src="public_html/images/innertopright.gif" width="18" height="16"></td>
            </tr>
            <tr>
              <td width="100%"><img src="public_html/images/clearpixel.gif" width="1" height="15"></td>
            </tr>
            <tr>
              <td background="public_html/images/leftbg.gif"><img src="public_html/images/clearpixel.gif" width="16" height="8"></td>
              <td width="100%" valign="top"> <div align="center">
                  <table width="100%" border="0" cellspacing="2" cellpadding="2">
                    <!--DWLayoutTable-->
                    <!-- #BeginEditable "Body" -->
                  <tr>
                    <td width="267" height="145" valign="top"><p><img src="pg%20t%20samples.jpg" width="119" height="34"></p>
                        <p>It's one thing to read about our services, but once you
                          actually see the results, you will realize that personalization
                          is the key to your DVD project. Aside from your photos,
                          video and favourite music, I completely personalize every
                          aspect of your DVD right from the packaging to the DVD menus.</p>
                        <p>Click on the thumbnails below to view various samples from
                          recent projects.</p>
                        <p><em>All samples have been reduced in quality to be internet
                          friendly. Original versions are of superior quality and
                          full-TV size. I can supply demo DVDs upon request.</em></p>
                        <p>You will need Apple's Quicktime player to view the movie
                          files. The free download is available by clicking <a href="http://www.apple.com/quicktime/products/qt"><strong>here</strong></a>.</p>
                        <p> </p>                    </td>
                    <td width="290" align="center" valign="top"><p> </p>
                        <p> </p>
                        <p align="center">Follow these links to read about other services:</p>
                        <div align="left">
                          <ul>
                            <li><strong><a href="homedvds.htm"><font size="+1">Video
                              Transfers</font></a></strong></li>
                            <li><font size="+1"><strong><a href="public_html/slideshows2dvd.htm">Photo
                              Transfers</a></strong></font></li>
                            <li><font size="+1"><strong><a href="photorestorations.htm">Photo
                              Restorations</a></strong></font></li>
                            <li> <font size="+1"><strong><a href="public_html/audiotransfers.htm">Audio
                              Transfers</a></strong></font></li>
                          </ul>
                        </div>
                        <p> </p>
                        <p align="right"> </p>
                      <p> </p></td>
                  </tr>
                  <tr valign="top">
                    <td height="232" colspan="2" valign="top"> <p align="left"><strong><font size="+1">PHOTOSLIDESHOW
                          SAMPLES:</font></strong></p>
                        <p align="left">Photographs with voice over narration and
                          text titles were combined to create a presentation that
                          will provide generations with a history on their forefather
                          in this biography.</p>
                        <p align="center"><a href="biography.wmv"><img src="bio111.jpg" width="111" height="73" border="0"></a></p>
                        <p align="left">The following sample was part of a 50th birthday
                          celebration. Three hundred photographs were scanned and
                          mixed with video clips to make the ultimate surprise movie.                    </p>
                        <p align="center"><a href="sample1.mov"><img src="sample1.jpg" width="111" height="82" border="0"></a></p>
                        <p align="left"> This sample was taken from a couple's vacation.
                          The couple travelled throughout SouthEast Asia and South
                          America and amassed approximately 750 digital photos. I
                          organized the DVD by country and added their favourite music
                          so they could instantly re-visit their adventures.
                        <p align="center"><a href="sample2.mov"><img src="boats.jpg" width="111" height="81" border="0"></a>
                        <p align="left">This couple were married by a lake in a beautiful
                          wedding. I compiled camcorder footage along with photographs
                          into a memorable DVD, complete with a bonus music video.
                        <p align="center"><a href="ceremusicvidsam.mp4"><img src="arbour.jpg" width="111" height="72" border="0"></a>
                        <p align="left"><strong><font size="+1">8mm REEL COLOUR CORRECTION
                          SAMPLE:</font></strong>
                        <p align="left">Are you videos dark, too bright or discoloured?
                          I can edit your tapes and film to repair colour issues,
                          bringing your movies back to life. Click <a href="http://homepage.mac.com/memories2dvd/iMovieTheater30.html"><strong><font size="+1">HERE</font></strong></a>
                          to view samples.
                        <p align="left"><strong><font size="+1">PHOTO RESTORATION
                          SAMPLES</font></strong>
                        <p align="left">These samples illustrate the various types
                          of blemishes which can be dealt with to restore your photographs.</p>
                        <p align="left"> <strong><u><font size="3">Simply move your
                          mouse cursor over each photo to see the difference.</font></u></strong></p>
                        <p align="left"><strong>General Dust/Blemish Removal</strong></p>
                        <p align="left"> </p>
                        <p> </p>
                        <div align="center">
                          <p align="left"> </p>
                        </div>
                        <p align="left"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('sp40 fix','','sp40 fixed.jpg',1)"><img src="sp40_orig.jpg" name="sp40 fix" width="600" height="418" border="0"></a></p>
                        <p align="left"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image56','','hockey new 281.jpg',1)"><img src="hockey%20old%20281.jpg" name="Image56" width="270" height="163" border="0"></a></p>
                        <p align="left"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('oldsue','','oldafter.jpg',1)"><img src="oldbefore.jpg" name="oldsue" width="320" height="501" border="0"></a></p>
                        <p align="left"><strong>Red Eye Removal</strong></p>
                        <p align="left"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image55','','redeyegone.jpg',1)"><img src="redeye.jpg" name="Image55" width="231" height="416" border="0"></a></p>
                        <p align="left"><strong>Colour &amp; Stain Removal</strong></p>
                        <p align="left"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('yellow','','yellowfinal.jpg',1)"><img src="yelloworig.jpg" name="yellow" width="270" height="395" border="0"></a></p>
                        <p align="left"><strong>Contrast &amp; Exposure Adjustments
                          and Crack Removals </strong>
                        <p align="left"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('breton','','breton_done_web.jpg',1)"><img src="breton base_web.jpg" name="breton" width="539" height="1000" border="0"></a>                   
                        <p align="left"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('cracks','','sp900_800.jpg',1)"><img src="sp9orig.jpg" name="cracks" width="600" height="410" border="0"></a>
                        <p align="left"><strong>Isolation of Main Subject</strong>
                        <p align="left"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('isolation','','soloedited.jpg',1)"><img src="15sisters.jpg" name="isolation" width="300" height="500" border="0"></a>
                        <p align="left"> </p>
                        <p><br>
                          <img src="images/clearpixel.gif" width="430
      " height="1"> </p>                    </td>
                  </tr>
                  <!-- #EndEditable -->
                    <tr valign="top">
                      <td height="88" colspan="4" align="center" class="menu"> <p><img src="public_html/images/hr.gif" width="361" height="1"></p>
                        <p class="menu" ><a href="public_html/index.htm"><strong>home</strong></a><strong>
                          | <a href="public_html/services.htm">services</a> | <a href="public_html/sample.htm">samples</a>
                          | <a href="public_html/pricing.htm">pricing</a> | <a href="public_html/testimonials.htm">testimonials</a>
                          | <a href="public_html/the_process.htm">the process</a><br>
                          <a href="public_html/faq.htm"> f.a.q.</a> | <a href="public_html/disclaimers.htm">disclaimers</a>
                          | <a href="public_html/contact_me.htm">contact me</a> | <a href="public_html/about_me.htm">about
                          me</a></strong></p>
                        <p class="menu" >Copyright Memories2dvd<a href="http://www.ibswebdesign.com/" target="_blank"></a>
                          2003 - 2009 All Rights Reserved</p></td>
                    </tr>
                    <tr>
                      <td height="5"></td>
                      <td></td>
                      <td width="211"></td>
                      <td></td>
                    </tr>
                  </table>
                </div></td>
              <td width="23" background="../images/rightbg.gif<img src="../images/clearpixel.gif" width="16" height="8"></td>
            </tr>
            <tr>
              <td width="16" rowspan="2"><img src="public_html/images/innerbottomleft.gif" width="16" height="16"></td>
              <td width="100%"><img src="public_html/images/clearpixel.gif" width="1" height="15"></td>
              <td width="16" rowspan="2"><img src="public_html/images/innerbottomright.gif" width="18" height="16"></td>
            </tr>
            <tr>
              <td width="1" bgcolor="#006D15" height="1"><img src="public_html/images/clearpixel.gif" width="1" height="1"></td>
            </tr>
          </table></td>
        <td bgcolor="#EBEBE3"><!-- #BeginEditable "EditRegion1" --><!-- #EndEditable --></td>
      </tr>
      <tr>
        <td height="5" colspan="3"><img src="public_html/images/clearpixel.gif" width="1" height="5"></td>
        <td bgcolor="#EBEBE3"><img src="public_html/images/clearpixel.gif" width="1" height="5"></td>
      </tr>
      <tr>
        <td height="20" bgcolor="#006D15"><img src="public_html/images/bottomleftcorner.gif" width="16" height="20"></td>
        <td colspan="3" bgcolor="#006D15"> </td>
        <td bgcolor="#006D15"><img src="public_html/images/bottomrightcorner.gif" width="16" height="20"></td>
      </tr>
    </table>
    </body>
    <!-- #EndTemplate --></html>
    TEMPLATE CODE:
    <html>
    <head>
    <!-- #BeginEditable "doctitle" -->
    <title>Untitled Document.</title>
    <!-- #EndEditable -->
    <LINK REL=STYLESHEET TYPE="text/css" HREF="../style.css">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    //-->
    </script>
    </head>
    <body bgcolor="#FFFFFF" text="#000000">
    <table width="0%" border="0" cellspacing="0" cellpadding="0">
      <!--DWLayoutTable-->
      <tr>
        <td width="128" rowspan="8" valign="top" bgcolor="#EBEBE3"> <table width="128" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td><img src="../images/menutop.gif" width="128" height="18"></td>
            </tr>
            <tr>
              <td><p><a href="../index.htm"><img name="Image35" border="0" src="../images/menu/home.gif" width="128" height="19"></a><br>
                  <a href="../services.htm"><img name="Image36" border="0" src="../images/menu/products.gif" width="128" height="19"></a><br>
                  <a href="../samples.htm"><img name="Image37" border="0" src="../images/menu/services.gif" width="128" height="19"></a><br>
                  <a href="../pricing.htm"><img name="Image38" border="0" src="../images/menu/aboutus.gif" width="128" height="19"></a><br>
                  <a href="../the_process.htm"><img name="Image39" border="0" src="../images/menu/company.gif" width="128" height="19"></a><br>
                  <a href="../testimonials.htm"><img name="Image40" border="0" src="../images/menu/links.gif" width="128" height="19"></a><br>
                  <a href="../faq.htm"><img name="Image41" border="0" src="../images/menu/guestbook.gif" width="128" height="19"></a><br>
                  <a href="../disclaimers.htm"><img name="Image42" border="0" src="../images/menu/photo.gif" width="128" height="19"></a><br>
                  <a href="../contact%20me.htm"></a><a href="../contact_me.htm"><img name="Image45" border="0" src="../images/menu/email.gif" width="128" height="19"></a>
                  <a href="../contact%20me.htm"></a><a href="../contact%20me.htm"></a></p></td>
            </tr>
            <tr>
              <td><a href="../specials.htm"><img src="../images/menubottom2.jpg" width="128" height="18" border="0"></a></td>
            </tr>
            <tr>
              <td> </td>
            </tr>
            <tr>
              <td align="center"><strong>Celebrate a milestone birthday or anniverary
                with a <u>DVD Photo Slideshow</u>. <a href="../slideshows2dvd.htm">Click
                here for more details.</a></strong></td>
            </tr>
            <tr>
              <td align="center"> <table width="96%" border="0" cellspacing="0" cellpadding="0" align="center">
                  <tr>
                    <td class="news"><br>
                      <a href="../audiotransfers.htm"><img src="../LPcassettes.jpg" width="180" height="152" border="0"></a>
                    </td>
                  </tr>
                </table></td>
            </tr>
          </table>
          <p align="center"><font size="+2">Donations!</font></p>
          <p align="center"> 5% of Memories2dvd's annual revenue will be donated equally
            between the <a href="http://www.cancer.ca/ccs/internet/cancer/0,,3172,00.html"><strong>Canadian
            Cancer Society</strong></a> and the <a href="http://junobeach.org/Centre/index.html"><strong>Juno
            Beach Memorial</strong></a></p>
          <p> </p></td>
        <td width="3" rowspan="7"><img src="../images/clearpixel.gif" width="3" height="1"></td>
        <td width="16" height="56" bgcolor="#6D9A50"><img src="../images/topleft.gif" width="16" height="56"></td>
        <td width="100%" valign="bottom" bgcolor="#6D9A50"><img src="../name.gif" width="360" height="50"></td>
        <td width="16"><img src="../images/topright.gif" width="16" height="56"></td>
      </tr>
      <tr>
        <td colspan="3" height="2"><img src="../images/clearpixel.gif" width="1" height="2"></td>
      </tr>
      <tr>
        <td height="6" colspan="3" bgcolor="#006D15"><img src="../images/clearpixel.gif" width="1" height="6"></td>
      </tr>
      <tr>
        <td colspan="3" height="2"><img src="../images/clearpixel.gif" width="1" height="2"></td>
      </tr>
      <tr>
        <td height="21" bgcolor="#EBEBE3"><img src="../images/lightleft.gif" width="16" height="21"></td>
        <td align="right" bgcolor="#EBEBE3"><div align="left"><strong><a href="mailto:[email protected]">CONTACT
            INFORMATION: Phone: 613-831-9365___ E-MAIL</a> | <a href="../about_me.htm">About
            Me</a></strong> </div></td>
        <td bgcolor="#EBEBE3"> </td>
      </tr>
      <tr>
        <td height="11"><img src="../images/clearpixel.gif" width="1" height="11"></td>
        <td align="right" valign="top"><img src="../images/lightcorner.gif" width="10" height="11"></td>
        <td bgcolor="#EBEBE3"><img src="../images/clearpixel.gif" width="1" height="11"></td>
      </tr>
      <tr>
        <td height="650" colspan="2"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="16" rowspan="2"><img src="../images/innertopleft.gif" width="16" height="16"></td>
              <td bgcolor="#006D15" height="1"><img src="../images/clearpixel.gif" width="1" height="1"></td>
              <td width="16" rowspan="2"><img src="../images/innertopright.gif" width="18" height="16"></td>
            </tr>
            <tr>
              <td width="100%"><img src="../images/clearpixel.gif" width="1" height="15"></td>
            </tr>
            <tr>
              <td background="../images/leftbg.gif"><img src="../images/clearpixel.gif" width="16" height="8"></td>
              <td width="100%" valign="top"> <div align="center">
                  <table width="100%" border="0" cellspacing="2" cellpadding="2">
                    <!--DWLayoutTable-->
                    <!-- #BeginEditable "Body" -->
                    <tr>
                      <td width="329" height="189" valign="top"><p><img src="../pg%20t%20instrucnl.jpg" width="300" height="27"></p>
                        <p align="left">From teachers to health care professionals
                          to corporate trainers, I can help you create a compelling
                          instructional video. Using techniques such as Picture in
                          Picture will deliver your educational knowledge with extra
                          value. The ease of navigation of DVD makes instruction more
                          efficient and effective.</p></td>
                      <td width="4" valign="top"><img src="images/hr.gif" width="1" height="125"> </td>
                      <td colspan="2" valign="top"><p><img src="../pg%20t%20blank.jpg" width="204" height="27
      "></p>
                        <p>Follow these links to read about other services:</p>
                        <div align="left">
                          <ul>
                            <li><a href="../homedvds.htm">classic home videos</a></li>
                            <li> <a href="../weddings2dvd.htm">weddings2dvd</a></li>
                            <li> <a href="../sports2dvd.htm">sports2dvd</a></li>
                            <li> <a href="../slideshows2dvd.htm">DVD photo slideshows</a></li>
                            <li> <a href="../reunions2dvd.htm">reunions2dvd</a></li>
                            <li> <a href="instructionaldvds.htm">instructional DVD</a></li>
                          </ul>
                        </div></td>
                    </tr>
                    <tr>
                      <td height="3
      50" colspan="3" valign="top"><p align="center"><img src="../images/hr.gif" width="361" height="1"></p>
                        <p align="left">  </p>
                        <p align="left">Please click <a href="../sample.htm"><strong>here</strong></a>
                          to view real samples from recent projects.<br>
                        </p></td>
                      <td width="2" valign="top"><!--DWLayoutEmptyCell--> </td>
                    </tr>
                    <!-- #EndEditable -->
                    <tr valign="top">
                      <td height="88" colspan="4" align="center" class="menu"> <p><img src="../images/hr.gif" width="361" height="1"></p>
                        <p class="menu" ><a href="../index.htm"><strong>home</strong></a><strong>
                          | <a href="../services.htm">services</a> | <a href="../sample.htm">samples</a>
                          | <a href="../pricing.htm">pricing</a> | <a href="../testimonials.htm">testimonials</a>
                          | <a href="../the_process.htm">the process</a><br>
                          <a href="../faq.htm"> f.a.q.</a> | <a href="../disclaimers.htm">disclaimers</a>
                          | <a href="../contact_me.htm">contact me</a> | <a href="../about_me.htm">about
                          me</a></strong></p>
                        <p class="menu" >Copyright Memories2dvd<a href="http://www.ibswebdesign.com/" target="_blank"></a>
                          2003 - 2009 All Rights Reserved</p></td>
                    </tr>
                    <tr>
                      <td height="5"></td>
                      <td></td>
                      <td width="211"></td>
                      <td></td>
                    </tr>
                  </table>
                </div></td>
              <td width="23" background="../images/rightbg.gif<img src="../images/clearpixel.gif" width="16" height="8"></td>
            </tr>
            <tr>
              <td width="16" rowspan="2"><img src="../images/innerbottomleft.gif" width="16" height="16"></td>
              <td width="100%"><img src="../images/clearpixel.gif" width="1" height="15"></td>
              <td width="16" rowspan="2"><img src="../images/innerbottomright.gif" width="18" height="16"></td>
            </tr>
            <tr>
              <td width="1" bgcolor="#006D15" height="1"><img src="../images/clearpixel.gif" width="1" height="1"></td>
            </tr>
          </table></td>
        <td bgcolor="#EBEBE3"><!-- TemplateBeginEditable name="EditRegion1" --><!-- TemplateEndEditable --></td>
      </tr>
      <tr>
        <td height="5" colspan="3"><img src="../images/clearpixel.gif" width="1" height="5"></td>
        <td bgcolor="#EBEBE3"><img src="../images/clearpixel.gif" width="1" height="5"></td>
      </tr>
      <tr>
        <td height="20" bgcolor="#006D15"><img src="../images/bottomleftcorner.gif" width="16" height="20"></td>
        <td colspan="3" bgcolor="#006D15"> </td>
        <td bgcolor="#006D15"><img src="../images/bottomrightcorner.gif" width="16" height="20"></td>
      </tr>
    </table>
    </body>
    </html>

  • What are the best Layout Managers to use in these cases?

    (1) I have a form with labels at text fields. Right now, there are three lables and three text fields. There is a good chance (90%) that I will need to add additional fields and labels, so it needs to be expandable. Now, all of these features reside on a JPanel which resides as a tab in a JTabbedPane which resides in a JFrame. Regardless of the size of the JFrame, the contents of the JPanel should be their default sizes. Also - if anyone says SpringLayout, no - I use the code for the SpringForm from the Java tutorial, and I always get exceptions related to arrays (out of bounds, IIRC - I don't have the code on this PC).
    (2) I have another form (of sorts) that, right now, includes only one row of three components (a label, a text field, and a button). However, There's a 99% chance I'll be adding other things to this menu. What's a good layout manager that will help me keep everything their default sizes as well as add more "rows" of components that might have different numbers of components in them?

    If you really want advice then you need to learn how to specify requirements.
    1) "I have a form with labels at text fields. Right now, there are three lables and three text fields."
    and how do you want the component layed out????
    a) do you want all the fields on a single line, in which case you would use a FlowLayout or a horizontal BoxLayout.
    b) do you want all the fields on separate lines, in which case you could use a vertical BoxLayout
    c) do you want pairs of label and text fields on a single line? If so, then do you want each lable and text field in a column? If so then do you want the labels left or right justified, or centered? You have many options depending on your requirements:
    - use a GridBagLayout.
    - use a GridLayout. Each cell will be the same size but you can add your components to a JPanel first and then add the panel to the GridLayout. In this case the panel will be resized, but the component will retain its original size.
    - use a BorderLayout.. The West will contain a panel of your labels in a GridLayout. The East will be the text fields in a GridLayout.
    - figure out how to use the SpringLayout correctly. The demo doesn't cause errors, so its obviously your code that is causing the problem. Do some debugging to fix your problem.
    - write your own LayoutManager. I wrote one which I called ColumnLayout, which I posted in the forum somewhere. It is like the GridLayout excepct each column is the widht of the widest component in the column and each row is the height of the talles component in the row.
    2) Learn to mix and match LayoutManagers.
    includes only one row of three componentsSounds like a FlowLayout
    as well as add more "rows" of components that might have different numbers of components in them? Sounds like another FlowLayout.
    Each row would then be added to a main panel using a vertical BoxLayout.
    The point is you are not restricted to a single LayoutManager for a form. Mix and match to get the effect you desire.

  • Java newbie help (type casting, 64bit unsigned Long)

    Hi I am java newbie and need help on my project. I have a few questions. Can you put strings in a hashtable and test for their being their with the appropriate hashtable method? I want to test for equal strings, not the same object. Second question can you use all 64 bits of an unsigned long? java doesn't seem to allow this. Any packages that do?
    Thanks,
    Dave

    Try casting it to Long instead of long. Long (capital L) is an Object, while long (lower case l) is not. You may also check to make sure the value isn't null. I would have thought that autoboxing would have worked here unless the value was null. But I am no expert on autoboxing.
    Edit >> Checking for null ain't a bad idea but has nothing to do with the problem - this is a compile time problem. Sorry.
    Also>> This code should work:
    long cTime=(Long)session.getAttribute("creationtime");Edited by: stevejluke on Jul 1, 2008 11:00 AM

Maybe you are looking for