Closed Bug 103440 Opened 24 years ago Closed 24 years ago

java mouse pointer problem, to get focus on a java Component the mouse pointer should be on the Applet and when mouse pointer is moved outside the applet the component(TextField) loses focus and when mouse pointer is brought back on the applet the comp...

Categories

(Core Graveyard :: Java: OJI, defect)

Sun
Linux
defect
Not set
major

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 101082

People

(Reporter: najeeb.ahmed, Assigned: joe.chou)

Details

From Bugzilla Helper: User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.4.2-2 i686) BuildID: 2001080814 When an applet runs on the Mozilla browser, the java component like a TExtfield will have the focus only if the mouse pointer is within the Applet area (say 200*200 i.e the applet whose width is 200 and height is 200) and if the mouse pointer is outside the applet area then the TextField will lose focus and gain when the mouse pointer is brought back within the applet then the TextField will again have focus i.e; for the textfield to have focus the mouse pointer should on the applet. I am blackdown jdk1.3.1-fcs version. Try this simple code to reproduce the problem. import java.awt.*; import java.applet.*; public class test extends Applet { public void start() { TextField tf = new TextField(20); tf.requestFocus(); add(tf); } } Save the above code as test.java The following is the html to load the applet <html> <applet code="test.class" width="200" height="200"> </applet> </html> save it the same directory as the .class file of the above .java file Reproducible: Always Steps to Reproduce: 1.Download and install the jdk1.3.1-fcs from blackdown.org 2.save code given in the description. 3.run the html in the mozilla browser. Actual Results: the result have also been mentioned in the description Expected Results: the expected result have also been mentioned in the description no additional info
This is an OJI bug. Reassigning to the correct module. BTW, this is a known problem that shows up because of the difference in the basic toolkits used by Java and Mozilla for UI widgets. Java AWT uses motif peers (OpenMotif on linux) and Mozilla uses Gtk peers. These 2 toolkits have a problem passing focus between them when one type of component is the child of a component of the other type (Gtk component in a Java component or a Java component inside a Gtk windows like in your case). I dont believe there is a fix for this problem either in Gtk or in Motif yet.
Assignee: ashuk → edburns
Status: UNCONFIRMED → NEW
Component: Java APIs for DOM → OJI
Ever confirmed: true
QA Contact: avm → pmac
*** This bug has been marked as a duplicate of 101082 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Chris Petersen is a new QA contact for oji component. His email is: petersen@netscape.com
Assignee: edburns → petersen
fixing small error for pmac@netscape.com (filter with : SPAMMAILSUCKS)
Assignee: petersen → joe.chou
QA Contact: pmac → petersen
The original summary for this bug was longer than 255 characters, and so it was truncated when Bugzilla was upgraded. The original summary was: java mouse pointer problem, to get focus on a java Component the mouse pointer should be on the Applet and when mouse pointer is moved outside the applet the component(TextField) loses focus and when mouse pointer is brought back on the applet the component regains focus
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.