The Artima Developer Community
Sponsored Link

Java Answers Forum
question about button?

1 reply on 1 page. Most recent reply: May 1, 2003 11:00 AM by James Patterson

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
shon

Posts: 42
Nickname: shon
Registered: Apr, 2003

question about button? Posted: Apr 30, 2003 7:51 PM
Reply to this message Reply
Advertisement
when creating a button, can i let the button to have an ALT call function .. fro example like this
button label :: Cancel
-
to ve an underline below the C ..
we can call this button by pressing alt C
can we do that by importing java.awt.*;
please help me with the code thanks..


James Patterson

Posts: 16
Nickname: jmep
Registered: Mar, 2003

Re: question about button? Posted: May 1, 2003 11:00 AM
Reply to this message Reply
try something like:

button.setMnemonic(KeyEvent.VK_C);

and see:

http://java.sun.com/docs/books/tutorial/uiswing/start/swingTour.html

Good Luck!

Flat View: This topic has 1 reply on 1 page
Topic: as size().width is deprecated, how do i get the width size in java class Previous Topic   Next Topic Topic: JDBC Malfunctioning of SQL Query after customizing the ResultSetType ...

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use