Java Code Examples for javax.swing.JTextArea.setCursor()

The following are Jave code examples for showing how to use setCursor() of the javax.swing.JTextArea class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: xdman   File: BrowserIntDlg.java   Source Code and License Vote up 5 votes
void createFFPanel() {
	ffPanel = new JPanel(new BorderLayout(20, 20));
	ffPanel.setBackground(Color.WHITE);
	ffPanel.setBorder(new EmptyBorder(20, 20, 20, 20));
	text2 = new JTextArea();
	Cursor c = text2.getCursor();
	text2.setBackground(bgColor);
	text2.setOpaque(false);
	text2.setWrapStyleWord(true);
	text2.setEditable(false);
	text2.setLineWrap(true);
	text2.setText(StringResource.getString("BI_LBL_2"));
	text2.setCursor(c);
	ffPanel.add(text2, BorderLayout.NORTH);
	ffPanel.add(ff);

	helpff = new JButton(StringResource.getString("BI_LBL_3"));
	helpff.addActionListener(this);
	JPanel pp = new JPanel(new BorderLayout(10, 10));
	pp.setBackground(Color.white);
	JTextArea txt2 = new JTextArea();
	txt2.setOpaque(false);
	txt2.setWrapStyleWord(true);
	txt2.setEditable(false);
	txt2.setLineWrap(true);
	String txt = new File(System.getProperty("user.home"),
			"xdm-helper/xdmff.xpi").getAbsolutePath();
	txt2.setText(StringResource.getString("BI_LBL_FF").replace("<FILE>",
			txt));
	pp.add(txt2);
	pp.add(helpff, BorderLayout.SOUTH);
	ffPanel.add(pp, BorderLayout.SOUTH);
}
 
Example 2
Project: powertext   File: PTEditorKit.java   Source Code and License Vote up 4 votes
public Task(int sel, JTextArea textPane, String syntax){
    this.sel = sel; this.textPane = textPane; this.syntax = syntax;
    textPane.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
}
 
Example 3
Project: powertext   File: PTEditorKit.java   Source Code and License Vote up 4 votes
public Task(int sel, JTextArea textPane, String syntax){
    this.sel = sel; this.textPane = textPane; this.syntax = syntax;
    textPane.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
}