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 3752440
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:14:30+00:00 2026-05-19T09:14:30+00:00

I have been using several Microbreaks software solutions. And all of them are overkill

  • 0

I have been using several Microbreaks software solutions. And all of them are overkill and/or don’t do exactly what I want.

I found that taking break every 20 minutes to stretch out and refocus my eyes helps tremendously with my energy during the whole day.

I have been using all kinds of utilities on the inet for example RSI-Shield

I want to create Swing program that will:

  1. Take two parameters at command line:
    breakLength: time of the break (default 60 sec)
    breakPopup: time in which the screen will get disabled. (default 20 min)

  2. The program will run as service ideally with manager icon (right bottom corner for windows)
    that will allow it to be terminated or suspended (in case I’m watching youtube or something I don’t want break from).

  3. When program reaches breakPopup time it will gray out whole screen and in center display couple of tips (located in tips.properties file (tip1: “Stretch legs”). It will not have count down. Nice relaxing background instead of gray background would be good idea too, guess.

  4. When program reaches end of breakLength it will suspend it self and wait for another breakPopup schedule.

Problems:

  1. How do write in Swing application that will cover the whole screen without having any borders? And How do you center Tips in middle of it?

  2. What is the best way to go about writing this as service running in background with little app that would start and stop it? (Sort of like when you have tomcat on windows machine)

  3. What is the best way to approach the timer-scheduling logic? Ideally without using third party libraries.

  4. What universal installer would be good choice for little program like this?

  • 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-19T09:14:31+00:00Added an answer on May 19, 2026 at 9:14 am

    How do write in Swing application that will cover the whole screen without having any borders? And How do you center Tips in middle of it?

     frame.setUndecorated(true);                   // removes all frame decorations
     frame.setExtendedState(Frame.MAXIMIZED_BOTH); // make window appear maximized both horizontally and vertically
    

    What is the best way to go about writing this as service running in background with little app that would start and stop it? (Sort of like when you have tomcat on windows machine)

    Well, start your java application, then schedule, through a TimerTask, the display of your main frame. But beware, display has to occur in event dispatch Thread. To do so, make your TimerTask call SwingUtilites#invokeLater() … or simply call

    What is the best way to approach the timer-scheduling logic? Ideally without using third party libraries.

    Well, Seems like Timer and TimerTask are parts of the JDK, so you can use them without any problem.

    What universal installer would be good choice for little program like this.

    I’ve heard very good feedback about IzPack, but I can’t ensure it’s the best fit.

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

Sidebar

Related Questions

No related questions found

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.