Swing application crashes in while loop

The following code is a fragment from a battleships game using Swing.
Once the user has placed all their ships on the board, this function is called. The problem is, it does not allow the user to guess the computers ships location. When a location on the comkputers grid is clicked nothing happens. Is the while loop looping too fast for the app to recognise that a button has been clicked?
private void startGame(){   
          //while somebody hasnt guessed all their opponents ships
          while (!(isGameOver())){
               //if users turn                             
              if(myTurn)
                    //set value of last button clicked to -1
                    NumberOfLastButtonClicked = -1;
                    //enable buttons for user
                   enableButtons(false, true);     
                   //add note on screen to indicate it is the user's turn
                   appendToStatus("Guess opponents fleet locations:");              
                    //this loops around until the variable has been assigned a value between
                    //0 and 99 i.e a button has been clicked
                   while (NumberOfLastButtonClicked==-1){
                    //disable buttons for user
                    disableButtons(false, true);
                    //set user turn to false
                    myTurn = false;
              //its computers turn
              else
                   //computer takes a guess
                   computerGuess();
                   //set user turn to true
                   myTurn=true;
             //execute code to finish game
             endGame();
    }

You immediately turn disable the users buttons after telling them it's their turn. I'm guessing that's not what you want to do.
The style of programming you are using here is polling. This is a problematic way to do things.
Instead of looping and looking to see what was selected, you should have the users input trigger the processing directly. Add a listener to the button that sets the my turn state and calls the a game() method.

Similar Messages

  • Slow performance of application with 2 while-loops

    I made an application with one while-loop addressing several FP devices which runs as expected in a FP-2015. Loop time is 100 ms.
    If I add another while-loop with a timer, the performance is very slow. How come?

    I tried to do a simular thing, but I did not notice a performance decrease. However it might be possible that this happens. For example, if you are calling a time critical vi in the second while loop, it will lock all other processes until it is finished. Or maybe you are calling a shared resource (allocate an array, access to a file, using a mutex) that the other loop holds. Until the shared resource is released the first while loop must wait before it can access that resource (memory, file, etc.).
    Without looking at the source code it will be hard to say what is causing it. I recommend to remove part by part subVI's from the second loop, to debug where the problem exists. If you want I can have a look at the code, please reply to this thread.
    ErikvH
    A
    pplications Engineering
    National Instruments
    Attachments:
    Digital_Output.vi ‏56 KB

  • Why the execution time increases with a while loop, but not with "Run continuously" ?

    Hi all,
    I have a serious time problem that I don't know how to solve because I don't know exactly where it comes from.
    I command two RF switches via a DAQ card (NI USB-6008). Only one position at the same time can be selected on each switch. Basically, the VI created for this functionnality (by a co-worker) resets all the DAQ outputs, and then activates the desired ones. It has three inputs, two simp0le string controls, and an array of cluster, which contains the list of all the outputs and some informations to know what is connected (specific to my application).
    I use this VI in a complex application, and I get some problems with the execution time, which increased each time I callled the VI, so I made a test VI (TimeTesting.vi) to figure out where the problem came from. In this special VI I record the execution time in a csv file to analyse then with excel.
    After several tests, I found that if I run this test VI with the while loop, the execution time increases at each cycle, but if I remove the while loop and use the "Run continuously" funtionnality, the execution time remains the same. In my top level application I have while loops and events, and so the execution time increases too.
    Could someone explain me why the execution time increases, and how can I avoid that? I attached my test VI and the necessary subVIs, as well as a picture of a graph which shows the execution time with a while loop and with the "run continuously".
    Thanks a lot for your help!
    Solved!
    Go to Solution.
    Attachments:
    TimeTesting.zip ‏70 KB
    Graph.PNG ‏20 KB

    jul7290 wrote:
    Thank you very much for your help! I added the "Clear task" vi and now it works properly.
    If you are still using the RUn Continuously you should stop. That is meant strictly for debugging. In fact, I can't even tell you the last time I ever used it. If you want your code to repeat you should use loops and control the behavior of the code.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Iterate while loop on command

    This seems like it should be a relatively simple application of a while loop, but I can't seem to find the solution :/ Basically I have a string control on my front panel for a filename (minus path/extension), and when I start up the VI I check if the file already exists. If it does, I'd like to start a while-loop in which each subsequent iteration only occurs when the string control is changed by the user.
    The way I have it wired up now works fine (see attached), but it loops every 50 ms even while there's an invalid string. If possible I'd like to pass to the next iteration only after the control value has changed. This way I can display an error dialog of some sort that won't pop up every 50 ms. (Note: this is a piece of code from a subVI, hence the refnums and property nodes.)
    Thank you!
    Attachments:
    input_loop.vi ‏12 KB

    phogan wrote:
    The reason for all the refnums is that I'm trying to check controls that are on the main front panel while I'm within this subVI loop. If you have a better idea than that, feel free to let me know. As far as I know references are the only way to access a control that may be changing once you've already entered a subVI.
    Thanks for the tip on the event structure, I'll give that a shot tomorrow.
    Yes, refs are the only way to control front panel objects from another vi, but do you need to? Send the value to the checking vi and react to that, if need be return a Valid boolean or similar, that's how it's usually done.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Swing application with JavaHelp crashes outside Netbeans IDE.

    Hi guys I have developed a small swing application in Netbeans IDE. I used the following code inside the IDE for JH.
    public void createHelp()
           try {
                   URL hsURL = new URL("jar:file:eDictionaryHelp.jar!/eDictionaryHelp/eDictionary.hs");
                   hs = new HelpSet(null, hsURL);
           catch (Exception ee)
            // Say what the exception really is
            System.out.println( "HelpSet " + ee.getMessage());
            System.out.println("HelpSet "+ helpHS +" not found");
            JOptionPane.showMessageDialog(new JFrame(), ee.getMessage(), "Error", ERROR_MESSAGE);
            hb = hs.createHelpBroker();
       }When I run the program inside the IDE and and click on the corresponding MenuItem.. JavaHelp comes up as it should! No problems with that.
    But when I build the project and tried to run it from the .jar file in the PROJECT_HOME/dist/ the swing got displayed till this function was called. and then it simply crashed.
    Investigating further and commenting out one line at a time and compiling I found out that whenever the hs = new HelpSet(null, hsURL); is encountered, the app crashes (it doesnt throw any error).
    But as I said this is not the case when i run and compile inside the IDE. I only get this problem when running the app from outside the IDE.
    I have tried all kinds of combinations of the URL .. for eg ( I am aware of Bug 4149782)
    ClassLoader cl = this.getClass().getClassLoader();
    try {
                   URL hsURL = HelpSet.findHelpSet(cl, helpHS);
    .What can be the problem guys? Any suggestions?
    Thanks!

    Anyone has an answer on this?
    I am facing the same problem.. I am using NetBeans 5.5
    arijit_datta, do u have a solution for this problem already?
    Thanks,
    SK

  • Application Crash while updating a Bill of Material

    Hi,
    I am currently developing an addon for SAP Business One. When updating a BOM record I have the following problem:
    If i call the Update Method of the ProductTrees Object the SAP Business One Application Crashes with the Error:
    "Runtime Error!
    Programm: E:ProgrammeSAPSAP Business OneSAP Business One.exe
    R6025
    - pure virtual function call"
    The Code i am Calling looks like this:
    Protected Sub closeBundleBillOfMaterial(ByVal sCode As String)
            Dim oRec As SAPbobsCOM.Recordset = cInit.getInstance.getSboCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
            Dim sSQL As String = "SELECT OITT.Code FROM ITT1 INNER JOIN OITT ON ITT1.Father = OITT.Code WHERE ITT1.Code = '" & sCode & "'"
            Dim oBOM As SAPbobsCOM.ProductTrees = cInit.getInstance.getSboCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductTrees)
            Dim iRetVal As Integer = 0
            Dim sItemCode As String = ""
            Try
                oRec.DoQuery(sSQL)
                oRec.MoveFirst()
                While oRec.EoF = False
                    sItemCode = oRec.Fields.Item("Code").Value
                    If oBOM.GetByKey(sItemCode) Then
                        oBOM.UserFields.Fields.Item("U_Status").Value = "C"
                        iRetVal = oBOM.Update()
                        If iRetVal <> 0 Then
                            Throw New Exception("Fehler bei Methode Update in closeBundleBillOfMaterial")
                        End If
                    End If
                    oRec.MoveNext()
                End While
            Catch ex As Exception
                cLog.err("Fehler beim Ermitteln der verbundenen Stücklisten. ", ex)
            Finally
                cUtil.deleteObject(oRec)
            End Try
        End Sub
    My stats are:
    - SAP Business One 8.8 PL 16
    - SQL Server 2008 Standard Edition with SP2
    - Visual Studion 2010
    I hope someone has a solution for this problem. Thanks a lot.
    Regards
    Michael

    Hi experts;
    I´m getting the same error on one of my ADDONS. Did migrating the SAP B1 database to PL 18 Worked? I'm very frustrated with this error. Thanks for your hekp.

  • How do I set while loop priority in an RT Field Point application?

    I have a vi that I want to run in an FP2010 that contains 2 while loops, one must be Time Critical priority and the other Normal or lower priority.  I will be using RT FIFO to transfer data between the two loops. The Normal loop will be used for communication with a Host PC.
    How can I set the priorities of these 2 loops?
    Can I run 2 separate vi's in the FP with each set to a different priority And transfer data between the two with RT FIFO? How?
    I am using V6.1 and the customer does not want to spend on upgrading.
    Thanks,
    Chris

    Chris,
    You are on the right track using two separate VIs with different priorities and using RT FIFOs to communicate between the two.  Please see the following tutorial and the related links, one link of which is an example with a zip file containing the RT FIFO VIs for LabVIEW 6.1.
    Doug M
    Applications Engineer
    National Instruments
    For those unfamiliar with NBC's The Office, my icon is NOT a picture of me

  • Photoshop element 8 opens a Crash report while exiting the application (win 7 64bit).

    photoshop element 8 opens a Crash report while exiting the application (win 7 64bit). however the program itself is working as we can see the saved data and function it.
    However no idea why it opens a crash report when the application exited properly. It's happening almost on 30 computers. re-install PS8 but still the same.
    Appreciate your help

    Yes please i cant find the source anywhere. I have tried in bunch of computer on all or win 7 64bit but couple of them opening the crash report. Having said that program is working with no issues. it just opens the window when i exit from the application
    it happens only under EDIT not on Organise
    I have tried uninstalled and re-installed still it doesnt work
    Appreciate your help

  • Labview Crashes when I try to close my while loops

    Hi
    I have written a LV Vi  for  simultaneously  aquiring a
    video stream from 4  Fire Wire cameras. In this vi I use multiple
    while loops(running parallel).
    Nearly every time I try to stop the VI labView crashes and doesn't respond at all.
    The only chance to stop LV is to close it with the task manager.
    I'm using LV 8.2.
    Has anybody got an idea.
    Thanks a lot
    Matthias

    Hi Mathias,
    this behaviour I experienced often when using large amounts of memory by creating large arrays (with many copies). Another proplem is to create references without closing them, this consumes windows ressources. While the VI runs, is there an increasing use of memory in the task manager?
    When the VI tries to stop, are you able to switch to the block diagram? Then you could activate the highlight mode (debugging) and LV shows, which node is still working with the green arrow at the node.
    Just a few ideas...
    Greets, Dave
    Greets, Dave

  • My ipod 5th gen crashed unexpectedly while i was using my facebook app and then i turned it off thinking it would restart and be alright but when i turned it on like ***?! some of the applications were gone and the setting and appstore and photos are gone

    my ipod 5th gen crashed unexpectedly while i was using my facebook app and then i turned it off thinking it would restart and be alright but when i turned it on like ***?! some of the applications were gone and the setting and appstore and photos and camera are gone like everything that is on it already .. please help me

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup. See:                                                
    iOS: How to back up                                                                                     
    - Restore to factory settings/new iOS device.             
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar                                      

  • The demand of my application is that i can not replace for loop with a while loop.because i need fixed number of iterations and as far as i know fixed iterations could be only with possible with the for loop.

    the demand of my application is that i can not replace for loop with a while loop.because i need fixed number of iterations and as far as i know fixed iterations could be only with possible with the for loop.
    your recommended second option that i could add true/false case.
    this true/false case must be inside the for loop or outside the for loop?if this case is inside the for
    loop, how can i send stop command from outer while
    loop?
    more over do you have any example for this please?
    thanks"

    You can execute a fixed number of iterations using a while loop by comparing the iteration count to the number of iterations you want and wiring the output of that comparison (e.g. Less Than or Equal To) to the continue (or stop) terminal of your while loop. Which comparison you use depends on personal preference, where you wire the desired count and the interation count, and whether you're using the while loop as Continue if True or Stop if True.
    Ben gave you step-by-step instructions in response to your previous question. Look here for Ben's response.
    Ben's response looks pretty good and detailed to me. It certa
    inly deserved better than a 1-star rating.

  • Problem while creating JAR file for my swing application

    Hi...
    Using my swings application I am trying to Run different software�s .
    My program is Running fine from command prompt. If I create JAR file
    It is giving error like �Failed to load Main-Class manifest attribute from .jar�
    Can anybody help me to creating JAR file
    Thanks in advance
    Cheers
    Mallik

    hi,
    User following command
    jar-cmf textfile_name.txt Jarfile_name *
    here you have to make manifest file
    and making jar file you have reach there by command promt
    and manifest file have some constraint also as well as format
    format are
    Manifest-Version: 1.0
    Class-path: jar file name which are using in app separed by space
    Created-By: 1.5.0 (Sun Microsystems Inc.)
    Main-Class: Main class name
    and end of file is not have carriage return

  • Java Application Crash while loading a 64-bit DLL

    Hi there,
    I'm calling native C++ functions from a 64-bit DLL through a java application. But the application crashes with the below crash exception when the DLL is loaded.
    # A fatal error has been detected by the Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000047e0b754, pid=976, ti
    d=968
    # JRE version: 6.0_16-b01
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (14.2-b01 mixed mode windows-amd64
    # Problematic frame:
    # C [mkl_def.dll+0x8b754]
    # An error report file with more information is saved as:
    # C:\Documents and Settings\hw3h6\Desktop\hs_err_pid976.log
    What will be the possible cause of the issue? Is it something which can be corrected from my java application?
    The application is built in 32-bit environment, but I think thats not an issue because java is platform-independent.

    ajithcherukad wrote:
    What will be the possible cause of the issue?Pointer bug.
    Is it something which can be corrected from my java application?Java? Only possibility there is don't use the C++ code.
    >
    The application is built in 32-bit environment, but I think thats not an issue because java is platform-independent.That has absolutely nothing to do with it. The C++ code isn't. Nor is the dll (dll by its very nature is platform dependent.)

  • Can we run two while loops independently in one application?

    I am acquiring two channels using PCI-6052.both channels to be read at 2ks/s,but I want to scans read at a time different for each channel,So I put two AI-read vi's in two different while loops.but the second while loop waits until the first is completed.Can we run independently both while loops?

    Dear Haider Abbas,
    you can scan two different channels at the same time with the same AI Read if your hardware device is cabable of it, e.g. you must have one A/D converter for each channel. If you have one A/D converter only and your channels are multiplexed then it won't work.
    You can try running both loops indepentendly by using delays but in this case the data acquisition will not be at the same time. You have also to consider that every time you call for AI Read the DAQ card will be initialised with takes some time
    Hope this will help you.
    Stephan

  • Java Swing App hangs on socket loop

    H}ello everyone i've run into a bit of a snag with my application, its a simple chat bot right now but will evolve into a chat client soon. I can't do that however since my app hangs when i look through the readLine() function to receive data and i dont know how to fix this error. The code is below.
    The doSocket() function is where the while loop is if anyone can help me with this i'd be very greatful.
    * GuiFrame.java
    * Created on August 13, 2008, 9:36 PM
    import java.net.*;
    import java.io.*;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    * @author  brian
    public class GuiFrame extends javax.swing.JFrame {
        /** Creates new form GuiFrame */
        public GuiFrame() {
            initComponents();
        Socket client_sock = null;
        PrintWriter out = null;
        BufferedReader in = null;
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">                         
        private void initComponents() {
            convertButton = new javax.swing.JButton();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            setTitle("Test Bot");
            convertButton.setText("Connect");
            convertButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    convertButtonActionPerformed(evt);
            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(41, 41, 41)
                    .addComponent(convertButton)
                    .addContainerGap(42, Short.MAX_VALUE))
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(22, 22, 22)
                    .addComponent(convertButton)
                    .addContainerGap(26, Short.MAX_VALUE))
            pack();
        }// </editor-fold>                       
    private void convertButtonActionPerformed(java.awt.event.ActionEvent evt) {                                             
        if (convertButton.getText()=="Connect") {
                    String old;
                    try {
                        client_sock = new Socket("www.spinchat.com", 3001);
                        out = new PrintWriter(client_sock.getOutputStream(), true);
                        in = new BufferedReader(new InputStreamReader(client_sock.getInputStream()));
                    } catch (UnknownHostException e) {
                    } catch (IOException e) {
                try {
                    doSocket();
                } catch (IOException ex) {
                    Logger.getLogger(GuiFrame.class.getName()).log(Level.SEVERE, null, ex);
        } else if (convertButton.getText()=="Disconnect") {
            out.println("e");
            out.close();
            try {
                client_sock.close();
                in.close();
            } catch (IOException ex) {
                Logger.getLogger(GuiFrame.class.getName()).log(Level.SEVERE, null, ex);
    private void doSocket() throws IOException {
        BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
        String userInput;
        String old;
            while ((userInput = stdIn.readLine()) != null) {
                old = userInput;
                if (userInput != old) {
                    String proto = userInput.substring(0, 0);
                    if (proto == ":") {
                        out.println("{2");
                        out.println("BI'm a bot.");
                        out.println("aNICKHERE");
                        out.println("bPASSHERE");
                    } else if (proto == "a") {
                        convertButton.setText("Disconnect");
                        out.println("JoinCHannel");
        * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new GuiFrame().setVisible(true);
        // Variables declaration - do not modify                    
        private javax.swing.JButton convertButton;
        // End of variables declaration                  
    }Edited by: briansykes on Aug 13, 2008 9:55 PM
    Edited by: briansykes on Aug 13, 2008 9:56 PM

    >
    ..i've run into a bit of a snag with my application, its a simple chat bot right now but will evolve into a chat client soon. >Is this intended as a GUId app? If so, I would stick to using a GUI for input, rather than reading from the command line (which when I run it, is the DOS window that jumps up in the BG - quite counterintuitive). On the other hand, if it is intended as a non-GUId or headless app., it might be better to avoid any use of JComponents at all.
    My edits stick to using a GUI.
    Other notes:
    - String comparison should be done as
    s1.equals(s2)..rather than..
    s1 == s2- Never [swallow exceptions|http://pscode.org/javafaq.html#stacktrace] in code that does not work.
    - Some basic debugging skills are well called for here, to find where the program is getting stuck. When in doubt, print out!
    - What made you think that
    a) a test of equality on a member against which you had just set the value to the comparator, would logically lead to 'false'?
    old = userInput;
    if (userInput != old) ..b) A substring from indices '0 thru 0' would provide 1 character?
    String proto = userInput.substring(0, 0);
    if (proto == ":") ..
    >
    ..if anyone can help me with this i'd be very greatful.>Gratitude is often best expressed through the offering of [Duke Stars|http://wikis.sun.com/display/SunForums/Duke+Stars+Program+Overview].
    * GuiFrame.java
    * Created on August 13, 2008, 9:36 PM
    import java.net.*;
    import java.io.*;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.swing.*;
    * @author  brian
    public class GuiFrame extends JFrame {
        /** Creates new form GuiFrame */
        public GuiFrame() {
            initComponents();
        Socket client_sock = null;
        PrintWriter out = null;
        BufferedReader in = null;
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">
        private void initComponents() {
            convertButton = new JButton();
            setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            setTitle("Test Bot");
            convertButton.setText("Connect");
            convertButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    convertButtonActionPerformed(evt);
            GroupLayout layout = new GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(41, 41, 41)
                    .addComponent(convertButton)
                    .addContainerGap(42, Short.MAX_VALUE))
            layout.setVerticalGroup(
                layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(22, 22, 22)
                    .addComponent(convertButton)
                    .addContainerGap(26, Short.MAX_VALUE))
            pack();
            setLocationByPlatform(true);
        }// </editor-fold>
    private void convertButtonActionPerformed(java.awt.event.ActionEvent evt) {
        if (convertButton.getText()=="Connect") {
                    String old;
                    try {
                        System.out.println( "Connect start.." );
                        client_sock = new Socket("www.spinchat.com", 3001);
                        out = new PrintWriter(client_sock.getOutputStream(), true);
                        in = new BufferedReader(new InputStreamReader(client_sock.getInputStream()));
                        System.out.println( "Connect end.." );
                    } catch (UnknownHostException e) {
                        e.printStackTrace();
                    } catch (IOException e) {
                        e.printStackTrace();
                try {
                    doSocket();
                } catch (IOException ex) {
                    Logger.getLogger(GuiFrame.class.getName()).log(Level.SEVERE, null, ex);
        } else if (convertButton.getText()=="Disconnect") {
            out.println("e");
            out.close();
            try {
                client_sock.close();
                in.close();
            } catch (IOException ex) {
                Logger.getLogger(GuiFrame.class.getName()).log(Level.SEVERE, null, ex);
        private void doSocket() throws IOException {
            System.out.println( "doSocket start.." );
            String userInput;
            String old;
            userInput = JOptionPane.showInputDialog(this, "Send..");
            while(userInput!=null && userInput.trim().length()>0) {
                System.out.println( "doSocket loop 1.." );
                String proto = userInput.substring(0, 1);
                System.out.println("proto: '" + proto + "'");
                if (proto.equals(":")) {
                    System.out.println("Sending data..");
                    out.println("{2");
                    out.println("BI'm a bot.");
                    out.println("aNICKHERE");
                    out.println("bPASSHERE");
                } else if (proto.equals("a")) {
                    convertButton.setText("Disconnect");
                    out.println("JoinCHannel");
                userInput = JOptionPane.showInputDialog(this, "Send..");
            System.out.println( "doSocket end.." );
        * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new GuiFrame().setVisible(true);
        // Variables declaration - do not modify
        private JButton convertButton;
        // End of variables declaration
    }

Maybe you are looking for

  • Still frame stuck in canvas

    Hello, I'm working on new project and I've got a still frame showing in my canvas on playback. I've deleted the track and drag something new in its place and am still getting the still. Any suggestions? Thanx, John

  • DataSocket shows strange Data echoes when Connection invalid

    Hi there i see strange things with DataSocketRead - function. take a look at the attachment. i try to read several URLs in a for-loop. one of the items does not exist on my network. from this one i get a error code, that's fine. but the data returned

  • Cannot go back to 64-bit mode

    Not sure what I am doing wrong but when I back to the info panel to take CS5 back to 64-bit mode because some plug ins had been updated but the check box was no longer visible.  So I am in 32 bit mode and do not know how to get out.  Any ideas what I

  • Datasocket bug in Win2K -- stops updating

    ===OVERVIEW=== I have a simple Datasocket system that produces a very strange problem on Win2K After a variable amount of time (between 30 seconds and 30 minutes), the datasocket reader simply stops receiving updates from the writer. The system invol

  • Can't get into my itunes on ipad. but can get to it on my computer?

    I can't get into my itunes on my ipad message reads email address is already verified for another Apple ID but when i go to my computer I get into my acct. just fine. Also when it asked me to verify this ID in an email i get the same message! Now, ju