Problems in accessing another screen

Hi,
I have a small problem.
I have a main screen with two commands. >>Login and Operation.
I can access to my Login and no issues.
When it bounces back to operation, I cant go into my operation screen.vi.
Why is this so?
PLs do advise.
Thsk N Rdgs
Titano
Solved!
Go to Solution.
Attachments:
Login_Password.vi ‏27 KB
Main VI.vi ‏10 KB
Operation Screen.vi ‏190 KB

HI,
Thanks. 1 more query.
Once I run my main screen, I want only the login button to be enabled. Once I'm successfully logged in, then the operation screen must be enabled.
How do i go about it?
I tried property node but could not get a successful result.
Pls advice.
Thanks
Attachments:
Main VI.vi ‏11 KB
Login_Password.vi ‏27 KB
Operation Screen.vi ‏190 KB

Similar Messages

  • Problem with access another domain data

    Hi
    I want to access another domain data like XML and html page, I tried crossdomain.xml.
    but not working plz Help me if u can.

    What's the Java console say?

  • Help... dont know what's the problem.. accessing another class

    (im new to java =c)
    well i have a file named accessfiles.java as my main page and i have another java file named try1.java
    i can access try1.java from accessfiles.java using a simple case..... but how come i cant return to accessfiles.java?
    is it with the string[]args?? do i have to erase it?
    please help me =c
    accessfiles.java
    import java.io.*;
    public class accessfiles{
    public static void main(String[]args)throws Exception{
    BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
    System.out.println("\nMAIN MENU");
    System.out.println("[1] for Prelim MP1");
    System.out.print("CHOICE: ");
    switch(c)
    case 1:
         try m1=new try1();
         m1.try();
         break;
    default: System.out.println("Invalid Input!");
         break;
    try1.java
    import java.io.*;
    public class try1 {
         public static void try()throws Exception
              BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
              int x=0;
              int y=0;                    
              int r=0;
         System.out.println("1st Pattern");
         for (x=1;x<=5;x++)
         System.out.println(" ");
         r=x;
         for (y=1;y<=r;y++)
         System.out.print(y);
         System.out.println(" ");
         System.out.println(" ");
         System.out.println("2nd Pattern");
         for (x=5;x>=1;x--)
         System.out.println(" ");
         r=x;
         for (y=1;y<=r;y++)
         System.out.print(y);
    accessfiles m2=new accessfiles();
         m2.main();
         break;
    }

    For starters, you don't seem to understand the difference between a static and non-static method. Here is an example of how to call a method in a different class.
    public class MainClass {
        public static void main(String[] args) {
            MainClass app = new MainClass();
            app.go();
        public void go() {
            System.out.println("start of go");
            another.method();
            System.out.println("end of go");
        private AnotherClass another = new AnotherClass();
    public class AnotherClass {
        public void method() {
            System.out.println("method");
    }

  • At log-in Firefox stated that it was having a problem closing tabs and directed me to click a tab to continue, which I did, and sexually explicit images appeared on the screen and when I tried to close the screen, another screen popped up with additional

    At log-in Firefox the screen opened up with the message "Oops, We're embarrassed, we are having trouble closing tabs" or similar wording directing me to click on a tab to continue, which I did. At which time a screen full of rows of thumbnail pictures of a young girl in appeared on the screen. Some of the pictures had the girl imitating a sexual act. When I tried to close out of the screen by clicking on the 'X' at the top right of the screen, another screen opened with another larger picture of this little girl. I finally got out of Firefox. When I open it up again the message wasn't on the screen. As these pictures were disturbing I cleared them out of my history.
    My questions are - 1. Since these pictures appeared to be of a minor, can you backtrack to the source to find out where they originated and have something done about the individual who posted them? And,
    2. - Did my clicking on the link as directed - by Firefox, I thought - open my computer up to the personal information on my computer being compromised?
    == This happened ==
    Just once or twice
    == Around 11:30 on Sat June 19th

    It looks like you have some malware.
    Have you tried running an antivirus scan?
    Some free antivirus options:
    [http://www.avast.com/eng/programs.html]
    [http://www.avira.com/en/download/index.html]
    Malware program recommendations:
    Malwarebytes' Anti-Malware - [http://www.malwarebytes.org/mbam.php]
    SuperAntispyware - [http://www.superantispyware.com/]
    AdAware - [http://www.lavasoftusa.com/software/adaware/]
    Spybot Search & Destroy - [http://www.safer-networking.org/en/index.html]
    If these don't find it or can't clear it, post in one of these forums for specialized malware removal help:
    [http://www.spywarewarrior.com/index.php]
    [http://forum.aumha.org/]
    [http://www.spywareinfoforum.com/]

  • How can I access another class in a MembershipRule's Expression

    Hello,
    I want to create an InstanceGroup using Module Microsoft.SystemCenter.GroupPopulator.
    I need to collect all Logical Disks which contain an MS SQL DB Log File.
    I would start as follows:
    <DataSource ID="DS" TypeID="SC!Microsoft.SystemCenter.GroupPopulator">
      <RuleId>$MPElement$</RuleId>
      <GroupInstanceId>$Target/Id$</GroupInstanceId>
      <MembershipRules>
        <MembershipRule>
          <MonitoringClass>$MPElement[Name="Windows!Microsoft.Windows.LogicalDisk"]$</MonitoringClass>
          <RelationshipClass>$MPElement[Name="MSIL!Microsoft.SystemCenter.InstanceGroupContainsEntities"]$</RelationshipClass>     
    <Expression>
            <And>
      <!--
       First Expression
      -->
              <Expression>
                <SimpleExpression>
                  <ValueExpression>
                    <Property>$MPElement[Name="Windows!Microsoft.Windows.LogicalDevice"]/Name$</Property>
                  </ValueExpression>
                  <Operator>Equal</Operator>
                  <ValueExpression>
      <!--
        How can I access another class's properties ? 
      -->
                    <GenericProperty>$MPElement[Name="SQL!Microsoft.SQLServer.2008.DBLogFile"]/Drive$</GenericProperty>
                  </ValueExpression>
                </SimpleExpression>
              </Expression>
              <Expression>
                <SimpleExpression>
                  <ValueExpression>
                    <HostProperty>
                      <MonitoringClass>$MPElement[Name="Windows!Microsoft.Windows.Computer"]</MonitoringClass>
                      <Property>PrincipalName</Property>
                    </HostProperty>
                  </ValueExpression>
                  <Operator>Equal</Operator>
                  <ValueExpression>
                    <GenericProperty>$MPElement[Name="SQL!Microsoft.SQLServer.2008.DBLogFile"]/Drive$</GenericProperty>
                  </ValueExpression>
                </SimpleExpression>
              </Expression>
            </And>
          </Expression>
        </MembershipRule>
      </MembershipRules>
    </DataSource>
    In the first expression you "see" my question:
    I want to compare the LogicalDisk's Name Property with the DB Log File's Drive property.
    But how can I access the DB Log File's Drive property in this MembershipRule ?
    Furthermore LogicalDisk and DB Log File must be hosted on the same Windows Computer.
    Would be great if somebody could help.
    Thanks
    Sebastian

    Hi Niki,
    thanks for the idea, but that will not work. $Target/Id$ refers always to the group to be discovered.
    On last week end I was given following idea, hope it will work:
    Step 1
    Collect all the DB SQL Logfile Objects and write computername (PrincipalName?) and Driveletter into a textfile, line by line. Shouldn't be a problem, PowerShell is your friend.
    Step 2
    Read the file from Step 1, build discovery data for each disk drive as object of class "Logical Disk (Server)",
    and then discover the containment-relationships from those Logical Drive(Server) Objects to the InstanceGroup.
    Perhaps I must do it for the OS-Version related Disks, because I need the target classes  of the Logical Disk Freespace monitors. Some more work. "Risks": I donot know the discovery algorithm for the Logical Disk(Server) Objects, but a "deep
    dive" into the MPs should help.
    Thanks to all, who have read.
    I will inform you about progress and success
    sebastian

  • Transfer from one screen to another screen in mm02

    hi guru,
    how to trasfer value of field from to screen to another screen.
    my problem is when we change in mm02 transaction Basic data1 view the field (prod.hierarchy) value it should be transfer to sale organization 2 view and displayed in prod.hierarchy.
    the value should be transfering from one screen to another screen.
    kindly do the need full code ASAP.
    Thanks & Regards,
    Sudheer.

    check this link....
    defining screen fields using FIELD-SYMBOL
    regds,
    kiran

  • IPOHONE 4: I have a problem in the touch screen

    IPOHONE 4: I have a problem in the touch screen. Sometimes it responds ODD.. it is not working as the way it must be. when i touch an apps to open, insted of the desired apps, another apps opens. this is due to the touch screen issue.
    How do i Rectify this. I had restarted several times, Restored the settings, connected throubgh iTunes and updated the software several times. But still the prolem persists.
    Help me please

    iPhone User Guide (For iOS 4.2 and 4.3 Software)

  • Accessing Another Window Fault

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.Arrays;
    public class PasswordDemo extends JPanel   implements ActionListener {
        private static String OK = "ok";
        private static String HELP = "help";
        private JFrame controllingFrame; //needed for dialogs
        private JPasswordField passwordField;
        private javax.swing.JLabel jLabel1;
        private javax.swing.JLabel jLabel2;
        private javax.swing.JPanel jPanel1;
        private javax.swing.JPanel jPanel2;
        private javax.swing.JTextField jTextField1;
        private javax.swing.JTextField jTextField2;
        public PasswordDemo(JFrame f) {
            //Use the default FlowLayout.
            controllingFrame = f;
            //Create everything.
            passwordField = new JPasswordField(10);
            passwordField.setActionCommand(OK);
            passwordField.addActionListener(this);
            JLabel label = new JLabel("Enter the password: ");
            label.setLabelFor(passwordField);
            JComponent buttonPane = createButtonPanel();
            //Lay out everything.
            JPanel textPane = new JPanel(new FlowLayout(FlowLayout.TRAILING));
            textPane.add(label);
            textPane.add(passwordField);
            add(textPane);
            add(buttonPane);
        protected JComponent createButtonPanel() {
            JPanel p = new JPanel(new GridLayout(0,1));
            JButton okButton = new JButton("OK");
            JButton helpButton = new JButton("Help");
            okButton.setActionCommand(OK);
            helpButton.setActionCommand(HELP);
            okButton.addActionListener(this);
            helpButton.addActionListener(this);
            p.add(okButton);
            p.add(helpButton);
            return p;
        public void actionPerformed(ActionEvent e) {
            String cmd = e.getActionCommand();
            if (OK.equals(cmd)) { //Process the password.
                char[] input = passwordField.getPassword();
                if (isPasswordCorrect(input)) {
                 //   JOptionPane.showMessageDialog(controllingFrame, "Success! You typed the right password.");      
                     //class BasicPanel extends JPanel {
                //          public BasicPanel() {
                               JButton okButton = new JButton("ok");
                               okButton.addActionListener(new ActionListener() {
                                    public void actionPerformed(ActionEvent arg0) {
                                         test2 inputForm = new test2();
                                         inputForm.setVisible(true);
                               add(okButton);
                     class test2 extends javax.swing.JFrame {
                         public test2() {
                             initComponents();
                         private void initComponents() {
                             jPanel1 = new javax.swing.JPanel();
                             jButton1 = new javax.swing.JButton();
                             jButton2 = new javax.swing.JButton();
                             setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
                             jButton1.setText("jButton1");
                             jButton2.setText("jButton2");
                             javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
                             jPanel1.setLayout(jPanel1Layout);
                             jPanel1Layout.setHorizontalGroup(
                                 jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                 .addGroup(jPanel1Layout.createSequentialGroup()
                                     .addContainerGap()
                                     .addComponent(jButton1)
                                     .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                     .addComponent(jButton2)
                                     .addContainerGap(196, Short.MAX_VALUE))
                             jPanel1Layout.setVerticalGroup(
                                 jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                 .addGroup(jPanel1Layout.createSequentialGroup()
                                     .addContainerGap()
                                     .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                         .addComponent(jButton1)
                                         .addComponent(jButton2))
                                     .addContainerGap(174, Short.MAX_VALUE))
                             javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
                             getContentPane().setLayout(layout);
                             layout.setHorizontalGroup(
                                 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                 .addGroup(layout.createSequentialGroup()
                                     .addContainerGap()
                                     .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                     .addContainerGap(24, Short.MAX_VALUE))
                             layout.setVerticalGroup(
                                 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                 .addGroup(layout.createSequentialGroup()
                                     .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                     .addContainerGap(92, Short.MAX_VALUE))
                             pack();
                         }// </editor-fold>
                          * @param args the command line arguments
                         // Variables declaration - do not modify
                         private javax.swing.JButton jButton1;
                         private javax.swing.JButton jButton2;
                         private javax.swing.JPanel jPanel1;
                         // End of variables declaration
               else {
                    JOptionPane.showMessageDialog(controllingFrame,
                        "Invalid password. Try again.",
                        "Error Message",
                        JOptionPane.ERROR_MESSAGE);
                //Zero out the possible password, for security.
                Arrays.fill(input, '0');
                passwordField.selectAll();
                resetFocus();
            } else { //The user has asked for help.
                JOptionPane.showMessageDialog(controllingFrame,
                    "You can get the password by searching this example's\n"
                  + "source code for the string \"correctPassword\".\n"
                  + "Or look at the section How to Use Password Fields in\n"
                  + "the components section of The Java Tutorial.");
         * Checks the passed-in array against the correct password.
         * After this method returns, you should invoke eraseArray
         * on the passed-in array.
        private static boolean isPasswordCorrect(char[] input) {
            boolean isCorrect = true;
            char[] correctPassword = { 'b', 'u', 'g', 'a', 'b', 'o', 'o' };
            if (input.length != correctPassword.length) {
                isCorrect = false;
            } else {
                isCorrect = Arrays.equals (input, correctPassword);
            //Zero out the password.
            Arrays.fill(correctPassword,'0');
            return isCorrect;
        //Must be called from the event dispatch thread.
        protected void resetFocus() {
            passwordField.requestFocusInWindow();
         * 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("PasswordDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Create and set up the content pane.
            final PasswordDemo newContentPane = new PasswordDemo(frame);
            newContentPane.setOpaque(true); //content panes must be opaque
            frame.setContentPane(newContentPane);
            //Make sure the focus goes to the right component
            //whenever the frame is initially given the focus.
            frame.addWindowListener(new WindowAdapter() {
                public void windowActivated(WindowEvent e) {
                    newContentPane.resetFocus();
            //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();
    }Hey there everyone, i am trying to access another window using swing. I am trying to do so via password verification, when the use inputs the right password it should grant them access to the form fillout page which i am building. Problem is that there is something wrong when i input the right password and click "OK". Its not going through and giving me access to the next page. I just need pointers as to what i should fix. Thank you very much.

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.Arrays;
    /* PasswordDemo.java requires no other files. */
    public class PasswordDemo extends JPanel
                              implements ActionListener {
        private static String OK = "ok";
        private static String HELP = "help";
        private JFrame controllingFrame; //needed for dialogs
        private JPasswordField passwordField;
        private javax.swing.JLabel jLabel1;
        private javax.swing.JLabel jLabel2;
        private javax.swing.JLabel jLabel3;
        private javax.swing.JTextField jTextField1;
        private javax.swing.JTextField jTextField2;
        private javax.swing.JTextField jTextField3;
        public PasswordDemo(JFrame f) {
            //Use the default FlowLayout.
            controllingFrame = f;
            //Create everything.
            passwordField = new JPasswordField(10);
            passwordField.setActionCommand(OK);
            passwordField.addActionListener(this);
            JLabel label = new JLabel("Enter the password: ");
            label.setLabelFor(passwordField);
            JComponent buttonPane = createButtonPanel();
            //Lay out everything.
            JPanel textPane = new JPanel(new FlowLayout(FlowLayout.TRAILING));
            textPane.add(label);
            textPane.add(passwordField);
            add(textPane);
            add(buttonPane);
        protected JComponent createButtonPanel() {
            JPanel p = new JPanel(new GridLayout(0,1));
            JButton okButton = new JButton("OK");
            JButton helpButton = new JButton("Help");
            okButton.setActionCommand(OK);
            helpButton.setActionCommand(HELP);
            okButton.addActionListener(this);
            helpButton.addActionListener(this);
            p.add(okButton);
            p.add(helpButton);
            return p;
        public void actionPerformed(ActionEvent e) {
            String cmd = e.getActionCommand();
            if (OK.equals(cmd)) { //Process the password.
                char[] input = passwordField.getPassword();
                if (isPasswordCorrect(input)) {
                 //   JOptionPane.showMessageDialog(controllingFrame,
                 //       "Success! You typed the right password.");
                      jLabel1 = new javax.swing.JLabel();
                     jLabel2 = new javax.swing.JLabel();
                     jLabel3 = new javax.swing.JLabel();
                     jTextField1 = new javax.swing.JTextField();
                     jTextField2 = new javax.swing.JTextField();
                     jTextField3 = new javax.swing.JTextField();
                     jLabel1.setText("Name: ");
                     jLabel2.setText("Age: ");
                     jLabel3.setText("Height: ");
                     jTextField1.setText("jTextField1");
                     jTextField2.setText("jTextField2");
                     jTextField3.setText("jTextField3");
                     javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
                     getContentPane().setLayout(layout);
                     layout.setHorizontalGroup(
                         layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                         .addGroup(layout.createSequentialGroup()
                             .addGap(23, 23, 23)
                             .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                 .addGroup(layout.createSequentialGroup()
                                     .addComponent(jLabel1)
                                     .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                     .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                 .addGroup(layout.createSequentialGroup()
                                     .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                         .addComponent(jLabel2)
                                         .addComponent(jLabel3))
                                     .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                     .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                         .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                         .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                             .addContainerGap(274, Short.MAX_VALUE))
                     layout.setVerticalGroup(
                         layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                         .addGroup(layout.createSequentialGroup()
                             .addGap(23, 23, 23)
                             .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                 .addComponent(jLabel1)
                                 .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                             .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                             .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                 .addComponent(jLabel2)
                                 .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                             .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                             .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                 .addComponent(jLabel3)
                                 .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                             .addContainerGap(205, Short.MAX_VALUE))
                     pack();
                } else {
                    JOptionPane.showMessageDialog(controllingFrame,
                        "Invalid password. Try again.",
                        "Error Message",
                        JOptionPane.ERROR_MESSAGE);
                //Zero out the possible password, for security.
                Arrays.fill(input, '0');
                passwordField.selectAll();
                resetFocus();
            } else { //The user has asked for help.
                JOptionPane.showMessageDialog(controllingFrame,
                    "You can get the password by searching this example's\n"
                  + "source code for the string \"correctPassword\".\n"
                  + "Or look at the section How to Use Password Fields in\n"
                  + "the components section of The Java Tutorial.");
         * Checks the passed-in array against the correct password.
         * After this method returns, you should invoke eraseArray
         * on the passed-in array.
        private static boolean isPasswordCorrect(char[] input) {
            boolean isCorrect = true;
            char[] correctPassword = { 'b', 'u'};
            if (input.length != correctPassword.length) {
                isCorrect = false;
            } else {
                isCorrect = Arrays.equals (input, correctPassword);
            //Zero out the password.
            Arrays.fill(correctPassword,'0');
            return isCorrect;
        //Must be called from the event dispatch thread.
        protected void resetFocus() {
            passwordField.requestFocusInWindow();
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from the
         * event dispatch thread.
        class test2 extends javax.swing.JFrame {
            public test2() {
                initComponents();
            private void initComponents() {
                jPanel1 = new javax.swing.JPanel();
                jButton1 = new javax.swing.JButton();
                jButton2 = new javax.swing.JButton();
                setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
                jButton1.setText("jButton1");
                jButton2.setText("jButton2");
                javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
                jPanel1.setLayout(jPanel1Layout);
                jPanel1Layout.setHorizontalGroup(
                    jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jButton1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jButton2)
                        .addContainerGap(196, Short.MAX_VALUE))
                jPanel1Layout.setVerticalGroup(
                    jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButton1)
                            .addComponent(jButton2))
                        .addContainerGap(174, Short.MAX_VALUE))
                javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
                getContentPane().setLayout(layout);
                layout.setHorizontalGroup(
                    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(24, Short.MAX_VALUE))
                layout.setVerticalGroup(
                    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(92, Short.MAX_VALUE))
                pack();
            }// </editor-fold>
             * @param args the command line arguments
            // Variables declaration - do not modify
            private javax.swing.JButton jButton1;
            private javax.swing.JButton jButton2;
            private javax.swing.JPanel jPanel1;
            // End of variables declaration
        private static void createAndShowGUI() {
            //Create and set up the window.
            JFrame frame = new JFrame("PasswordDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Create and set up the content pane.
            final PasswordDemo newContentPane = new PasswordDemo(frame);
            newContentPane.setOpaque(true); //content panes must be opaque
            frame.setContentPane(newContentPane);
            //Make sure the focus goes to the right component
            //whenever the frame is initially given the focus.
            frame.addWindowListener(new WindowAdapter() {
                public void windowActivated(WindowEvent e) {
                    newContentPane.resetFocus();
            //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();
    }Alright so i applied what you told me and tried to insert a new JFrame window with buttons and text fields. But i keep getting errors getContentPane() and the pack() in the end. I really can't figure out whats causing the error.
    Edited by: 860597 on May 22, 2011 3:37 PM

  • YOUR PC CAN'T PROJECT TO ANOTHER SCREENS

    Earlier i have installed a windows 8.1 (32bit) opertiang system then i was able to use another monitor just by using a VGA cable with HDMI connector and it was perfectly working fine. Then i have installed the same OS of 64 bit now even i have installed all the drivers still not able to use the monitor each time this give error " your pc can't project to another screen" i have also installed the driver of graphics card then i cam to know through various sources that i need to update the graphics driver then i have downloded the latest graphics driver directly from the site of nvidia but still this problem persists. Please help as i have invested a lot of hours to resolve this issue but unable to do anything.

    Hi @anurag_bito9912
    Welcome to the HP Support Community! I see that you are having some issue connecting your notebook to another monitor. That is a very odd issue. Where did you get Windows 8.1 32-bit to begin with, as there are no 32 bit drivers for your model? What was your original operating system?
    I would recommend that you use the graphics drivers from HP instead of those from Nvidia as you have switchable graphics and they are configured by manufacturer of the notebook not the manufacturer of the notebook.
    Intel High-Definition Graphics Driver
    NVIDIA High-Definition Graphics Drivers
    Please click “Accept as Solution ” if you feel my post solved your issue.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Thank you,
    BHK6
    I work on behalf of HP

  • Problem with the selection screen in submit program

    Hi Friends,
    i am facing the problem wih the selection screen in submit program. in my Module pool program i am using the submit program statement, When i execute the program , The module program display the submit program selections creen.
    I have implemented the code same as below.
    submit ztest with tknum =p_tknum and  return.
    Can you pleaes help me how to avoid the submit program selection screen.
    Thanks,
    Charan

    Hi Charan,
    You have to give the selection screen values when you submit a job.
    Press F1 on submit and you will see more details.
    Here is an example from ABAP Documentation.
    Program accessed
    REPORT report1.
    DATA text(10) TYPE c.
    SELECTION-SCREEN BEGIN OF SCREEN 1100.
      SELECT-OPTIONS: selcrit1 FOR text,
                      selcrit2 FOR text.
    SELECTION-SCREEN END OF SCREEN 1100.
    Calling program
    REPORT report2.
         DATA: text(10)   TYPE c,
          rspar_tab  TYPE TABLE OF rsparams,
          rspar_line LIKE LINE OF rspar_tab,
          range_tab  LIKE RANGE OF text,
          range_line LIKE LINE OF range_tab.
    rspar_line-selname = 'SELCRIT1'.
    rspar_line-kind    = 'S'.
    rspar_line-sign    = 'I'.
    rspar_line-option  = 'EQ'.
    rspar_line-low     = 'ABAP'.
    APPEND rspar_line TO rspar_tab.
    range_line-sign   = 'E'.
    range_line-option = 'EQ'.
    range_line-low    = 'H'.
    APPEND range_line TO range_tab.
    range_line-sign   = 'E'.
    range_line-option = 'EQ'.
    range_line-low    = 'K'.
    APPEND range_line TO range_tab.
    SUBMIT report1 USING SELECTION-SCREEN '1100'
                   WITH SELECTION-TABLE rspar_tab
                   WITH selcrit2 BETWEEN 'H' AND 'K'
                   WITH selcrit2 IN range_tab
                   AND RETURN.
    Regards,
    Jovito.

  • How do I pass SELECT-OPTIONS to another screen via CALL TRANSACTION?

    Good day, everyone!
    I am writing a program that will be passing PARAMETERS and SELECT-OPTIONS values to another transaction via the CALL TRANSACTION statement.  I'm new at this, and I've run into a problem.  I have several fields that are defined as SELECT-OPTIONS, like so:
    SELECT-OPTIONS so_ccode FOR fkkop-bukrs.
    The user may select multiple values, enter a range, exclude certain values, etc. -- the things a SELECT-OPTIONS allows.
    But how do I pass all of this to a field on another screen using CALL TRANSACTION when I only have two fields (BDCDATA-FNAM and BDCDATA-FVAL) available to me?  That works fine for PARAMETERS, but I can send low/high values, different signs/options, etc. for the SELECT-OPTIONS variables.
    Please help!!  Points awarded for all helpful answers.
    Thank you,
    Dave

    Don't use CALL TRANSACTION. Use SUBMIT instead.
    Rob

  • Clicking on a link to access another page or site does not work.

    This condition exists for all sites including e-mails requiring a click to access another site.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • Problem with accessing parameter in HTML client, Access is not possible before created.

    I have one Screen in which I set a date.
    I pass the date to another Screen. In this screen I have a tile list showing all the busses and I want to show the current number of orders of the passed date for each bus.
    So I created a custom field in the tile for showing the amount of orders,  and it workes fine for a hardcoded date.
    But I have no access to the passed parameter, because it is to early.
    I get access after Screen.created to the Parameter, but there it is too late, because the list is already created with 0 as order Count.
    myapp.freieBusse.bkz1_render = function (element, contentItem) {
    var querybus = contentItem.value;
    // var querydatum = new Date(); <=== This works fine for today
    var querydatum = screen.queryDatumScreen; <== queryDatumScreen = Null at this Moment.
    myapp.activeDataWorkspace.wksqlData.QueryDispoByDatAndBus(querybus,querydatum).execute().then(function (results) {
    var countDispo = CountDispo(results);
    element.innerHTML = countDispo;
    function CountDispo(disposaetze) {
    var totalDisp = 0;
    var dispos = disposaetze.results;
    dispos.forEach(function (dispo) {
    totalDisp = totalDisp + 1;
    return totalDisp;
    How can I get an eralier Access to the Parameter. Or how can I manipulate the order Count of each row in the created of the Screen?
    Helmut

    The result is as slow that you can count the order with your fingers, but it works.
    If you use a
    WCF RIA Service the result will be fast. The calculations are performed inside SQL server and returned to the LightSwitch client in a single call per page.
    You can also use a Web API call but for a table of data it actually takes a lot of careful JavaScript code and you lose the drag and drop and strong typing in the HTML designer.
    Unleash the Power - Get the LightSwitch 2013 HTML Client / SharePoint 2013 book
    http://LightSwitchHelpWebsite.com

  • Problem  to access my count in adobe Digital Editions

    Dear,
    I`ve problem to access my count in Adobe Digital Edition, I bought an eBook in pdf format and when try read it, ask me to get in for  my ID and password ind Adobe Digital Editions,  report that there is another user use my licence.
    Thus, I know that I`ve got 6 licence  for Adobe Digital Editions.

    Adobe ID, sign-in, and account help

  • Slow while going from one screen to another screen

    Hi,
          I have installed SAP 4.7 version. The hardware of system is 3GHz processor and 1 GB RAM.  It is taking more time while going one screen to another. So after entering XD01 or any tcode , I have to wait for seconds some times 10 second to a get a screen and  getting a screen form another screen.
    Can any one tell me reason for this and how can be this issue resolved.
    Thanks,
    Manas

    When using system for the first time, a lot of compiling still has to be done which takes time, but also the fact that your system 'only'  has 1 GB RAM, could cause these problems as well. According to requirements, 1GB should be enough, but I would recommend at least 2GB.

Maybe you are looking for

  • Canon MF4150 not compatible with Lion.

    Hello, I upgraded to Lion and since my Canon Image Class MF4150 doesn't want to print anymore. I checked the Canon's website and no drivers are out yet to support Lion. Canon UFR II Driver Error : Printer open failed.: -9781 Anyone have a workaround

  • Using Olive software in iWeb

    Has anyone ever created an iWeb site and used Olive Software to show a catalog or book? Just wondering if it will work. http://www.olivesoftware.com thanks

  • ITunes 9.0.1 VS. 9.0.2

    Hi all, I have a question regarding the new iTunes 9.0.2. If I downloaded would it affect my songs in the library that in the previous version. I mean do I need to import or add the songs again in the library if I download the new iTunes 9.0.2. Thank

  • BUG? New instances created in jdoPrestore do not get commited

    Any persistent objects created in jdoPrestore() do not get committed to database (calling makeTransactional() explicitly does not make any difference)

  • Issue in Step 12-Maintain User Assignment in Portal (RSPOR_SETUP)

    Hi, I had issue with step 12--Maintain User Assignment in Portal when running prog RSPOR_SETUP [to setup BEx Web configuration] with error " System failure during call of function module RSWR_RFC_SERVICE_TEST". Note: BI certificate was already export