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: lengthen distance between JMenuItem title and shortcut(accelerator)

  1. #1
    Member
    Join Date
    Aug 2011
    Posts
    32
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default lengthen distance between JMenuItem title and shortcut(accelerator)

    I have a text editor as part of my program, so, as usual, i made an edit menu as well cut/copy and paste. i set the accelerator of cut to CTRL + x as a test to see if i did it right. I did and I was pleased. Except, its a little too close to where it says "Cut". is there a way to increase this distance?


  2. #2
    Junior Member
    Join Date
    Oct 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb Re: lengthen distance between JMenuItem title and shortcut(accelerator)

    I am a begginer but ill take a shot!
    I think if you add a few spaces after the name cut like...
    s = ("Cut     ")
    //imagine s is the info on cut

Similar Threads

  1. List of shortcuts key for Eclipse
    By Flash in forum Java JDK & IDE Tutorials
    Replies: 3
    Last Post: July 18th, 2013, 08:40 AM
  2. Shortcut key to java JFrame
    By jakethesnake2x in forum What's Wrong With My Code?
    Replies: 2
    Last Post: May 28th, 2011, 07:32 PM
  3. Memoization (dyanamic programming) for edit distance recursion
    By rph12 in forum Algorithms & Recursion
    Replies: 4
    Last Post: January 28th, 2011, 10:37 AM
  4. Listening to JMenuItem keyboard focus
    By nik_meback in forum AWT / Java Swing
    Replies: 0
    Last Post: December 31st, 2010, 04:02 AM
  5. List of shortcuts key for Eclipse
    By Flash in forum Java Code Snippets and Tutorials
    Replies: 1
    Last Post: August 8th, 2008, 02:10 PM

Tags for this Thread