Example usage for com.jgoodies.forms.layout FormLayout FormLayout

List of usage examples for com.jgoodies.forms.layout FormLayout FormLayout

Introduction

In this page you can find the example usage for com.jgoodies.forms.layout FormLayout FormLayout.

Prototype

public FormLayout(ColumnSpec[] colSpecs, RowSpec[] rowSpecs) 

Source Link

Document

Constructs a FormLayout using the given column and row specifications.

Usage

From source file:com.main.KeralaPage.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Evaluation license - Anjali Shinde
    panel1 = new JPanel();
    label1 = new JLabel();
    panel5 = new JPanel();
    panel6 = new JPanel();
    label10 = new JLabel();
    label11 = new JLabel();
    label12 = new JLabel();
    panel9 = new JPanel();
    label22 = new JLabel();
    label23 = new JLabel();
    label24 = new JLabel();
    label25 = new JLabel();
    label21 = new JLabel();
    label16 = new JLabel();
    scrollPane1 = new JScrollPane();
    editorPane1 = new JEditorPane();
    scrollPane6 = new JScrollPane();
    editorPane6 = new JEditorPane();
    scrollPane11 = new JScrollPane();
    editorPane11 = new JEditorPane();
    scrollPane16 = new JScrollPane();
    editorPane16 = new JEditorPane();
    scrollPane21 = new JScrollPane();
    editorPane21 = new JEditorPane();
    label17 = new JLabel();
    scrollPane2 = new JScrollPane();
    editorPane2 = new JEditorPane();
    scrollPane7 = new JScrollPane();
    editorPane7 = new JEditorPane();
    scrollPane12 = new JScrollPane();
    editorPane12 = new JEditorPane();
    scrollPane17 = new JScrollPane();
    editorPane17 = new JEditorPane();
    scrollPane22 = new JScrollPane();
    editorPane22 = new JEditorPane();
    label18 = new JLabel();
    scrollPane3 = new JScrollPane();
    editorPane3 = new JEditorPane();
    scrollPane8 = new JScrollPane();
    editorPane8 = new JEditorPane();
    scrollPane13 = new JScrollPane();
    editorPane13 = new JEditorPane();
    scrollPane18 = new JScrollPane();
    editorPane18 = new JEditorPane();
    scrollPane23 = new JScrollPane();
    editorPane23 = new JEditorPane();
    label19 = new JLabel();
    scrollPane4 = new JScrollPane();
    editorPane4 = new JEditorPane();
    scrollPane9 = new JScrollPane();
    editorPane9 = new JEditorPane();
    scrollPane14 = new JScrollPane();
    editorPane14 = new JEditorPane();
    scrollPane19 = new JScrollPane();
    editorPane19 = new JEditorPane();
    scrollPane24 = new JScrollPane();
    editorPane24 = new JEditorPane();
    label20 = new JLabel();
    scrollPane5 = new JScrollPane();
    editorPane5 = new JEditorPane();
    scrollPane10 = new JScrollPane();
    editorPane10 = new JEditorPane();
    scrollPane15 = new JScrollPane();
    editorPane15 = new JEditorPane();
    scrollPane20 = new JScrollPane();
    editorPane20 = new JEditorPane();
    scrollPane25 = new JScrollPane();
    editorPane25 = new JEditorPane();
    panel7 = new JPanel();
    label13 = new JLabel();
    label14 = new JLabel();
    label15 = new JLabel();
    panel8 = new JPanel();
    button1 = new JButton();

    //======== this ========

    // JFormDesigner evaluation mark
    setBorder(//from w w w  . ja v  a2s.  co m
            new javax.swing.border.CompoundBorder(
                    new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0),
                            "JFormDesigner Evaluation", javax.swing.border.TitledBorder.CENTER,
                            javax.swing.border.TitledBorder.BOTTOM,
                            new java.awt.Font("Dialog", java.awt.Font.BOLD, 12), java.awt.Color.red),
                    getBorder()));
    addPropertyChangeListener(new java.beans.PropertyChangeListener() {
        public void propertyChange(java.beans.PropertyChangeEvent e) {
            if ("border".equals(e.getPropertyName()))
                throw new RuntimeException();
        }
    });

    setLayout(new FormLayout("default:grow", "2*(default, $lgap), default"));

    //======== panel1 ========
    {
        panel1.setLayout(new FormLayout("default:grow", "pref"));

        //---- label1 ----
        label1.setText("Kerala Tourism");
        label1.setFont(new Font("Tahoma", Font.BOLD, 24));
        panel1.add(label1, CC.xy(1, 1, CC.CENTER, CC.CENTER));
    }
    add(panel1, CC.xy(1, 1));

    //======== panel5 ========
    {
        panel5.setLayout(new FormLayout("2*(default, $lcgap), default", "default"));

        //======== panel6 ========
        {
            panel6.setLayout(new FormLayout("default:grow", "2*(default, $lgap), default"));

            //---- label10 ----
            label10.setIcon(new ImageIcon(getClass().getResource("/com/images/kerala/ker2.jpg")));
            panel6.add(label10, CC.xy(1, 1));

            //---- label11 ----
            label11.setIcon(new ImageIcon(getClass().getResource("/com/images/kerala/ker1.jpg")));
            panel6.add(label11, CC.xy(1, 3));

            //---- label12 ----
            label12.setIcon(new ImageIcon(getClass().getResource("/com/images/kerala/ker3.jpg")));
            panel6.add(label12, CC.xy(1, 5));
        }
        panel5.add(panel6, CC.xy(1, 1));

        //======== panel9 ========
        {
            panel9.setBorder(LineBorder.createBlackLineBorder());
            panel9.setLayout(new FormLayout("5*(default:grow, $lcgap), 57dlu:grow",
                    "5*(fill:default:grow, $lgap), fill:default:grow"));

            //---- label22 ----
            label22.setText("Kochi(Cochin)");
            panel9.add(label22, CC.xy(3, 1));

            //---- label23 ----
            label23.setText("Trivandrum");
            panel9.add(label23, CC.xy(5, 1));

            //---- label24 ----
            label24.setText("Munnar");
            panel9.add(label24, CC.xy(7, 1));

            //---- label25 ----
            label25.setText("Thrissur");
            panel9.add(label25, CC.xy(9, 1));

            //---- label21 ----
            label21.setText("Alappuzha");
            panel9.add(label21, CC.xy(11, 1));

            //---- label16 ----
            label16.setText("PLACES TO VISIT");
            panel9.add(label16, CC.xy(1, 3));

            //======== scrollPane1 ========
            {

                //---- editorPane1 ----
                editorPane1.setEditable(false);
                editorPane1.setText(
                        "Wonderla Amusement Park,Folklore Theatre & Museum,Kerala Backwaters,Fort Kochi,Mattancherry,Santa Cruz Basilica,Jew Town,Princess Street,Cherai Beach");
                scrollPane1.setViewportView(editorPane1);
            }
            panel9.add(scrollPane1, CC.xy(3, 3));

            //======== scrollPane6 ========
            {

                //---- editorPane6 ----
                editorPane6.setEditable(false);
                editorPane6.setText(
                        "Poonar Island,Shri Padmanabhaswamy Temple,Museum Complex,Thiruvanthapuram Zoo,Napier Art Museum & gallery,Vizhinjam Lighthouse,Samudra Beach");
                scrollPane6.setViewportView(editorPane6);
            }
            panel9.add(scrollPane6, CC.xy(5, 3));

            //======== scrollPane11 ========
            {

                //---- editorPane11 ----
                editorPane11.setEditable(false);
                editorPane11.setText(
                        "Tea Gardens,Fun Forest Adventure Park,Top Station,CSI Christ Church,Attukal Waterfals,Anamudi Peak,Mattupetty Dam,Rajamalai National Park,Lakkam Waterfalls");
                scrollPane11.setViewportView(editorPane11);
            }
            panel9.add(scrollPane11, CC.xy(7, 3));

            //======== scrollPane16 ========
            {

                //---- editorPane16 ----
                editorPane16.setEditable(false);
                editorPane16.setText(
                        "Athirampally Waterfalls,Vadakkunnathan Temple,Kauthuka Park,Koodalmanikyam temple,Poomala Dam,Vilagan Hills");
                scrollPane16.setViewportView(editorPane16);
            }
            panel9.add(scrollPane16, CC.xy(9, 3));

            //======== scrollPane21 ========
            {

                //---- editorPane21 ----
                editorPane21.setEditable(false);
                editorPane21.setText(
                        "Kerala Backwaters,Marari Beach,St.Mary's Forane Church,Secretbeach,Revi Karunakaran museum,Alappuzha Beach,Edathua Church");
                scrollPane21.setViewportView(editorPane21);
            }
            panel9.add(scrollPane21, CC.xy(11, 3));

            //---- label17 ----
            label17.setText("HOTELS");
            panel9.add(label17, CC.xy(1, 5));

            //======== scrollPane2 ========
            {

                //---- editorPane2 ----
                editorPane2.setEditable(false);
                editorPane2.setText(
                        "Old Harbour Hotel,Sajhome,Vivanta By Taj,Green Woods,Ann's Residency,Le Colonial,Hotel Arches,Brunton Boatyard,Fort House");
                scrollPane2.setViewportView(editorPane2);
            }
            panel9.add(scrollPane2, CC.xy(3, 5));

            //======== scrollPane7 ========
            {

                //---- editorPane7 ----
                editorPane7.setEditable(false);
                editorPane7.setText(
                        "Amrutham,Vivanta by Taj,Coconut Bay Beach Resort,Windsor Rajadhani,SP Grand Days,Sea Shore");
                scrollPane7.setViewportView(editorPane7);
            }
            panel9.add(scrollPane7, CC.xy(5, 5));

            //======== scrollPane12 ========
            {

                //---- editorPane12 ----
                editorPane12.setEditable(false);
                editorPane12.setText(
                        "Grand Plaza,camp Noel,Aranyaka Resort,Elysium Garden Hill Resorts,Windermere Estate,The Tall Trees");
                scrollPane12.setViewportView(editorPane12);
            }
            panel9.add(scrollPane12, CC.xy(7, 5));

            //======== scrollPane17 ========
            {

                //---- editorPane17 ----
                editorPane17.setEditable(false);
                editorPane17.setText(
                        "Nattika Beach Resort,niya regency,River Retreat,Joys Palace,Ashoka Inn,Ayuryogashram,Hotel Peninsula");
                scrollPane17.setViewportView(editorPane17);
            }
            panel9.add(scrollPane17, CC.xy(9, 5));

            //======== scrollPane22 ========
            {

                //---- editorPane22 ----
                editorPane22.setEditable(false);
                editorPane22.setText(
                        "Motty's Homestay,Citrus Retreats Alleppey,Ashtamudi homestay,Punnamada Resort,Pooppallys Heritage Home,Casamaria beach Resort");
                scrollPane22.setViewportView(editorPane22);
            }
            panel9.add(scrollPane22, CC.xy(11, 5));

            //---- label18 ----
            label18.setText("RESTAURANT");
            panel9.add(label18, CC.xy(1, 7));

            //======== scrollPane3 ========
            {

                //---- editorPane3 ----
                editorPane3.setEditable(false);
                editorPane3.setText(
                        "Kashi,Oceanos Restaurant,Krishna Caf\u00e9,Tokyo Bay,Solar Caf\u00e9,Fort house Restaurant");
                scrollPane3.setViewportView(editorPane3);
            }
            panel9.add(scrollPane3, CC.xy(3, 7));

            //======== scrollPane8 ========
            {

                //---- editorPane8 ----
                editorPane8.setEditable(false);
                editorPane8.setText(
                        "Cherries & Berries,Bait,Villa maya,Arul Jyothi,Jasmin Bay,Third Rock Caf\u00e9,Indian Coffee House,Zam Zam");
                scrollPane8.setViewportView(editorPane8);
            }
            panel9.add(scrollPane8, CC.xy(5, 7));

            //======== scrollPane13 ========
            {
                scrollPane13.setEnabled(false);

                //---- editorPane13 ----
                editorPane13.setEditable(false);
                editorPane13.setText(
                        "Saravana Bhavan,Mayabazar,Copper castle restaurant,Rapsy Restaurant,Sarath Inn,Farmyard,Galaxy Reataurant");
                scrollPane13.setViewportView(editorPane13);
            }
            panel9.add(scrollPane13, CC.xy(7, 7));

            //======== scrollPane18 ========
            {

                //---- editorPane18 ----
                editorPane18.setEditable(false);
                editorPane18.setText(
                        "Hotel Bharat,Indian Wok,Annalakshmi,Reach Us Hotels,Copper Spoon,Pathans,Joy Palace");
                scrollPane18.setViewportView(editorPane18);
            }
            panel9.add(scrollPane18, CC.xy(9, 7));

            //======== scrollPane23 ========
            {

                //---- editorPane23 ----
                editorPane23.setEditable(false);
                editorPane23.setText(
                        "Dreamers Cafe and Restaurant,Thaff,Indian Coffee House,Kream Korner,Hot Dishes,Royel Park Hotel,Chakara Restaurant");
                scrollPane23.setViewportView(editorPane23);
            }
            panel9.add(scrollPane23, CC.xy(11, 7));

            //---- label19 ----
            label19.setText("CLIMATE");
            panel9.add(label19, CC.xy(1, 9));

            //======== scrollPane4 ========
            {

                //---- editorPane4 ----
                editorPane4.setEditable(false);
                editorPane4.setText("Hot and Humid");
                scrollPane4.setViewportView(editorPane4);
            }
            panel9.add(scrollPane4, CC.xy(3, 9));

            //======== scrollPane9 ========
            {

                //---- editorPane9 ----
                editorPane9.setEditable(false);
                editorPane9.setText("Hot and Humid");
                scrollPane9.setViewportView(editorPane9);
            }
            panel9.add(scrollPane9, CC.xy(5, 9));

            //======== scrollPane14 ========
            {

                //---- editorPane14 ----
                editorPane14.setEditable(false);
                editorPane14.setText("Cold");
                scrollPane14.setViewportView(editorPane14);
            }
            panel9.add(scrollPane14, CC.xy(7, 9));

            //======== scrollPane19 ========
            {

                //---- editorPane19 ----
                editorPane19.setEditable(false);
                editorPane19.setText("Cold");
                scrollPane19.setViewportView(editorPane19);
            }
            panel9.add(scrollPane19, CC.xy(9, 9));

            //======== scrollPane24 ========
            {

                //---- editorPane24 ----
                editorPane24.setEditable(false);
                editorPane24.setText("Hot");
                scrollPane24.setViewportView(editorPane24);
            }
            panel9.add(scrollPane24, CC.xy(11, 9));

            //---- label20 ----
            label20.setText("SPECIALITY");
            panel9.add(label20, CC.xy(1, 11));

            //======== scrollPane5 ========
            {

                //---- editorPane5 ----
                editorPane5.setEditable(false);
                editorPane5.setText("Ship Building");
                scrollPane5.setViewportView(editorPane5);
            }
            panel9.add(scrollPane5, CC.xy(3, 11));

            //======== scrollPane10 ========
            {

                //---- editorPane10 ----
                editorPane10.setEditable(false);
                editorPane10.setText("Temples, Beaches");
                scrollPane10.setViewportView(editorPane10);
            }
            panel9.add(scrollPane10, CC.xy(5, 11));

            //======== scrollPane15 ========
            {

                //---- editorPane15 ----
                editorPane15.setEditable(false);
                editorPane15.setText("Tea Gardens");
                scrollPane15.setViewportView(editorPane15);
            }
            panel9.add(scrollPane15, CC.xy(7, 11));

            //======== scrollPane20 ========
            {

                //---- editorPane20 ----
                editorPane20.setEditable(false);
                editorPane20.setText("Elephant Rides, Spice Garden");
                scrollPane20.setViewportView(editorPane20);
            }
            panel9.add(scrollPane20, CC.xy(9, 11));

            //======== scrollPane25 ========
            {

                //---- editorPane25 ----
                editorPane25.setEditable(false);
                editorPane25.setText("Fish,Houseboats,Backwaters");
                scrollPane25.setViewportView(editorPane25);
            }
            panel9.add(scrollPane25, CC.xy(11, 11));
        }
        panel5.add(panel9, CC.xy(3, 1, CC.CENTER, CC.CENTER));

        //======== panel7 ========
        {
            panel7.setLayout(new FormLayout("default:grow", "2*(default, $lgap), default"));

            //---- label13 ----
            label13.setIcon(new ImageIcon(getClass().getResource("/com/images/kerala/ker4.jpg")));
            panel7.add(label13, CC.xy(1, 1));

            //---- label14 ----
            label14.setIcon(new ImageIcon(getClass().getResource("/com/images/kerala/ker5.jpg")));
            panel7.add(label14, CC.xy(1, 3));

            //---- label15 ----
            label15.setIcon(new ImageIcon(getClass().getResource("/com/images/kerala/kermap.jpg")));
            panel7.add(label15, CC.xy(1, 5));
        }
        panel5.add(panel7, CC.xy(5, 1));
    }
    add(panel5, CC.xy(1, 3));

    //======== panel8 ========
    {
        panel8.setLayout(new FormLayout("default, $lcgap, default", "default"));

        //---- button1 ----
        button1.setText("Go Back To Main Menu");
        panel8.add(button1, CC.xy(3, 1));
    }
    add(panel8, CC.xy(1, 5));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents

    button1.addActionListener(new ActionListener() {

        @Override
        public void actionPerformed(ActionEvent arg0) {
            MainPageView page = new MainPageView();
            page.createAndShowGUI();
        }
    });
}

From source file:com.main.MaharashtraView.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Evaluation license - Anjali Shinde
    panel1 = new JPanel();
    label1 = new JLabel();
    panel2 = new JPanel();
    panel3 = new JPanel();
    label2 = new JLabel();
    label3 = new JLabel();
    label4 = new JLabel();
    panel5 = new JPanel();
    label13 = new JLabel();
    label14 = new JLabel();
    label15 = new JLabel();
    label16 = new JLabel();
    label17 = new JLabel();
    label8 = new JLabel();
    scrollPane1 = new JScrollPane();
    editorPane1 = new JEditorPane();
    scrollPane6 = new JScrollPane();
    editorPane6 = new JEditorPane();
    scrollPane11 = new JScrollPane();
    editorPane11 = new JEditorPane();
    scrollPane16 = new JScrollPane();
    editorPane16 = new JEditorPane();
    scrollPane21 = new JScrollPane();
    editorPane21 = new JEditorPane();
    label9 = new JLabel();
    scrollPane2 = new JScrollPane();
    editorPane2 = new JEditorPane();
    scrollPane7 = new JScrollPane();
    editorPane7 = new JEditorPane();
    scrollPane12 = new JScrollPane();
    editorPane12 = new JEditorPane();
    scrollPane17 = new JScrollPane();
    editorPane17 = new JEditorPane();
    scrollPane22 = new JScrollPane();
    editorPane22 = new JEditorPane();
    label10 = new JLabel();
    scrollPane3 = new JScrollPane();
    editorPane3 = new JEditorPane();
    scrollPane8 = new JScrollPane();
    editorPane8 = new JEditorPane();
    scrollPane13 = new JScrollPane();
    editorPane13 = new JEditorPane();
    scrollPane18 = new JScrollPane();
    editorPane18 = new JEditorPane();
    scrollPane23 = new JScrollPane();
    editorPane23 = new JEditorPane();
    label11 = new JLabel();
    scrollPane4 = new JScrollPane();
    editorPane4 = new JEditorPane();
    scrollPane9 = new JScrollPane();
    editorPane9 = new JEditorPane();
    scrollPane14 = new JScrollPane();
    editorPane14 = new JEditorPane();
    scrollPane19 = new JScrollPane();
    editorPane19 = new JEditorPane();
    scrollPane24 = new JScrollPane();
    editorPane24 = new JEditorPane();
    label12 = new JLabel();
    scrollPane5 = new JScrollPane();
    editorPane5 = new JEditorPane();
    scrollPane10 = new JScrollPane();
    editorPane10 = new JEditorPane();
    scrollPane15 = new JScrollPane();
    editorPane15 = new JEditorPane();
    scrollPane20 = new JScrollPane();
    editorPane20 = new JEditorPane();
    scrollPane25 = new JScrollPane();
    editorPane25 = new JEditorPane();
    panel4 = new JPanel();
    label5 = new JLabel();
    label6 = new JLabel();
    label7 = new JLabel();
    panel6 = new JPanel();
    button1 = new JButton();

    //======== this ========

    // JFormDesigner evaluation mark
    setBorder(/* ww w . jav a 2 s . co m*/
            new javax.swing.border.CompoundBorder(
                    new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0),
                            "JFormDesigner Evaluation", javax.swing.border.TitledBorder.CENTER,
                            javax.swing.border.TitledBorder.BOTTOM,
                            new java.awt.Font("Dialog", java.awt.Font.BOLD, 12), java.awt.Color.red),
                    getBorder()));
    addPropertyChangeListener(new java.beans.PropertyChangeListener() {
        public void propertyChange(java.beans.PropertyChangeEvent e) {
            if ("border".equals(e.getPropertyName()))
                throw new RuntimeException();
        }
    });

    setLayout(new FormLayout("default:grow", "2*(default), $lgap, default"));

    //======== panel1 ========
    {
        panel1.setLayout(new FormLayout("default:grow", "default"));

        //---- label1 ----
        label1.setText("Maharashtra Tourism");
        label1.setFont(new Font("Tahoma", Font.BOLD, 24));
        panel1.add(label1, CC.xy(1, 1, CC.CENTER, CC.CENTER));
    }
    add(panel1, CC.xy(1, 1));

    //======== panel2 ========
    {
        panel2.setLayout(new FormLayout("2*(default, $lcgap), default", "default"));

        //======== panel3 ========
        {
            panel3.setLayout(new FormLayout("default", "2*(default, $lgap), default"));

            //---- label2 ----
            label2.setIcon(new ImageIcon(getClass().getResource("/com/images/maharashtra/maha1.jpg")));
            panel3.add(label2, CC.xy(1, 1));

            //---- label3 ----
            label3.setIcon(new ImageIcon(getClass().getResource("/com/images/maharashtra/maha2.jpg")));
            panel3.add(label3, CC.xy(1, 3));

            //---- label4 ----
            label4.setIcon(new ImageIcon(getClass().getResource("/com/images/maharashtra/maha3.jpg")));
            panel3.add(label4, CC.xy(1, 5));
        }
        panel2.add(panel3, CC.xy(1, 1));

        //======== panel5 ========
        {
            panel5.setBorder(LineBorder.createBlackLineBorder());
            panel5.setLayout(new FormLayout("5*(default:grow, $lcgap), default:grow",
                    "default, 5*($lgap, fill:default:grow)"));

            //---- label13 ----
            label13.setText("Pune");
            panel5.add(label13, CC.xy(3, 1));

            //---- label14 ----
            label14.setText("Aurangabad");
            panel5.add(label14, CC.xy(5, 1));

            //---- label15 ----
            label15.setText("Mumbai");
            panel5.add(label15, CC.xy(7, 1));

            //---- label16 ----
            label16.setText("Shirdi");
            panel5.add(label16, CC.xy(9, 1));

            //---- label17 ----
            label17.setText("Mahabaleshwar");
            panel5.add(label17, CC.xy(11, 1));

            //---- label8 ----
            label8.setText("PLACES TO VISIT");
            panel5.add(label8, CC.xy(1, 3));

            //======== scrollPane1 ========
            {

                //---- editorPane1 ----
                editorPane1.setEditable(false);
                editorPane1.setText(
                        "Shreemant Dagdusheth Halwai,Sri Balaji mandir,Darshan Museum,Sinhagad Fort,Chaturshrungi Temple,Bhimashankar temple,Panshet Dam,Malshej ghats,Jain Temple,Aga Khan Palace,Rajiv Gandhi Zoological Park");
                scrollPane1.setViewportView(editorPane1);
            }
            panel5.add(scrollPane1, CC.xy(3, 3));

            //======== scrollPane6 ========
            {

                //---- editorPane6 ----
                editorPane6.setEditable(false);
                editorPane6.setText(
                        "Ajanta & Ellora Caves,Daulatabad Fort,Bibi Ka Maqbara,Bhadra Maruti,Aurangabad Caves,Chand Minar,Chini Mahal");
                scrollPane6.setViewportView(editorPane6);
            }
            panel5.add(scrollPane6, CC.xy(5, 3));

            //======== scrollPane11 ========
            {

                //---- editorPane11 ----
                editorPane11.setEditable(false);
                editorPane11.setText(
                        "Shree Siddhivinayak,Bandra-Worli Sea Link,Mount Mary Church,Mahalakshmi Temple,Marine Drive,Kanheri Caves,Gateway of India,Colaba Causeway");
                scrollPane11.setViewportView(editorPane11);
            }
            panel5.add(scrollPane11, CC.xy(7, 3));

            //======== scrollPane16 ========
            {

                //---- editorPane16 ----
                editorPane16.setEditable(false);
                editorPane16.setText(
                        "Baba's Chavadi,Shri Saibaba Sansthan Temple,Dixit Wada Museum,Wet N Joy Water Park,Khandoba Mandir,Sri Sai Baba Samadi Mandir");
                scrollPane16.setViewportView(editorPane16);
            }
            panel5.add(scrollPane16, CC.xy(9, 3));

            //======== scrollPane21 ========
            {

                //---- editorPane21 ----
                editorPane21.setEditable(false);
                editorPane21.setText(
                        "Connaught Peak,Hill Station,Mahabaleshwar Temple,Mapro Garden,Venna Lake,Elphinstone Point,On Wheelz,Arthur's Seat,Krishnabai Temple");
                scrollPane21.setViewportView(editorPane21);
            }
            panel5.add(scrollPane21, CC.xy(11, 3));

            //---- label9 ----
            label9.setText("HOTELS");
            panel5.add(label9, CC.xy(1, 5));

            //======== scrollPane2 ========
            {

                //---- editorPane2 ----
                editorPane2.setEditable(false);
                editorPane2.setText(
                        "Oakwood Premier,The Western Pune Koregaon Park,Sayaji Hotel,Royal Orchid Central,Ista Hotel,Lemon Tree Hotel");
                scrollPane2.setViewportView(editorPane2);
            }
            panel5.add(scrollPane2, CC.xy(3, 5));

            //======== scrollPane7 ========
            {

                //---- editorPane7 ----
                editorPane7.setEditable(false);
                editorPane7.setText(
                        "Lemon Tree Hotel,Taj Residency,Keys Hotel the Aures,WelcomHotel Rama International,Hotel Oberoi,Hotel Panchavati");
                scrollPane7.setViewportView(editorPane7);
            }
            panel5.add(scrollPane7, CC.xy(5, 5));

            //======== scrollPane12 ========
            {

                //---- editorPane12 ----
                editorPane12.setEditable(false);
                editorPane12.setText(
                        "The Oberoi,The Taj Mahal Palace,Taj Lands End,ITC Maratha,The Leela,The Waterstones Hotel");
                scrollPane12.setViewportView(editorPane12);
            }
            panel5.add(scrollPane12, CC.xy(7, 5));

            //======== scrollPane17 ========
            {

                //---- editorPane17 ----
                editorPane17.setEditable(false);
                editorPane17.setText(
                        "Marigold Regency,Shradha Saburi Palace,Matrix Inn Shridi,Sai Sanjivani Hotel,Hotel Bhagyalaxmi,Hotel Kalpataru");
                scrollPane17.setViewportView(editorPane17);
            }
            panel5.add(scrollPane17, CC.xy(9, 5));

            //======== scrollPane22 ========
            {

                //---- editorPane22 ----
                editorPane22.setEditable(false);
                editorPane22.setText(
                        "Saj Resort,Hotel Shreyas,Saket Plaza,Ramsukh Resorts & Spa,Hotel Dreamland,Hotel Mayfair,Hotel Gautam,White House");
                scrollPane22.setViewportView(editorPane22);
            }
            panel5.add(scrollPane22, CC.xy(11, 5));

            //---- label10 ----
            label10.setText("RESTAURANT");
            panel5.add(label10, CC.xy(1, 7));

            //======== scrollPane3 ========
            {

                //---- editorPane3 ----
                editorPane3.setEditable(false);
                editorPane3.setText(
                        "Zaffran,Barbeque Nation,Kalyani Bakery,ABC Farms,Bohemian,Spice Kitchen,Burger King,Copa Cabana,Ramkrishna");
                scrollPane3.setViewportView(editorPane3);
            }
            panel5.add(scrollPane3, CC.xy(3, 7));

            //======== scrollPane8 ========
            {

                //---- editorPane8 ----
                editorPane8.setEditable(false);
                editorPane8.setText(
                        "Kream m Krunch,Madhuban Garden Restaurant,Naivedya,Hotel Kailash,Bhoj,Indiana,Swad,Flame & Grill,Citrus Caf\u00e9");
                scrollPane8.setViewportView(editorPane8);
            }
            panel5.add(scrollPane8, CC.xy(5, 7));

            //======== scrollPane13 ========
            {

                //---- editorPane13 ----
                editorPane13.setEditable(false);
                editorPane13.setText(
                        "Seasonal Tastes,Konkan Caf\u00e9,Shree Thakar Bhojanalay,Britannia & Co.,Trishna,Peshawri,Global Fusion,Caf\u00e9 Madras");
                scrollPane13.setViewportView(editorPane13);
            }
            panel5.add(scrollPane13, CC.xy(7, 7));

            //======== scrollPane18 ========
            {

                //---- editorPane18 ----
                editorPane18.setEditable(false);
                editorPane18.setText(
                        "The Tulip,Rajdhani Restaurant,Sai Swad Restaurant & Dining,Woodlands Restaurant");
                scrollPane18.setViewportView(editorPane18);
            }
            panel5.add(scrollPane18, CC.xy(9, 7));

            //======== scrollPane23 ========
            {

                //---- editorPane23 ----
                editorPane23.setEditable(false);
                editorPane23.setText("Mapro,Olive Garden,Treacher & Company");
                scrollPane23.setViewportView(editorPane23);
            }
            panel5.add(scrollPane23, CC.xy(11, 7));

            //---- label11 ----
            label11.setText("CLIMATE");
            panel5.add(label11, CC.xy(1, 9));

            //======== scrollPane4 ========
            {

                //---- editorPane4 ----
                editorPane4.setEditable(false);
                editorPane4.setText("Cold");
                scrollPane4.setViewportView(editorPane4);
            }
            panel5.add(scrollPane4, CC.xy(3, 9));

            //======== scrollPane9 ========
            {

                //---- editorPane9 ----
                editorPane9.setEditable(false);
                editorPane9.setText("Hot and Humid");
                scrollPane9.setViewportView(editorPane9);
            }
            panel5.add(scrollPane9, CC.xy(5, 9));

            //======== scrollPane14 ========
            {

                //---- editorPane14 ----
                editorPane14.setEditable(false);
                editorPane14.setText("Hot and Humid");
                scrollPane14.setViewportView(editorPane14);
            }
            panel5.add(scrollPane14, CC.xy(7, 9));

            //======== scrollPane19 ========
            {

                //---- editorPane19 ----
                editorPane19.setEditable(false);
                editorPane19.setText("Cold only in Winter");
                scrollPane19.setViewportView(editorPane19);
            }
            panel5.add(scrollPane19, CC.xy(9, 9));

            //======== scrollPane24 ========
            {

                //---- editorPane24 ----
                editorPane24.setEditable(false);
                editorPane24.setText("Very Cold");
                scrollPane24.setViewportView(editorPane24);
            }
            panel5.add(scrollPane24, CC.xy(11, 9));

            //---- label12 ----
            label12.setText("SPECIALITY");
            panel5.add(label12, CC.xy(1, 11));

            //======== scrollPane5 ========
            {

                //---- editorPane5 ----
                editorPane5.setEditable(false);
                editorPane5.setText("Temples,Educational Institutes");
                scrollPane5.setViewportView(editorPane5);
            }
            panel5.add(scrollPane5, CC.xy(3, 11));

            //======== scrollPane10 ========
            {

                //---- editorPane10 ----
                editorPane10.setEditable(false);
                editorPane10.setText("Caves,Mosque");
                scrollPane10.setViewportView(editorPane10);
            }
            panel5.add(scrollPane10, CC.xy(5, 11));

            //======== scrollPane15 ========
            {

                //---- editorPane15 ----
                editorPane15.setEditable(false);
                editorPane15.setText("IT Parks,Beaches");
                scrollPane15.setViewportView(editorPane15);
            }
            panel5.add(scrollPane15, CC.xy(7, 11));

            //======== scrollPane20 ========
            {

                //---- editorPane20 ----
                editorPane20.setEditable(false);
                editorPane20.setText("Temples,Museum");
                scrollPane20.setViewportView(editorPane20);
            }
            panel5.add(scrollPane20, CC.xy(9, 11));

            //======== scrollPane25 ========
            {

                //---- editorPane25 ----
                editorPane25.setEditable(false);
                editorPane25.setText("Weather,Strawberry,Jelly Chocolates");
                scrollPane25.setViewportView(editorPane25);
            }
            panel5.add(scrollPane25, CC.xy(11, 11));
        }
        panel2.add(panel5, CC.xy(3, 1));

        //======== panel4 ========
        {
            panel4.setLayout(new FormLayout("default", "2*(default, $lgap), default"));

            //---- label5 ----
            label5.setIcon(new ImageIcon(getClass().getResource("/com/images/maharashtra/mahamap.jpg")));
            panel4.add(label5, CC.xy(1, 1));

            //---- label6 ----
            label6.setIcon(new ImageIcon(getClass().getResource("/com/images/maharashtra/maha4.jpg")));
            panel4.add(label6, CC.xy(1, 3));

            //---- label7 ----
            label7.setIcon(new ImageIcon(getClass().getResource("/com/images/maharashtra/maha5.jpg")));
            panel4.add(label7, CC.xy(1, 5));
        }
        panel2.add(panel4, CC.xy(5, 1));
    }
    add(panel2, CC.xy(1, 2));

    //======== panel6 ========
    {
        panel6.setLayout(new FormLayout("default, $lcgap, default", "default"));

        //---- button1 ----
        button1.setText("Go Back To Main Menu");
        panel6.add(button1, CC.xy(1, 1));
    }
    add(panel6, CC.xy(1, 4));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents

    button1.addActionListener(new ActionListener() {

        @Override
        public void actionPerformed(ActionEvent arg0) {
            MainPageView.createAndShowGUI();
        }
    });
}

From source file:com.main.MainPageView.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Evaluation license - Anjali Shinde
    label1 = new JLabel();
    panel2 = new JPanel();
    button6 = new JButton();
    KeralaImage = new JLabel();
    scrollPane6 = new JScrollPane();
    editorPane1 = new JEditorPane();
    button5 = new JButton();
    rajasthanimage = new JLabel();
    scrollPane1 = new JScrollPane();
    editorPane2 = new JEditorPane();
    button4 = new JButton();
    maharashtraimage = new JLabel();
    scrollPane3 = new JScrollPane();
    editorPane3 = new JEditorPane();
    button3 = new JButton();
    goaimage = new JLabel();
    scrollPane4 = new JScrollPane();
    editorPane4 = new JEditorPane();
    button2 = new JButton();
    jkimage = new JLabel();
    scrollPane7 = new JScrollPane();
    editorPane5 = new JEditorPane();
    button1 = new JButton();
    gurajatimage = new JLabel();
    scrollPane8 = new JScrollPane();
    editorPane6 = new JEditorPane();

    //======== this ========
    setPreferredSize(new Dimension(1200, 1200));

    // JFormDesigner evaluation mark
    setBorder(//from w  ww  .j a  v a2s .  c  om
            new javax.swing.border.CompoundBorder(
                    new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0),
                            "JFormDesigner Evaluation", javax.swing.border.TitledBorder.CENTER,
                            javax.swing.border.TitledBorder.BOTTOM,
                            new java.awt.Font("Dialog", java.awt.Font.BOLD, 12), java.awt.Color.red),
                    getBorder()));
    addPropertyChangeListener(new java.beans.PropertyChangeListener() {
        public void propertyChange(java.beans.PropertyChangeEvent e) {
            if ("border".equals(e.getPropertyName()))
                throw new RuntimeException();
        }
    });

    setLayout(new FormLayout("default:grow", "default, $lgap, default"));

    //---- label1 ----
    label1.setText("TRAVELS AND TOURISM");
    label1.setFont(new Font("Tahoma", Font.BOLD, 24));
    label1.setHorizontalAlignment(SwingConstants.CENTER);
    add(label1, CC.xy(1, 1));

    //======== panel2 ========
    {
        panel2.setLayout(new FormLayout("center:default, $lcgap, 181dlu, $lcgap, default:grow",
                "5*(fill:65dlu:grow, $lgap), fill:64dlu:grow"));

        //---- button6 ----
        button6.setText("Kerala");
        button6.setFont(new Font("Tahoma", Font.PLAIN, 18));
        panel2.add(button6, CC.xy(1, 1, CC.FILL, CC.DEFAULT));

        //---- KeralaImage ----
        KeralaImage.setIcon(new ImageIcon(getClass().getResource("/com/images/formimages/kerala.jpg")));
        KeralaImage.setIconTextGap(0);
        KeralaImage.setHorizontalTextPosition(SwingConstants.LEFT);
        KeralaImage.setHorizontalAlignment(SwingConstants.LEFT);
        panel2.add(KeralaImage, CC.xy(3, 1, CC.LEFT, CC.CENTER));

        //======== scrollPane6 ========
        {

            //---- editorPane1 ----
            editorPane1.setText(
                    "God's own country Kerala: With the Arabian Sea in the west, the Western Ghats towering 500-2700 ms in the east and networked by 44 rivers, Kerala enjoys unique geographical features that have made it one of the most sought after tourist destinations in Asia. An equable climate. Please click on state name to know more.");
            editorPane1.setEditable(false);
            editorPane1.setFont(new Font("Tahoma", Font.PLAIN, 14));
            scrollPane6.setViewportView(editorPane1);
        }
        panel2.add(scrollPane6, CC.xy(5, 1));

        //---- button5 ----
        button5.setText("Rajasthan");
        button5.setFont(new Font("Tahoma", Font.PLAIN, 18));
        panel2.add(button5, CC.xy(1, 3, CC.FILL, CC.DEFAULT));

        //---- rajasthanimage ----
        rajasthanimage.setIcon(new ImageIcon(getClass().getResource("/com/images/formimages/rajasthan.jpg")));
        rajasthanimage.setIconTextGap(0);
        panel2.add(rajasthanimage, CC.xy(3, 3, CC.LEFT, CC.DEFAULT));

        //======== scrollPane1 ========
        {

            //---- editorPane2 ----
            editorPane2.setText(
                    "The magic of vibrant Rajasthan: It's heritage, culture, safaris, sand dunes, lush forests and wildlife-makes it destination nonpareil.  India's oldest mountain range as the backdrop. Please click on state name to know more.");
            editorPane2.setEditable(false);
            editorPane2.setFont(new Font("Tahoma", Font.PLAIN, 14));
            scrollPane1.setViewportView(editorPane2);
        }
        panel2.add(scrollPane1, CC.xy(5, 3));

        //---- button4 ----
        button4.setText("Maharashtra");
        button4.setFont(new Font("Tahoma", Font.PLAIN, 18));
        panel2.add(button4, CC.xy(1, 5, CC.FILL, CC.DEFAULT));

        //---- maharashtraimage ----
        maharashtraimage.setIcon(new ImageIcon(getClass().getResource("/com/images/formimages/mah.jpg")));
        panel2.add(maharashtraimage, CC.xy(3, 5, CC.LEFT, CC.DEFAULT));

        //======== scrollPane3 ========
        {

            //---- editorPane3 ----
            editorPane3.setText(
                    "Welcome to Maharashtra: A land whose sheer size and diversity will stun you. Enjoy her mountains that stretch out into the mists as far as the eye can see. Her scores of temples, sculpted into and out of basalt rock. Please click on state name to know more.");
            editorPane3.setEditable(false);
            editorPane3.setFont(new Font("Tahoma", Font.PLAIN, 14));
            scrollPane3.setViewportView(editorPane3);
        }
        panel2.add(scrollPane3, CC.xy(5, 5));

        //---- button3 ----
        button3.setText("Goa");
        button3.setFont(new Font("Tahoma", Font.PLAIN, 18));
        panel2.add(button3, CC.xy(1, 7, CC.FILL, CC.DEFAULT));

        //---- goaimage ----
        goaimage.setIcon(new ImageIcon(getClass().getResource("/com/images/formimages/goa.jpg")));
        panel2.add(goaimage, CC.xy(3, 7, CC.LEFT, CC.DEFAULT));

        //======== scrollPane4 ========
        {

            //---- editorPane4 ----
            editorPane4.setText(
                    "The Coolest Place in India Goa: Now our road takes us to the magnificent kingdom of Goa. The people of this kingdom are strong, prudent and very hardworking ... The kingdom of Goa is the most important in India. Please click on state name to know more.");
            editorPane4.setEditable(false);
            editorPane4.setFont(new Font("Tahoma", Font.PLAIN, 14));
            scrollPane4.setViewportView(editorPane4);
        }
        panel2.add(scrollPane4, CC.xy(5, 7));

        //---- button2 ----
        button2.setText("Jammu and Kashmir");
        button2.setFont(new Font("Tahoma", Font.PLAIN, 18));
        panel2.add(button2, CC.xy(1, 9, CC.FILL, CC.DEFAULT));

        //---- jkimage ----
        jkimage.setIcon(new ImageIcon(getClass().getResource("/com/images/formimages/shalimar.jpg")));
        panel2.add(jkimage, CC.xy(3, 9, CC.LEFT, CC.DEFAULT));

        //======== scrollPane7 ========
        {

            //---- editorPane5 ----
            editorPane5.setText(
                    "Heaven on Earth Jammu and Kashmir: As they say beauty is the eyes of beholder and that is so true of the Valley. In Kashmir there is as much hidden as revealed. So the Valley has to be seen with the eyes of the soul. Please click on state name to know more.");
            editorPane5.setEditable(false);
            editorPane5.setFont(new Font("Tahoma", Font.PLAIN, 14));
            scrollPane7.setViewportView(editorPane5);
        }
        panel2.add(scrollPane7, CC.xy(5, 9));

        //---- button1 ----
        button1.setText("Gujarat");
        button1.setFont(new Font("Tahoma", Font.PLAIN, 18));
        panel2.add(button1, CC.xy(1, 11, CC.FILL, CC.DEFAULT));

        //---- gurajatimage ----
        gurajatimage.setIcon(new ImageIcon(getClass().getResource("/com/images/formimages/gujarat.jpg")));
        panel2.add(gurajatimage, CC.xy(3, 11, CC.LEFT, CC.DEFAULT));

        //======== scrollPane8 ========
        {

            //---- editorPane6 ----
            editorPane6.setText(
                    "Gandhi's birth place Gujarat: Gujarat is unique in its geological and topographical landscape. From volcanic outpourings through bedrock to fossil fields of indegenous dinosaurs; from the art of the neolithic cave painter. Gujarat has it all. Please click on state name to know more.");
            editorPane6.setEditable(false);
            editorPane6.setFont(new Font("Tahoma", Font.PLAIN, 14));
            scrollPane8.setViewportView(editorPane6);
        }
        panel2.add(scrollPane8, CC.xy(5, 11));
    }
    add(panel2, CC.xy(1, 3));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents

    button6.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent arg0) {
            kerala.createAndShowGUI();
        }
    });

    button5.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent arg0) {
            rajasthan.createAndShowGUI();
        }
    });

    button4.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent arg0) {
            maharashtra.createAndShowGUI();
        }
    });

    button3.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent arg0) {
            goa.createAndShowGUI();
        }
    });

    button2.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent arg0) {
            jk.createAndShowGUI();
        }
    });

    button1.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent arg0) {
            gurajat.createAndShowGUI();
        }
    });
}

From source file:com.main.RajasthanView.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Evaluation license - Anjali Shinde
    panel1 = new JPanel();
    label1 = new JLabel();
    panel2 = new JPanel();
    panel3 = new JPanel();
    label2 = new JLabel();
    label3 = new JLabel();
    label4 = new JLabel();
    panel5 = new JPanel();
    label13 = new JLabel();
    label14 = new JLabel();
    label15 = new JLabel();
    label16 = new JLabel();
    label17 = new JLabel();
    label8 = new JLabel();
    scrollPane1 = new JScrollPane();
    editorPane1 = new JEditorPane();
    scrollPane6 = new JScrollPane();
    editorPane6 = new JEditorPane();
    scrollPane11 = new JScrollPane();
    editorPane11 = new JEditorPane();
    scrollPane16 = new JScrollPane();
    editorPane16 = new JEditorPane();
    scrollPane21 = new JScrollPane();
    editorPane21 = new JEditorPane();
    label9 = new JLabel();
    scrollPane2 = new JScrollPane();
    editorPane2 = new JEditorPane();
    scrollPane7 = new JScrollPane();
    editorPane7 = new JEditorPane();
    scrollPane12 = new JScrollPane();
    editorPane12 = new JEditorPane();
    scrollPane17 = new JScrollPane();
    editorPane17 = new JEditorPane();
    scrollPane24 = new JScrollPane();
    editorPane23 = new JEditorPane();
    label10 = new JLabel();
    scrollPane3 = new JScrollPane();
    editorPane3 = new JEditorPane();
    scrollPane8 = new JScrollPane();
    editorPane8 = new JEditorPane();
    scrollPane13 = new JScrollPane();
    editorPane13 = new JEditorPane();
    scrollPane18 = new JScrollPane();
    editorPane18 = new JEditorPane();
    scrollPane23 = new JScrollPane();
    editorPane22 = new JEditorPane();
    label11 = new JLabel();
    scrollPane4 = new JScrollPane();
    editorPane4 = new JEditorPane();
    scrollPane9 = new JScrollPane();
    editorPane9 = new JEditorPane();
    scrollPane14 = new JScrollPane();
    editorPane14 = new JEditorPane();
    scrollPane19 = new JScrollPane();
    editorPane19 = new JEditorPane();
    scrollPane25 = new JScrollPane();
    editorPane24 = new JEditorPane();
    label12 = new JLabel();
    scrollPane5 = new JScrollPane();
    editorPane5 = new JEditorPane();
    scrollPane10 = new JScrollPane();
    editorPane10 = new JEditorPane();
    scrollPane15 = new JScrollPane();
    editorPane15 = new JEditorPane();
    scrollPane20 = new JScrollPane();
    editorPane20 = new JEditorPane();
    scrollPane26 = new JScrollPane();
    editorPane25 = new JEditorPane();
    panel4 = new JPanel();
    label5 = new JLabel();
    label6 = new JLabel();
    label7 = new JLabel();
    panel6 = new JPanel();
    button1 = new JButton();

    //======== this ========

    // JFormDesigner evaluation mark
    setBorder(//from  ww  w  . j  a  v a2s.c  o  m
            new javax.swing.border.CompoundBorder(
                    new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0),
                            "JFormDesigner Evaluation", javax.swing.border.TitledBorder.CENTER,
                            javax.swing.border.TitledBorder.BOTTOM,
                            new java.awt.Font("Dialog", java.awt.Font.BOLD, 12), java.awt.Color.red),
                    getBorder()));
    addPropertyChangeListener(new java.beans.PropertyChangeListener() {
        public void propertyChange(java.beans.PropertyChangeEvent e) {
            if ("border".equals(e.getPropertyName()))
                throw new RuntimeException();
        }
    });

    setLayout(new FormLayout("default:grow", "2*(default), $lgap, default"));

    //======== panel1 ========
    {
        panel1.setLayout(new FormLayout("default:grow", "default"));

        //---- label1 ----
        label1.setText("Rajasthan Tourism");
        label1.setFont(new Font("Tahoma", Font.BOLD, 24));
        panel1.add(label1, CC.xy(1, 1, CC.CENTER, CC.CENTER));
    }
    add(panel1, CC.xy(1, 1));

    //======== panel2 ========
    {
        panel2.setLayout(new FormLayout("2*(default, $lcgap), default", "default"));

        //======== panel3 ========
        {
            panel3.setLayout(new FormLayout("default:grow", "2*(fill:default:grow, $lgap), fill:default:grow"));

            //---- label2 ----
            label2.setIcon(new ImageIcon(getClass().getResource("/com/images/rajasthan/raj1.jpg")));
            panel3.add(label2, CC.xy(1, 1));

            //---- label3 ----
            label3.setIcon(new ImageIcon(getClass().getResource("/com/images/rajasthan/raj2.jpg")));
            panel3.add(label3, CC.xy(1, 3));

            //---- label4 ----
            label4.setIcon(new ImageIcon(getClass().getResource("/com/images/rajasthan/raj3.jpg")));
            panel3.add(label4, CC.xy(1, 5));
        }
        panel2.add(panel3, CC.xy(1, 1));

        //======== panel5 ========
        {
            panel5.setBorder(LineBorder.createBlackLineBorder());
            panel5.setLayout(
                    new FormLayout("default:grow, 5*($lcgap, default)", "5*(default, $lgap), default"));

            //---- label13 ----
            label13.setText("Jaipur");
            panel5.add(label13, CC.xy(3, 1));

            //---- label14 ----
            label14.setText("Jodhpur");
            panel5.add(label14, CC.xy(5, 1));

            //---- label15 ----
            label15.setText("Udaipur");
            panel5.add(label15, CC.xy(7, 1));

            //---- label16 ----
            label16.setText("Mount Abu");
            panel5.add(label16, CC.xy(9, 1));

            //---- label17 ----
            label17.setText("Bharatpur");
            panel5.add(label17, CC.xy(11, 1));

            //---- label8 ----
            label8.setText("PLACES TO VISIT");
            panel5.add(label8, CC.xy(1, 3));

            //======== scrollPane1 ========
            {

                //---- editorPane1 ----
                editorPane1.setEditable(false);
                editorPane1.setText(
                        "Elefantastic,Amber Fort and Palace,Anokhi Museum Of Hand Printing,Abhaneri Step Well,Govind Devji Temple,Shesh Mahal,Jantar Mantar,Birla Mandir Temple,Hawa MahalJaigarh Fort");
                scrollPane1.setViewportView(editorPane1);
            }
            panel5.add(scrollPane1, CC.xy(3, 3));

            //======== scrollPane6 ========
            {

                //---- editorPane6 ----
                editorPane6.setEditable(false);
                editorPane6.setText(
                        "Meherangarh Fort,Spice Parardise,Jaswant Thada,Shri Ganesh Temple,Kailana Lake,Clock Tower,Phalodi Fort,Zenana MahalMahamandir");
                scrollPane6.setViewportView(editorPane6);
            }
            panel5.add(scrollPane6, CC.xy(5, 3));

            //======== scrollPane11 ========
            {

                //---- editorPane11 ----
                editorPane11.setEditable(false);
                editorPane11.setText(
                        "Jain Temple,Kumbhalgarh Fort,Lake Pichhola,Bagore Ki haveli,City palace,Eklingji temple,jaisamand Lake,Jagdish temple,Lake Fatehsagar,Jag Mandir");
                scrollPane11.setViewportView(editorPane11);
            }
            panel5.add(scrollPane11, CC.xy(7, 3));

            //======== scrollPane16 ========
            {

                //---- editorPane16 ----
                editorPane16.setEditable(false);
                editorPane16.setText(
                        "Dilwar Jain Temples,Mount Abu,Sunset Point,Nakki Lake,Adhar Devi Temple,Achalgarh Fort,Mount Abu Wildlife Sanctuary");
                scrollPane16.setViewportView(editorPane16);
            }
            panel5.add(scrollPane16, CC.xy(9, 3));

            //======== scrollPane21 ========
            {

                //---- editorPane21 ----
                editorPane21.setEditable(false);
                editorPane21.setText(
                        "Keoladeo National Park,Keoladeo Ghana Bird,Deeg Palace,Government Museum,Lohagarh Fort,Shergarh Fort");
                scrollPane21.setViewportView(editorPane21);
            }
            panel5.add(scrollPane21, CC.xy(11, 3));

            //---- label9 ----
            label9.setText("HOTELS");
            panel5.add(label9, CC.xy(1, 5));

            //======== scrollPane2 ========
            {

                //---- editorPane2 ----
                editorPane2.setEditable(false);
                editorPane2.setText(
                        "The Oberoi Rajvilas,Arya Niwas,Royal Heritage Haveli,Jas Vilas,Devi Niketan,Hotel Pearl Palace,Barwara Kothi,Hotel Meghniwas,Hotel Anuraag Villa");
                scrollPane2.setViewportView(editorPane2);
            }
            panel5.add(scrollPane2, CC.xy(3, 5));

            //======== scrollPane7 ========
            {

                //---- editorPane7 ----
                editorPane7.setEditable(false);
                editorPane7.setText(
                        "Umaid Bhawan Palace,Ratan Vilas,Chandelao Garh,Mandore guest House,Devi Bhawan,Haveli Inn Pal,Hari Mahl,Dhillon House");
                scrollPane7.setViewportView(editorPane7);
            }
            panel5.add(scrollPane7, CC.xy(5, 5));

            //======== scrollPane12 ========
            {

                //---- editorPane12 ----
                editorPane12.setEditable(false);
                editorPane12.setText(
                        "Taj Lake Palace,The Oberoi Udaivilas,Leela Palace,Trident,Jaiwana Haveli,Devra,Mahendra Prakash,Amantra Comfort Hotel");
                scrollPane12.setViewportView(editorPane12);
            }
            panel5.add(scrollPane12, CC.xy(7, 5));

            //======== scrollPane17 ========
            {

                //---- editorPane17 ----
                editorPane17.setEditable(false);
                editorPane17.setText(
                        "Ratan Villas,Hotel Vinayak,Hotel Hilltone,Hillock,Cama Rajputana club Resort,Chacha Inn,Hotel Swagat,Hotel Savera Palace,The Jaipur House,Hotel Vishram,Aranya Village Hill Resort");
                scrollPane17.setViewportView(editorPane17);
            }
            panel5.add(scrollPane17, CC.xy(9, 5));

            //======== scrollPane24 ========
            {

                //---- editorPane23 ----
                editorPane23.setEditable(false);
                editorPane23.setText(
                        "Swaraj Resorts,The Bagh Resort,Hotel Surys Vilas Palace,Laxmi Vilas Palace Hotel,Hotel Sunbird,Evergreen Guest House,Kadamb Kunj Resort");
                scrollPane24.setViewportView(editorPane23);
            }
            panel5.add(scrollPane24, CC.xy(11, 5));

            //---- label10 ----
            label10.setText("RESTAURANT");
            panel5.add(label10, CC.xy(1, 7));

            //======== scrollPane3 ========
            {

                //---- editorPane3 ----
                editorPane3.setEditable(false);
                editorPane3.setText(
                        "Kalyan Restaurant,Nibs the chocolate workshop,Anokhi Cafe,Chitra Cafe,Suvarna Mahal,BMB,Peshawari,Pinxx Restaurant");
                scrollPane3.setViewportView(editorPane3);
            }
            panel5.add(scrollPane3, CC.xy(3, 7));

            //======== scrollPane8 ========
            {

                //---- editorPane8 ----
                editorPane8.setEditable(false);
                editorPane8.setText(
                        "Gypsy Restaurant,Rhythm,Darikhana at RAAS,Hanuwant Mahal,Indiqui,Jhankar Choti Haveli,Hem's Delicious Food");
                scrollPane8.setViewportView(editorPane8);
            }
            panel5.add(scrollPane8, CC.xy(5, 7));

            //======== scrollPane13 ========
            {

                //---- editorPane13 ----
                editorPane13.setEditable(false);
                editorPane13.setText(
                        "Lake Palace Hotel,Raas Leela,Pushkar's Cafe,Ambrai,Natraj Lodge,Cafe Isaac,Navidya Restaurant");
                scrollPane13.setViewportView(editorPane13);
            }
            panel5.add(scrollPane13, CC.xy(7, 7));

            //======== scrollPane18 ========
            {

                //---- editorPane18 ----
                editorPane18.setEditable(false);
                editorPane18.setText(
                        "Cafe Shikibo,Mukberry Tree Restaurant,jaipur Palace,Cafe Coffee Day,Dawat Restaurant,King's Food,Zaiqa");
                scrollPane18.setViewportView(editorPane18);
            }
            panel5.add(scrollPane18, CC.xy(9, 7));

            //======== scrollPane23 ========
            {

                //---- editorPane22 ----
                editorPane22.setEditable(false);
                editorPane22.setText(
                        "Atithi Restaurant,Ravia Poolside and Rooftop Restaurant,Gulmohar Restaurant,Ruchi Restaurant");
                scrollPane23.setViewportView(editorPane22);
            }
            panel5.add(scrollPane23, CC.xy(11, 7));

            //---- label11 ----
            label11.setText("CLIMATE");
            panel5.add(label11, CC.xy(1, 9));

            //======== scrollPane4 ========
            {

                //---- editorPane4 ----
                editorPane4.setEditable(false);
                editorPane4.setText("Moderate");
                scrollPane4.setViewportView(editorPane4);
            }
            panel5.add(scrollPane4, CC.xy(3, 9));

            //======== scrollPane9 ========
            {

                //---- editorPane9 ----
                editorPane9.setEditable(false);
                editorPane9.setText("Hot and Cold");
                scrollPane9.setViewportView(editorPane9);
            }
            panel5.add(scrollPane9, CC.xy(5, 9));

            //======== scrollPane14 ========
            {

                //---- editorPane14 ----
                editorPane14.setEditable(false);
                editorPane14.setText("Dry,Hot,Cold");
                scrollPane14.setViewportView(editorPane14);
            }
            panel5.add(scrollPane14, CC.xy(7, 9));

            //======== scrollPane19 ========
            {

                //---- editorPane19 ----
                editorPane19.setEditable(false);
                editorPane19.setText("Moderate");
                scrollPane19.setViewportView(editorPane19);
            }
            panel5.add(scrollPane19, CC.xy(9, 9));

            //======== scrollPane25 ========
            {

                //---- editorPane24 ----
                editorPane24.setEditable(false);
                editorPane24.setText("Hot and Cold");
                scrollPane25.setViewportView(editorPane24);
            }
            panel5.add(scrollPane25, CC.xy(11, 9));

            //---- label12 ----
            label12.setText("SPECIALITY");
            panel5.add(label12, CC.xy(1, 11));

            //======== scrollPane5 ========
            {

                //---- editorPane5 ----
                editorPane5.setEditable(false);
                editorPane5.setText("Sweets");
                scrollPane5.setViewportView(editorPane5);
            }
            panel5.add(scrollPane5, CC.xy(3, 11));

            //======== scrollPane10 ========
            {

                //---- editorPane10 ----
                editorPane10.setEditable(false);
                editorPane10.setText("Fort,Sweets");
                scrollPane10.setViewportView(editorPane10);
            }
            panel5.add(scrollPane10, CC.xy(5, 11));

            //======== scrollPane15 ========
            {

                //---- editorPane15 ----
                editorPane15.setEditable(false);
                editorPane15.setText("Temples");
                scrollPane15.setViewportView(editorPane15);
            }
            panel5.add(scrollPane15, CC.xy(7, 11));

            //======== scrollPane20 ========
            {

                //---- editorPane20 ----
                editorPane20.setEditable(false);
                editorPane20.setText("Hill Station");
                scrollPane20.setViewportView(editorPane20);
            }
            panel5.add(scrollPane20, CC.xy(9, 11));

            //======== scrollPane26 ========
            {

                //---- editorPane25 ----
                editorPane25.setEditable(false);
                editorPane25.setText("Sweets,Temples");
                scrollPane26.setViewportView(editorPane25);
            }
            panel5.add(scrollPane26, CC.xy(11, 11));
        }
        panel2.add(panel5, CC.xy(3, 1));

        //======== panel4 ========
        {
            panel4.setLayout(new FormLayout("default:grow", "2*(default, $lgap), default"));

            //---- label5 ----
            label5.setIcon(new ImageIcon(getClass().getResource("/com/images/rajasthan/rajmap.jpg")));
            panel4.add(label5, CC.xy(1, 1));

            //---- label6 ----
            label6.setIcon(new ImageIcon(getClass().getResource("/com/images/rajasthan/raj5.jpg")));
            panel4.add(label6, CC.xy(1, 3));

            //---- label7 ----
            label7.setIcon(new ImageIcon(getClass().getResource("/com/images/rajasthan/raj7.jpg")));
            panel4.add(label7, CC.xy(1, 5));
        }
        panel2.add(panel4, CC.xy(5, 1));
    }
    add(panel2, CC.xy(1, 2));

    //======== panel6 ========
    {
        panel6.setLayout(new FormLayout("default, $lcgap, default", "default"));

        //---- button1 ----
        button1.setText("Go Back To Main Menu");
        panel6.add(button1, CC.xy(1, 1));
    }
    add(panel6, CC.xy(1, 4));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents

    button1.addActionListener(new ActionListener() {

        @Override
        public void actionPerformed(ActionEvent arg0) {
            MainPageView.createAndShowGUI();
        }
    });
}

From source file:com.mebigfatguy.clytemnestra.view.ClytemnestraFrame.java

License:Apache License

private JPanel createDescriptionPanel() {
    JPanel p = new JPanel();

    p.setLayout(new FormLayout("6dlu, pref, 5dlu, pref:grow, 6dlu",
            "8dlu, pref, 6dlu, pref, 6dlu, pref, 6dlu, pref, 8dlu"));

    clusterNameField = new JTextField();
    clusterNameField.setEditable(false);
    FormHelper.addFormRow(p, Bundle.Key.ClusterName, clusterNameField, 2);

    partitionerField = new JTextField();
    partitionerField.setEditable(false);
    FormHelper.addFormRow(p, Bundle.Key.Partitioner, partitionerField, 4);

    snitchField = new JTextField();
    snitchField.setEditable(false);//from  w  w  w.j a  v a 2 s .c o  m
    FormHelper.addFormRow(p, Bundle.Key.Snitch, snitchField, 6);

    versionField = new JTextField();
    versionField.setEditable(false);
    FormHelper.addFormRow(p, Bundle.Key.Version, versionField, 8);

    return p;
}

From source file:com.mebigfatguy.clytemnestra.view.ConnectionDialog.java

License:Apache License

private JPanel createFormPanel() {
    JPanel p = new JPanel();

    p.setLayout(new FormLayout("6dlu, pref, 5dlu, 200px, 6dlu",
            "6dlu, pref, 4dlu, pref, 4dlu, pref, 20dlu, pref, 4dlu, pref, 6dlu"));

    serverField = new JTextField(20);
    serverField.setText("localhost");
    FormHelper.addFormRow(p, Bundle.Key.Server, serverField, 2);

    portField = new JTextField(20);
    portField.setDocument(new IntegerDocument());
    portField.setText("9160");
    FormHelper.addFormRow(p, Bundle.Key.Port, portField, 4);

    randomServerCheckBox = new JCheckBox(Bundle.getString(Bundle.Key.UseRandomServer));
    CellConstraints cc = new CellConstraints();
    p.add(randomServerCheckBox, cc.xyw(2, 6, 4));

    userNameField = new JTextField(20);
    FormHelper.addFormRow(p, Bundle.Key.UserName, userNameField, 8);

    passwordField = new JPasswordField(20);
    FormHelper.addFormRow(p, Bundle.Key.Password, passwordField, 10);

    p.setBorder(BorderFactory.createEmptyBorder(20, 10, 10, 10));

    return p;// w w  w.  java2  s .c o  m
}

From source file:com.mebigfatguy.clytemnestra.view.CreateColumnFamilyDialog.java

License:Apache License

private JPanel createFormPanel() {
    JPanel p = new JPanel();

    p.setLayout(new FormLayout("6dlu, pref, 5dlu, 200px, 6dlu",
            "6dlu, pref, 4dlu, pref, 4dlu, pref, 4dlu, pref, 4dlu, pref, 6dlu"));

    columnFamilyName = new JTextField(20);
    FormHelper.addFormRow(p, Bundle.Key.ColumnFamily, columnFamilyName, 2);

    columnFamilyTypeCombo = new JComboBox();
    for (ColumnFamilyType type : ColumnFamilyType.values()) {
        columnFamilyTypeCombo.addItem(type.name());
    }/*from  w w  w  .  j a  va 2s  .c o  m*/
    FormHelper.addFormRow(p, Bundle.Key.ColumnFamilyType, columnFamilyTypeCombo, 4);

    comparatorTypeCombo = new JComboBox();
    for (ComparatorType type : ComparatorType.values()) {
        comparatorTypeCombo.addItem(type.name());
    }
    comparatorTypeCombo.setEditable(true);
    FormHelper.addFormRow(p, Bundle.Key.ComparatorType, comparatorTypeCombo, 6);

    p.setBorder(BorderFactory.createEmptyBorder(20, 10, 10, 10));

    return p;
}

From source file:com.mebigfatguy.clytemnestra.view.CreateKeySpaceDialog.java

License:Apache License

private JPanel createFormPanel() {
    JPanel p = new JPanel();

    p.setLayout(new FormLayout("6dlu, pref, 5dlu, 200px, 6dlu",
            "6dlu, pref, 4dlu, pref, 8dlu, pref, 4dlu, pref, 4dlu, pref, 6dlu"));
    CellConstraints cc = new CellConstraints();

    keySpaceName = new JTextField(20);
    FormHelper.addFormRow(p, Bundle.Key.KeySpaceName, keySpaceName, 2);

    durableWritesRadio = new JRadioButton(Bundle.getString(Bundle.Key.DurableWrites));
    p.add(durableWritesRadio, cc.xyw(2, 4, 4));

    strategyClassCombo = new JComboBox();
    for (ReplicationStrategy strategy : ReplicationStrategy.values()) {
        strategyClassCombo.addItem(strategy.name());
    }//from   w  ww  .  j a  va  2s.com
    strategyClassCombo.setEditable(true);
    FormHelper.addFormRow(p, Bundle.Key.StrategyClass, strategyClassCombo, 6);

    JLabel optionsLabel = new JLabel(Bundle.getString(Bundle.Key.StrategicOptions));
    p.add(optionsLabel, cc.xy(2, 8));

    optionsTable = new JTable(new StrategicOptionsTableModel((String) strategyClassCombo.getSelectedItem()));
    p.add(new JScrollPane(optionsTable), cc.xyw(2, 10, 4));
    Dimension dim = optionsTable.getPreferredSize();
    dim.height = 100;
    optionsTable.setPreferredScrollableViewportSize(dim);

    optionsLabel.setLabelFor(optionsTable);

    p.setBorder(BorderFactory.createEmptyBorder(20, 10, 10, 10));

    return p;
}

From source file:com.mebigfatguy.clytemnestra.view.CreateStressTestDialog.java

License:Apache License

private JPanel createFormPanel() {
    JPanel p = new JPanel();

    p.setLayout(new FormLayout("6dlu, pref, 5dlu, 80, 6dlu",
            "6dlu, pref, 4dlu, pref, 4dlu, pref, 6dlu, pref, 2dlu, pref, 6dlu, pref, 4dlu, pref, 4dlu, pref, 6dlu"));

    keySpacesField = new JTextField(6);
    keySpacesField.setText("2");
    FormHelper.addFormRow(p, Bundle.Key.KeySpaces, keySpacesField, 2);

    maxColumnFamiliesPerKeySpaceField = new JTextField(6);
    maxColumnFamiliesPerKeySpaceField.setDocument(new IntegerDocument());
    maxColumnFamiliesPerKeySpaceField.setText("4");
    FormHelper.addFormRow(p, Bundle.Key.MaxColumnFamiliesPerKeySpace, maxColumnFamiliesPerKeySpaceField, 4);

    maxColumnsPerColumnFamilyField = new JTextField(6);
    maxColumnsPerColumnFamilyField.setDocument(new IntegerDocument());
    maxColumnsPerColumnFamilyField.setText("30");
    FormHelper.addFormRow(p, Bundle.Key.MaxColumnsPerColumnFamily, maxColumnsPerColumnFamilyField, 6);

    useSuperColumnsCheckBox = new JCheckBox(Bundle.getString(Bundle.Key.UseSuperColumns));
    useSuperColumnsCheckBox.setSelected(true);
    FormHelper.addFormItem(p, useSuperColumnsCheckBox, 2, 8);

    useCompositeColumnsCheckBox = new JCheckBox(Bundle.getString(Bundle.Key.UseCompositeColumns));
    useCompositeColumnsCheckBox.setSelected(true);
    FormHelper.addFormItem(p, useCompositeColumnsCheckBox, 2, 10);

    createPercentageField = new JTextField(6);
    createPercentageField.setDocument(new IntegerDocument());
    createPercentageField.setText("60");
    FormHelper.addFormRow(p, Bundle.Key.CreatePercentage, createPercentageField, 12);

    updatePercentageField = new JTextField(6);
    updatePercentageField.setDocument(new IntegerDocument());
    updatePercentageField.setText("20");
    FormHelper.addFormRow(p, Bundle.Key.UpdatePercentage, updatePercentageField, 14);

    readPercentageField = new JTextField(6);
    readPercentageField.setDocument(new IntegerDocument());
    readPercentageField.setText("20");
    FormHelper.addFormRow(p, Bundle.Key.ReadPercentage, readPercentageField, 16);

    p.setBorder(BorderFactory.createEmptyBorder(20, 10, 10, 10));

    return p;/*from w  w w .  j a  v  a  2 s .  co  m*/
}

From source file:com.mebigfatguy.clytemnestra.view.RunStressTestFrame.java

License:Apache License

private JPanel createRunPanel() {
    JPanel p = new JPanel();
    p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS));

    JPanel progressPanel = new JPanel();

    progressPanel.setLayout(/*from www. j a v a 2 s  . c  om*/
            new FormLayout("6dlu, pref, 5dlu, pref:grow, 6dlu", "6dlu, pref, 4dlu, pref, 4dlu, pref, 6dlu"));

    insertBar = new JProgressBar(0, 100);
    FormHelper.addFormRow(progressPanel, Bundle.Key.Inserts, insertBar, 2);

    updateBar = new JProgressBar(0, 100);
    FormHelper.addFormRow(progressPanel, Bundle.Key.Updates, updateBar, 4);

    readBar = new JProgressBar(0, 100);
    FormHelper.addFormRow(progressPanel, Bundle.Key.Reads, readBar, 6);

    progressPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10),
            BorderFactory.createTitledBorder(Bundle.getString(Bundle.Key.Status))));

    p.add(progressPanel);

    JPanel ctrlPanel = new JPanel();
    ctrlPanel.setLayout(new BoxLayout(ctrlPanel, BoxLayout.X_AXIS));
    ctrlPanel.add(Box.createHorizontalGlue());

    runButton = new JButton(Bundle.getString(Bundle.Key.RunStressTest));
    ctrlPanel.add(runButton);

    ctrlPanel.add(Box.createHorizontalStrut(10));

    stopButton = new JButton(Bundle.getString(Bundle.Key.StopStressTest));
    stopButton.setEnabled(false);
    ctrlPanel.add(stopButton);

    ctrlPanel.add(Box.createHorizontalStrut(10));

    ctrlPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));

    p.add(ctrlPanel);

    return p;
}