Method setMargin(Insets m)
Return type: void
Member of: javax.swing.text.JTextComponent
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 defaultEditor.getTextField().setMargin(insets);
2 setMargin(new Insets(5,5,5,5));
3 setMargin(new Insets(0,3,3,3));
4 _textPane.setMargin(new Insets(5, 5, 5, 5));
5 setMargin(new Insets(5,5,5,5));
6 txtCommand.setMargin(new Insets(5, 5, 5, 5));
7 component.setMargin(margin);
8 jTextArea.setMargin (new java.awt.Insets(10, 10, 10, 10));
9 tfColumns.setMargin(new java.awt.Insets(2, 2, 2, 2));
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.