mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Show text cursor when over FTextEditor
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package forge.toolbox;
|
package forge.toolbox;
|
||||||
|
|
||||||
|
import forge.gui.MouseUtil;
|
||||||
import forge.toolbox.FSkin.SkinnedScrollPane;
|
import forge.toolbox.FSkin.SkinnedScrollPane;
|
||||||
import forge.toolbox.FSkin.SkinnedTextArea;
|
import forge.toolbox.FSkin.SkinnedTextArea;
|
||||||
|
|
||||||
@@ -51,6 +52,10 @@ public class FTextEditor extends SkinnedScrollPane {
|
|||||||
this.setViewportView(tarEditor);
|
this.setViewportView(tarEditor);
|
||||||
this.setBorder((Border)null);
|
this.setBorder((Border)null);
|
||||||
this.setOpaque(false);
|
this.setOpaque(false);
|
||||||
|
|
||||||
|
if (this.isEditable()) {
|
||||||
|
MouseUtil.setComponentCursor(tarEditor, Cursor.TEXT_CURSOR);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Mapped functions to JTextArea
|
//Mapped functions to JTextArea
|
||||||
|
|||||||
Reference in New Issue
Block a user