Problem in reopeninig the JFrame

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shashmita
    New Member
    • Jan 2010
    • 9

    Problem in reopeninig the JFrame

    Please help me from this error.

    i was supposed to capture a desktop which i am opening in the desktoppane.if i open the window and i close it.again when i need if i open the window it is not displaying and the error displayed as


    java.net.BindEx ception: Address already in use: JVM_Bind
    at java.net.PlainS ocketImpl.socke tBind(Native Method)

    Code:
    private void Port1MouseClicked(java.awt.event.MouseEvent evt) { 
    BasicThread1 bst=new BasicThread1();
    bst.start(); 
    }
    I have kept the ServerInitiator program in class thread and calling the object of the class by creating the object. Please help me.

    Thanks in Advance
    Last edited by Frinavale; Feb 19 '10, 05:16 PM. Reason: Moved to Java from ASP.NET
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    Shashmita:
    When you are looking for answers to problems please post in the *answers* areas. The 'writing room' is used when you are writing an article that will be posted in the insights area. Its kinds of a holding area for manuscripts still being written and reviewed. I've moved your thread so more volunteers will see it and hopefully help you.

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      Have you considered placing a Try/Catch block around the code so that if the window is no longer open you can handle the problem elegantly in your code?

      -Frinny

      PS if you have a Java question please post your question in the Java/Answers forum.

      Comment

      Working...