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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:14:46+00:00 2026-06-14T13:14:46+00:00

In Java Swing, do we have text component that will work just like how

  • 0

In Java Swing, do we have text component that will work just like how we set the time in Microwave.

By default system should display 00:00:00 (hh:mm:ss) in a textfield.
Users focus defaults in the far right of the text box in the far right position.
For example if user enters 00:00:85, then system should convert that to 01:25, similarly if user enters 00:08:99, then system should convert that to 00:9:39 (9 mins. 39 secs), similarly if user enters 00:03:00, then system should convert that to 00:03:00 (3 Minutes)

Please let me know if we have any component that works just like this or similar to this..

Thanks in Advance..

  • 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-06-14T13:14:49+00:00Added an answer on June 14, 2026 at 1:14 pm

    Out of the box, no. You will have to write some custom code.

    You could use a JFormattedTextField with a custom format on it. See this post for an example. Only thing you will have to replace is the Format by your own format.

    Another possibility is a JSpinner with a custom model where you just loop through a set of fixed values (e.g. incrementing time by 5”). This is how my microwave works. I can just rotate a button which increases the time. I cannot ‘type’ anything

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

Sidebar

Related Questions

I have created a text field component with an 'x' button inside that will
I would like to create extend a Java Swing application to have a look
I have various Java Swing applications that are used by multiple users. My deployment
I have a Java Swing application that is being used as a cluster application.
I have a Java swing application with a button that produces a popup window
I have developed a java swing client-server application. The server has many services like
We have a client side application (Java/Swing) that we need an HTML rendering control
I'm trying to build a new java swing component, I realise that I might
I'm currently creating a fullscreen Java application that will be like a kiosk application.
I have a Java Swing application wich spawns child dialogs with text controls. And

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.