|
|
|
@ -18,13 +18,33 @@
|
|
|
|
|
*/
|
|
|
|
|
package net.apocalypselabs.symat;
|
|
|
|
|
|
|
|
|
|
import java.awt.*;
|
|
|
|
|
import java.beans.*;
|
|
|
|
|
import java.awt.Color;
|
|
|
|
|
import java.awt.Dimension;
|
|
|
|
|
import java.awt.Font;
|
|
|
|
|
import java.awt.FontMetrics;
|
|
|
|
|
import java.awt.Graphics;
|
|
|
|
|
import java.awt.Insets;
|
|
|
|
|
import java.awt.Point;
|
|
|
|
|
import java.awt.Rectangle;
|
|
|
|
|
import java.beans.PropertyChangeEvent;
|
|
|
|
|
import java.beans.PropertyChangeListener;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import javax.swing.*;
|
|
|
|
|
import javax.swing.border.*;
|
|
|
|
|
import javax.swing.event.*;
|
|
|
|
|
import javax.swing.text.*;
|
|
|
|
|
import javax.swing.JPanel;
|
|
|
|
|
import javax.swing.SwingUtilities;
|
|
|
|
|
import javax.swing.border.Border;
|
|
|
|
|
import javax.swing.border.CompoundBorder;
|
|
|
|
|
import javax.swing.border.EmptyBorder;
|
|
|
|
|
import javax.swing.border.MatteBorder;
|
|
|
|
|
import javax.swing.event.CaretEvent;
|
|
|
|
|
import javax.swing.event.CaretListener;
|
|
|
|
|
import javax.swing.event.DocumentEvent;
|
|
|
|
|
import javax.swing.event.DocumentListener;
|
|
|
|
|
import javax.swing.text.AttributeSet;
|
|
|
|
|
import javax.swing.text.BadLocationException;
|
|
|
|
|
import javax.swing.text.Element;
|
|
|
|
|
import javax.swing.text.JTextComponent;
|
|
|
|
|
import javax.swing.text.StyleConstants;
|
|
|
|
|
import javax.swing.text.Utilities;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* This class will display line numbers for a related text component. The text
|
|
|
|
|