Ssd access freeze windows 7/8

i had corsair force 128GB on my macbook pro. i installed mac os and windows 7 as bootcamp. i had no problem except disk space. i bought neutron 256gb. i have problems on windows 7. it is like it freeze on disk access. so windows 7 is so slow. i wait for seconds to open a windows. mac os works well like on corsair force. i have also parallels. i can run the same windows 7 in parallels well. it is fast. i installed the latest bootcamp drivers. now i upgraded window 7 to window 8: i have the same problem. what can i do?

i have  an activex dll.
Allow me to explain the whole picture here, I have an API developed for Windows environment that integrates with a third-party camera drivers, of which I have a 32 bit version and a 64 bit version... both work well on desktop environments without any problem.
Recently, I was asked to export my API for web access so that people can integrate my API with their web pages just like they do on desktop applications to call my camera, basically a Web API
I'm no expert in web so I did my research, and with the limited information I have, I found a way to expose my API by registering the assembly of an exposed dll that I created using the .Net regasm tool. This worked fine on 32 bit machines with one setback:
I had to Enable the "Initialize and script ActiveX controls not marked as safe for scripting" from IE options, but now when I tried to do the same thing on a 64 bit machine, it didn't work. I used the 64 bit regasm tool this time just like I'm suppose
to do, and I was able to register successfully using the same command "regasm mydll.dll /register /codebase /tlb" 
Now when I try to initiate the call to my API through JavaScript such as
var myAx = new ActiveXObject("MyAPI.WebInterface");
I keep getting the error message "Automation server can't create object" even though my settings are the same as the 32 bit machine and I used the 64 bit IE here. I tried using my 32 bit version of the API on the 64 bit machine after registering it
correctly of course, and I managed to get passed that point, but my 32 bit API cannot call the 64 bit camera driver, so it wont do for this case.
Is there any specific command I need to add in order to register correctly on 64 bit machines? Is this the right way to expose my API for web use?? and is there a way I can support all browsers at the same time, noting that this only works on IE?? please advice

Similar Messages

  • MS Access Freezes and Closes when I save a draft email via Outlook 2013

    I have Access 2013 Office 365.  When I email a report from access via Outlook 2013 I have problems.  Outlook opens fine. If I hit send everything is fine. However if I save the email as a draft Access freezes and then closes after a 10- 15 sec delay.
    The email is saved as a draft in Outlook but very annoying to have to reopen my Database .
    The message I get is : MS Access has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available
    I tried compact and repair but that didn't help. Also tried turned of add ons. That didn't work.
    Never had this problem with office 2010.  What can I do?
    I just discovered the same thing  is happening in Excel and Word.

    Hi all,
    Thanks for visiting our forum and sharing your experience here. It'll be benefited to our communicator.
    Have a good time.
    Regards,
    George Zhao
    TechNet Community Support

  • I can't open mail on Hotmail from Firefox. I can from Safari. I can open the Hotmail account page and it is complete w/ my new messages, but when I go to open them I get this messeage..."Please refresh your browser window. When you access your Windows Liv

    I can't open mail on Hotmail from Firefox. I can from Safari. I can open the Hotmail account page and it is complete w/ my new messages, but when I go to open them I get this messeage..."Please refresh your browser window. When you access your Windows Live Hotmail account from more than one computer, we ask you to sign in again to help keep your account private and secure. " when I sign in again there is no change. in English
    == URL of affected sites ==
    http://http://sn135w.snt135.mail.live.com/default.aspx?n=2087215863
    == User Agent ==
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

    "Clear the Cache": Firefox > Preferences > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove the Cookies" from sites causing problems: Firefox > Preferences > Privacy > Cookies: "Show Cookies"
    See http://kb.mozillazine.org/Clearing_the_cache and http://kb.mozillazine.org/Cookies

  • How can I disable remote access connection window ?

    When I try to connect (via TCP/IP) with a VI in another PC (in my local network) it appears the remote access connection window.
    How can I disable this (programmatically if possible) ?
    A big thanks for your answers.
    Linus

    Randy,
    attached the image of the Remote Access Connection Window that appears when I connect to the VI.
    It is the Operating System (Windows) classical panel for Remote Access connections using a modem.
    Many thanks.
    Linus
    Attachments:
    Remote_Access.jpg ‏22 KB

  • How can I disable the access to windows 2000(O.S.) from LabView?

    I need to disable the access to windows when an application (exe), created by LabView, is running. When the application is running, the user can not acces to windows (for example, execute another application) until he stops the application.
    I am using LabView 6.1 and windows 2000
    Many Thanks

    Hi Francesc,
    There are a couple of options for this. One of them could be calling Windows OS activex components and making the Desktop invisible through labVIEW and then bringing it back on after the LabVIEW execution is stopped.
    The other option is to modify user settings on the target machine. I have tried this on windows 2000 and it works.
    Run "gpedit.msc" from your start menu. In the Group Policy template choose the user configuration that you wish to make the settings for. Expand User Configuration , expand Administrative Templates , and then expand System. Choose 'Custom user interface'
    In this panel select 'Enabled' and enter the interface file name, in this case C:\Program Files\National Instruments\Labview 6.1.exe. (or your own filepath\App
    lication.exe). Reboot the machine.
    This replaces the default windows shell (explorer.exe) with your LabVIEW executable. When the operator logs on, the only thing on his screen is the Labview application. No desktop, no taskbar, no start button.
    This can also be done through LabVIEW using register-level programming. But it would be a more complex approach.
    Hope this helps.
    Regards,
    Pravin Borade
    Applications Engineer, National Instruments

  • How can I access the window so I can download to adobe and run the file rather than save it

    By mistake I put a check mark in the window box to save my downloads to documents. I want to send them directly to adobe so they can be seen. How do I access this window?

    hello, you can change that setting in firefox/tools > options > applications - there you can define the default action for the file-type in question (that will probably be '''portable document format (pdf)''' in your case).
    [[View PDF files in Firefox without downloading them]]
    [[Set how Firefox handles different types of files]]

  • Operations Manager Failed to Access the Windows Event Log and management server is showing warning state

    Hi,
    I am monitoring AD server from SCOM 2012 R2. My management server goes into waning state. When i run Health explorer then it come back in the healthy state but after some time it again goes into warning state. After seeing alert i found that a alert is coming
    again and again i.e.  Operations Manager Failed to Access the Windows Event Log.The description of alert is mention below
    The Windows Event Log Provider is still unable to open the DhcpAdminEvents event log on computer 'nc2vws12ad5.corp.nathcorp.com'.
    The Provider has been unable to open the DhcpAdminEvents event log for 64080 seconds.
    Most recent error details: The RPC server is unavailable.
    Please suggest me how to resolve this so that my management server will again come back in healthy state.
    Thanks
    Abhishek

    Hi Abhishek,
    As i mentioned earlier the Alert resolution says the same points.
    Can you give details on the below ?
    Is there really a log named "Dhcpadminevents" in the MS's Event viewer ?
    Did you recently configure any new alert where you mentioned "Dhcpadminevents"
    as a event log location ?
    If yes then what is the target you selected for the rule / monitor there ?
    Can you post the results for analysis ?
    Gautam.75801

  • Connecting to MS Access In Windows 7 64-Bit

    Hi.
    As usual, Microsoft has done its best to make this as difficult as possible. The essence of a solution to this problem that I found at http://sushantnayak.wordpress.com/2010/10/25/connect-ms-access-using-jdbc-odbc-in-windows-7-64-bit/ is as follows:
    1. Download and run AccessDatabaseEngine_x64.exe
    (http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c06b8369-60dd-4b64-a44b-84b371ede16d&displaylang=en)
    2. Change the connection string in your code to:
    Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ= <-db name and path here
    Though the author of the tip had used VB to make the connection, it looked as though the same technique should work with Java. However, I found that the attempted connection kept generating an SQLException. The code that I tried to run is shown below.
    import java.sql.*;
    public class JDBCTest2
    public static void main(String[] args)
    Connection connection = null;
    Statement statement = null;
    ResultSet results = null;
    String fileName = "F:\\Temp\\Finances.mdb";
    I also tried the following (with different fields below):
    String fileName = "F:\\Temp\\ExamResults.accdb";
    String dbString =
    "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ="
    + fileName + ";DriverID=22;READONLY=false}";
    //I also tried the above without ';DriverID=22;READONLY=false', but the
    //result was exactly the same.
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    connection = DriverManager.getConnection(dbString, "", "");
    catch (ClassNotFoundException cnfEx)
    System.out.println("* Unable to load driver! *");
    System.exit(1);
    catch (SQLException sqlEx)
    System.out.println("* Cannot connect to database! *");
    //The above message was displayed.
    System.exit(1);
    try
    statement = connection.createStatement();
    results = statement.executeQuery("SELECT * FROM Accounts");
    catch (SQLException sqlEx)
    System.out.println("* Cannot execute query! *");
    System.exit(1);
    try
    while(results.next())
    System.out.println("Account no. " + results.getInt(1));
    System.out.println("Account holder: " + results.getString(3)
    + " " + results.getString(2));
    System.out.printf("Balance: %.2f %n%n",results.getFloat(4));
    catch (SQLException sqlEx)
    System.out.println("* Error retrieving data! *");
    System.exit(1);
    Any help in solving this problem would be most appreciated.
    Thanks.
    Jan ('Yan')

    I believe that my problem may be due to using a 32-bit Access database, rather than a 64-bit one. I am fully aware of how to use c:\windows\syswow64\odbcad32.exe to get round the problem of setting up the required ODBC data source, and that is what I shall be making use of for at least the next year, as I have just been informed that it will be the 32-bit version of MS Access (with Windows 7) that will be used at my institution for the coming academic session. (I lecture at a university.)
    As a consequence of the above, it turns out that I don't really have a problem for the foreseeable future. However, I would like to know (for personal satisfaction, if nothing else) whether the test program would work if it were used with a 64-bit Access database. Unfortunately, it looks as though I won't have the use of a 64-bit version of Access. Consequently, I would be most grateful if anybody out there could try out my test program with 64-bit Access. Obviously, the appropriate database would need to be set up (or an existing one used and the name/path changed accordingly), but the fields wouldn't even have to be set up to match mine. As long as the program gets past the 'Cannot connect to database error message', I'll be happy.
    Thanks.
    Jan

  • I have a mac mini server which I want to set up for remote access from windows and mac pcs.  How do I do this.  I can access it form my home network OK

    I have a mac mini server which I want to set up for remote access from windows and mac pcs.  How do I do this.  I can access it form my home network OK

    Posted in error.

  • New SSD in T430, Windows not loading, tried everything...

    Hi there,
    I bought a T430 about a week ago. I'm not completely inept with computers: I successfully added another 4GB of RAM with no problems.
    Then I wanted to replace my HDD with my SSD. I know the SSD works because it was in another laptop. I put it in an external dock; hooked it up to my T430; cleared it. I have kept the HDD as a safe backup, which I have used repeatedly since. I also made a Windows recovery disc on a CD.
    I cloned the HDD onto my SSD using EaseUS software and told it to make it bootable. It didn't for me, so I blamed the software.
    I then used Acronis True Image to make a bootable copy of my setup on a USB drive. I turned the computer on with just the (blank) SSD and tried to load the USB. The computer refuses to recognize the bootable copy point blank. Just brings me back to a screen asking me which drive I want to boot from repeatedly.
    Alright then, I said, clone the HDD onto the SSD and then try the USB bootable. Did that, but it made no impact. Same problem as above.
    Okay, let's try a fresh install on the SSD by using the recovery disc. This is when the real fun happens. I get to the Lenovo-themed System Recovery menu, and I click Next. Then I get an alert box saying "This version of System Recovery Options is not compatible with the version of Windows you are trying to repair. Try using a recovery disc that is compatible with this version of Windows." What? I only made it this morning. I don't think there has been any major updates to Windows since then! (Just in case, I made an even newer recovery disc tonight. I got the same error.)
    I then cleared the SSD and tried the recovery disc on the clean SSD. Same error again. The recovery discs aren't working, the system is not recognizing the USB copy, and the cloned (and supposedly boot-ready) SSD won't boot.
    What's going on? All I am trying to do is replace my HDD with my SSD, and run Windows 7. I didn't think it would be this hard
    Some extra points:
    - I am inserting the drives. The computer can read that it's a Samsung 840 series SSD.
    - There is no problem with the USB. My desktop can read it just fine, and sees that there is 29GB of stuff there.
    - I have changed the boot order in the BIOS to load the USB (or CD) drive first.
    - I have disabled the secure startup option in the BIOS.
    - I have tried Legacy, UEFI, mixture of both, etc etc.
    - Yes, it's a legit copy of Windows. It came with the computer a week ago. There is [i]maybe[/i] an issue that I'm looking to reinstall Windows 7 onto the SSD, but the only recovery discs that come with the computer are Windows 8... but then how do I get Win 7 onto my SSD?
    - I have searched the forums. None of the suggested solutions (mostly listed above) have worked.
    Any help would be much appreciated, folks.
    Solved!
    Go to Solution.

    I had one extra hiccup. The Windows 7 disc could not locate the activation/product key on the BIOS. Neither could any of the semi-questionable programs that I downloaded. So I could not authorize Windows 7.
    I called Lenovo. They said it was my fault for using Windows recovery discs instead of Lenovo recovery discs. (Heaven forbid! It really should not matter. It is a terrible approach on the part of Lenovo that their initial recovery discs gave me an error about licensing, but yet they seemingly don't support the stock Windows recovery discs.) Anyway, after I told the agent - in my polite way - that this was a ridiculous scenario, she offered to send me out Lenovo recovery discs.
    I accepted. They arrived today. I reinstalled Windows, and now everything is running just fine.
    In case anyone in the future reads this thread: ask Lenovo to send you out Win 7 Pro recovery discs, and use them after you install the SSD. It makes the process much easier.

  • Installed my SSD from my Windows 8 PC onto it getting the bootmgr is missing. I formatted the SSD but when I try and plug in my external harddrive to restore my mac settings I backed up using time machine, the computer doesn't show it as an option.

    I recently bought a MacBook Pro. I had a windows 8 pc that had hardware issues that didn't deal with the harddrive. When I got the mbp, I installed the SSD from my windows 8 pc into the macbook. Before doing this, I made a time machine backup on my external hard drive. When I booted up the macbook pro with the windows 8 SSD in it, windows 8 started up. I tried formating the harddrive from within windows but it wouldn't work. From there, I put a spare windows 7 ultimate disk into the macbook and formatted the hard drive using that. Now, bootmgr is missing error keeps coming up and I can't put my time maching backup onto the macbook. Quick replies are appreciated, thanks!

    You need to boot from an OS X installer disc compatible with this model's hardware or you must connect it by Target Disk Mode - Target Disk Mode - so you can re-partition and reformat the hard drive before you can install Mountain Lion on it or any other version of OS X. Here's the process:
    Drive Partition and Format
    1. Boot from your OS X Installer Disc. After the installer loads select your language and click on the Continue button.  When the menu bar appears select Disk Utility from the Utilities menu.
    If you are preparing an external or a non-startup drive, then open Disk Utility in your Utilities folder.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Security button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.

  • IPod (with video) freezes Windows XP - POSSIBLE SOLUTION

    Hi everyone,
    I bought a 5g 30gig iPod with video a few days ago, and immediately ran into the "iPod freezes Windows when connected via USB 2.0" problem. I read through every possible post on this website, on iLounge, on Microsoft's forums, etc. There seems to be quite a substantial number of people running into this problem, because I've been seeing posts about this all over the place.
    My specific problem was that whenever I plugged in my iPod, the iPod would display "do not disconnect" and iTunes would begin to recognize it - sometimes it would reach the point where it would begin to update - and then the computer would completely freeze. The iPod would "disconnect" and be completely usable, but the computer would not respond to anything what-so-ever. I had to perform a hard restart to get the computer usable again. No error messages, no "ctrl-alt-del" saves, nothing. It would also lock in the same exact way if I just plugged the iPod in without starting iTunes (iTunes wouldn't automatically start, computer would just lock up after a few moments).
    Anyway, my problem was solved through a procedure I saw in a post somewhere (I'm pretty sure it was on these forums, actually). Basically, it seems as though there is some sort of conflict between iTunes, Quicktime, and Symantec's anti-virus.
    The process is pretty simple - completely turn off whatever version of Symantec you're using (Norton AntiVirus, Firewall, whatever... I'm running Symantec Corporate AntiVirus 10). Then, uninstall Quicktime and iTunes (it might not be absolutely necessary to completely uninstall iTunes - I uninstalled Quicktime and then "repaired" the iTunes installation).
    This seemed to resolve the situation entirely - I've updated my iPod three times now, and charged it, with no problems. Hopefully this continue to work... !
    Incidentally, I think it's disgusting that this seems to be such a prevalent problem, yet Apple so far refuses to acknowlege its existence, much less provide a solution. As a long-time Windows/Microsoft user (notice I didn't say 'fan'), I expected much more from Apple.
    Anyway, good luck!
    - Damion
    IBM Thinkpad x30   Windows XP Pro   Pentium IIIm 1.3ghz, 768mb RAM

    Hi!
    I have the same problem, though using iPod Touch.
    My PC crashes just after charging sound on th iPod sounds.
    I can be loggen on or not.
    I have tried the 5R's two times
    I have removed SP3, didn't help.
    I have updated to iTunes 8.0.1: Didn't help.
    But I have an portable PC (job PC) where it is working fine, both PC's using XP Pro, english version.
    So, just now, I am very dissapointed bu the Apple products (and it took me 20 years of Software Engineering before i bought something from Apple ..... )
    So the stress test will be: Will Apple do anything with this ?

  • The latest version of iTunes will not work with my windows platforms. It cannot access the windows runtime library.

    The latest iTunes can't access my windows (including Vista 32 & 64bit, nor Windows 7 64 bit and 32 bit versions) "Runtime" library. I've tried reloading the windows suggested .dll as well as doing a system restore and also downloaded the iTunes update and load it manually, but nothing will work. Is Apple aware of the problem and planning to release a fix, or do I have to abandon iTunes and my iPod?

    Hello there, Enantiomer.
    The following Knowledge Base article provides some recommendations for troubleshooting:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Check for .dll files
    Go to C:\Program Files (x86)\iTunes and C:\Program Files\iTunes and look for .dll files.
    If you find QTMovie.DLL, or any other .dll files, move them to the desktop.
    Reboot your computer.
    Note: Depending on your operating system, you may only have one of the listed paths.
    Uninstall and reinstall iTunes
    Uninstall iTunes and all of its related components.
    Reboot your computer. If you can't uninstall a piece of Apple software, try using the Microsoft Program Install and Uninstall Utility.
    Re-download and reinstall iTunes 11.1.4.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • 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

  • Can't access my windows dashboard

    Hello,
    Since few days i can't access my windows store dashboard but can access windows phone dashboard. Is anyone facing such problem? Any solution?
    -Janak

    Hello Janaks,
    Are you still experiencing issues with signing into your developer dashboard? 
    If so, please try using IE11 InPrivate Browsing.  If that still doesn't work please open a support ticket with:
    Dev Center Support.
    -Miles
    Windows and Windows Phone Dev Center Support
    Send us your feedback about the Windows Platform

Maybe you are looking for

  • Storage Location wise stock report

    Can any one let me learn, How to get storage location wise & selected date wise stock report in standard SAP

  • 3.0.02 EA1 - Edit table data in a grid

    Editing table data in a grid is broken in 3.0.02 EA1 under Windows XP Pro SP3 Bug #1: When not in editing mode the cursor keys must move the focus from a cell to cell. Instead an edit mode is activated Bug #2: There is no way to leave cell edit mode

  • Using waveform element to build arrays

    Hello, there, from this forum, I learned that i can use "get waveform components" to extra time and data from waveforms.  great.  but how do i build an array and output it to a file?  does it come as a strand of arrays as it is?  or do i need to loop

  • XMII Result Output Scenario

    I have 3 Machines 1) Web Server (Running Tomcat Server, Open to Public) 2) xMII Server (Open to Web Server) 2) SQL Database (Open to Both Web & xMII Server) I have created a dashboard on xMII Server using data stored in SQL Server. Now, I want this d

  • Extra bytes at the end of class file error

    I have created an applet. it worked fine when i ran it with appletviewer. it ran fine when i opened it with a browser (when it still was on my computer and not on the net). now, when i uploaded all the files, when try to open the page where my applet