Bug 208391 - SWT_AWT: Swing Focus - JTextPane need a Click to receive focus
Summary: SWT_AWT: Swing Focus - JTextPane need a Click to receive focus
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Silenio Quarti CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-01 07:56 EDT by borislav CLA
Modified: 2019-09-06 16:06 EDT (History)
2 users (show)

See Also:


Attachments
Project with the Focus- Problem (6.02 MB, application/zip)
2007-11-01 08:08 EDT, borislav CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description borislav CLA 2007-11-01 07:56:13 EDT
Build ID: 114455

Steps To Reproduce:
1. download the attach Project
2. Runn the Project
3. Make xml-File and open it with "Focus Bug Editor"
4. whrite Text an Click on "Bold"-Button in Eclipse-Toolbar
5. So the Focus is't any more on the JTextPane.


More information:
What I wannt ist, if I cklicked on the Bold-Button, the focus must remain on the JTextPane.
Comment 1 borislav CLA 2007-11-01 08:08:21 EDT
Created attachment 81851 [details]
Project with the Focus- Problem
Comment 2 Steve Northover CLA 2008-01-22 18:49:09 EST
... pretty sure this is a dup.
Comment 3 Silenio Quarti CLA 2008-04-07 12:44:51 EDT
I am not sure this is a problem, but it is possible to make the editor work properly by adding this to FocusBugEditor:


	public void setFocus() {
		parentFrame.setFocus();
		//added line
		myEditorPane.getComponent(0).requestFocus();
	}
Comment 4 Eclipse Webmaster CLA 2019-09-06 16:06:31 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.