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.


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

Results 1 to 2 of 2

Thread: Overlaying User Help Over GUI

  1. #1
    Forum VIP
    Join Date
    Jul 2010
    Thanked 329 Times in 305 Posts

    Default Overlaying User Help Over GUI

    Hello everyone,

    So I have a fairly complex GUI and I would like to overlay suggestions to the users while they are using it (their option to show the suggestions or not). Basically, a sort of tutorial thingy where the suggestions can guide the user to interact with the GUI. My problem is that I'm not sure how to do this.

    The first thing I investigated is Tool-Tips, but it seems like those need to be attached to components that the user will hover over to activate. I want them to be able show up regardless of where the user's mouse is on the screen (provided of course the checkbox for activating/deactivating this feature is checked).

    The next thing I investigated was glass panes, but it is to my understanding that they need to be the size of the container and they block users from interacting with the GUI; two traits that will defeat the purpose of this.

    I'm looking to do something similar to the little Microsoft Word Paperclip Guy, but with just text to explain to the user what to do. Does anyone have any suggestions for me?

    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/

  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Washington, DC
    My Mood
    Thanked 636 Times in 540 Posts

    Default Re: Overlaying User Help Over GUI

    You're on the right track.

    You could use a glass pane without blocking input. This is a really useful article: A well-behaved GlassPane | Java.net

    After you follow that tutorial, you can either set its tool tip (and tool tip location) to whatever you want. Or you could display something that's a bit more flashy. Glass panes free you up to do pretty much whatever you want.

    You might also want to look into a library called BalloonTip: Balloon tip - Project home page — Java.net
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Valid user input
    By ChristopherLowe in forum Java Programming Tutorials
    Replies: 1
    Last Post: June 21st, 2011, 04:53 PM
  2. User Input File Name
    By PineAppleKing in forum Java Theory & Questions
    Replies: 12
    Last Post: June 3rd, 2011, 10:23 AM
  3. user preferences
    By nasi in forum Java Theory & Questions
    Replies: 5
    Last Post: April 17th, 2011, 11:55 PM
  4. Storing User Data
    By aussiemcgr in forum Java Theory & Questions
    Replies: 1
    Last Post: January 21st, 2011, 09:07 AM
  5. Opening a File for User
    By aussiemcgr in forum Java Theory & Questions
    Replies: 3
    Last Post: July 29th, 2010, 03:00 AM