Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: laptop usage application

  1. #1
    Member
    Join Date
    May 2013
    Posts
    165
    Thanks
    58
    Thanked 1 Time in 1 Post

    Default laptop usage application

    I have decided to challenge myself to create an application, an idea I have is to see how often I use my laptop throughout the day and whether I am doing work or not. I am thinking of having a login when I first turn on my laptop at the start of the day and then have a small icon on the side of my screen where I can press to notify app I am starting work or stopping work.

    The main hurdles at present are:

    1. How to get the login page whenever I turn on the laptop?
    2. How to make a small icon on my desktop?

    Basically this is my first time taking my program/ code to operate outside some IDE like eclipse, so I am unsure of how to go about implementing such an idea.

    Does anyone have any advice on where I can start and how I could go about learning to tackle this problem.


  2. #2
    Forum VIP
    Join Date
    Jul 2010
    Posts
    1,676
    Thanks
    25
    Thanked 329 Times in 305 Posts

    Default Re: laptop usage application

    Helpful articles for you:
    Login Page: If you want it to come on when the laptop starts, you will need to load it as a Windows Service (assuming you are on windows). I don't think you can do that natively in java, but there is a tool you can try out: Java Service Wrapper - What is the Java Service Wrapper?
    Using the System Tray (if that is what you are talking about when you say "a small icon on my desktop"): How to Use the System Tray (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Other Swing Features)
    NOTE TO NEW PEOPLE LOOKING FOR HELP ON FORUM:

    When asking for help, please follow these guidelines to receive better and more prompt help:
    1. Put your code in Java Tags. To do this, put [highlight=java] before your code and [/highlight] after your code.
    2. Give full details of errors and provide us with as much information about the situation as possible.
    3. Give us an example of what the output should look like when done correctly.

    Join the Airline Management Simulation Game to manage your own airline against other users in a virtual recreation of the United States Airline Industry. For more details, visit: http://airlinegame.orgfree.com/

  3. The Following User Says Thank You to aussiemcgr For This Useful Post:

    GregBrannon (December 6th, 2013)

Similar Threads

  1. RFC - Development laptop
    By Blackbird in forum Computer Support
    Replies: 3
    Last Post: July 5th, 2020, 06:12 AM
  2. HELP ME WITH THIS CODE. I"M ABOUT TO SMASH MY LAPTOP SCREEN
    By redbull in forum What's Wrong With My Code?
    Replies: 17
    Last Post: September 17th, 2012, 06:12 PM
  3. Replies: 1
    Last Post: November 29th, 2010, 08:28 AM