O editor de texto mais simples que você já viu O.O !!!
Só pra não ficar no vazio por aqui (NUSSA É MESMO?) vou postar o código do que seria um editor de texto mas ta muito longe de editar alguma coisa efetivamente … o nosso exemplo tem um JFrame um JScrolPane um JTextArea e só xD
import javax.swing.*;
import java.awt.*;
public class SwingText
{
public static void main(String args[])
{
JFrame frame = new JFrame(" :: JanelaSwingText :: ");
frame.setSize(400,320);
JTextArea text = new JTextArea(">");
text.setForeground(new java.awt.Color(0,5,255));
text.setBackground(new java.awt.Color(255,255,255));
text.setFont(new Font ("Tahoma",Font.PLAIN,17));
Component scroll = new JScrollPane(text);
frame.getContentPane().add(scroll);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}
}
E e por mais R$0,00 essa maravilha com o código comentado pode ser baixada aqui … O_O
Loading...