Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7684805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:06:42+00:00 2026-05-31T19:06:42+00:00

I have a basic server working but I want to be able to press

  • 0

I have a basic server working but I want to be able to press a button in the GUI to run said server.

Currently, when I press the button to run the server, the button stays pressed and the rest of the GUI is inaccessible until I force stop it in Netbeans. I want to include buttons to stop the server etc so I want to know how I can have the server code run in the background whilst interacting with the GUI for anything else.

How can I achieve this in the GUI?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T19:06:43+00:00Added an answer on May 31, 2026 at 7:06 pm

    Don’t block the EDT (Event Dispatch Thread). Run the server on a Thread. See Concurrency in Swing for more details.


    Mentioned in a comment, but see also this (very much) related example of providing a Swing GUI for a server & client.

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently, i have basic C++ and PHP skills. But, i want to switch to
I am working on a seemingly basic mobile app (first). But I want to
I have basic client-side validation working in my MVC3 RC2 application, but I'm now
I'm not a DBA, but I have some basic understanding about how SQL Server
I have a fairly basic TCP server keeping track of a couple connections and
I have a basic HTML form that gets inserted into a server side div
I have a django server that serves the basic site with user, auth etc
I have a web server which is protected behind http-basic-auth. I've read through the
I have a basic understanding of mock and fake objects, but I'm not sure
I have some basic pageview incrementing code set up on a LAMP server (see

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.