Bug 208391

Summary: SWT_AWT: Swing Focus - JTextPane need a Click to receive focus
Product: [Eclipse Project] Platform Reporter: borislav <b_borislav>
Component: SWTAssignee: Silenio Quarti <Silenio_Quarti>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: gordon.hirsch, steve_northover
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Project with the Focus- Problem none

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.