Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swing TextAction #133

Open
scabug opened this issue Jun 11, 2010 · 1 comment
Open

Swing TextAction #133

scabug opened this issue Jun 11, 2010 · 1 comment

Comments

@scabug
Copy link

scabug commented Jun 11, 2010

There is a swing.Action with peer javax.swing.Action,
but there is no TextAction with peer javax.swing.text.TextAction.

From the API of javax.swing.text.TextAction

 * An Action implementation useful for key bindings that are shared across
 * a number of different text components.

A TextAction has no explicit reference to a TextCompont,
but it acts on the last focused TextComponent. So you can have
a MenuItem with a TextAction which can act on each
TextComponent of the swing application.

Attached there is an implementation and an example app with
TextAction changing the fontsize.

Frank

@scabug
Copy link
Author

scabug commented Jun 11, 2010

Imported From: https://issues.scala-lang.org/browse/SI-3557?orig=1
Reporter: Frank Teubler (dft)
Attachments:

  • swing.zip (created on Jun 11, 2010 7:59:48 PM UTC, 1873 bytes)

@scabug scabug closed this as completed Jul 17, 2015
@SethTisue SethTisue transferred this issue from scala/bug Nov 19, 2020
@scala scala deleted a comment from scabug Nov 19, 2020
@SethTisue SethTisue reopened this Nov 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants