Created
June 7, 2011 03:32
-
-
Save Centaur/1011634 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.scalaconsole | |
import swing.TextComponent | |
import javax.swing.JTextPane | |
import util.regexp.PointedHedgeExp | |
import java.awt.{Graphics2D, Point} | |
class TextPane extends TextComponent { | |
override lazy val peer: JTextPane = new JTextPane() with SuperMixin | |
def viewToModel(p:Point) = peer.viewToModel(p) | |
def modelToView(pos:Int) = peer.modelToView(pos) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment