Class FTextArea

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable

public class FTextArea extends JTextArea
Personalized text area.
It use Formiko color & font. It is uneditable.
Author:
Hydrolien
See Also:
  • Constructor Details

    • FTextArea

      public FTextArea(String s, double width)
      Main constructor.
      height is defined by counting lines.
      Parameters:
      s - the text of the FTextArea
      width - the width used for the FTextArea
  • Method Details

    • getDimY

      public static int getDimY()
    • paintComponent

      public void paintComponent(Graphics gTemp)
      Paint function with a debug tool.
      Overrides:
      paintComponent in class JComponent
    • updateSize

      public void updateSize()
      Update size of this depending of text.
    • countLines

      private int countLines(double width)
      Count line function.
      cf https://stackoverflow.com/questions/22328337/how-can-i-count-lines-in-jtextarea
      Parameters:
      width - the width used to count how much line we need