Bug 151666 - Missing method in javax/swing/text/JTextComponent: viewToModel(Point)
Missing method in javax/swing/text/JTextComponent: viewToModel(Point)
Product: Fedora
Classification: Fedora
Component: gcc (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Thomas Fitzsimmons
: 150772 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2005-03-21 11:03 EST by Andrew Overholt
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-03-31 10:43:00 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Andrew Overholt 2005-03-21 11:03:23 EST
Description of problem:
While trying to compile oldrhino (from JPackage), I ran into a missing method in
libgcj's JTextComponent:  viewToModel(java.awt.Point).

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Here's an example of a class that uses this:

import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Frame;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JTextArea;

public class Test extends JFrame {
	private JTextArea fileTextArea;

	private JButton getButton;

	public static void main(String[] args) {
		Frame f = new Test();

	public Test() {
		Container contentPane = getContentPane();

		fileTextArea = new JTextArea(24, 80);
		getButton = new JButton("Press me");
		getButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {

		contentPane.add(fileTextArea, BorderLayout.CENTER);
		contentPane.add(getButton, BorderLayout.SOUTH);


		addWindowListener(new WindowAdapter() {
			public void windowClosing(WindowEvent e) {

	public void getButtonPressed() {
		int position = fileTextArea.viewToModel(fileTextArea

2. javac Test.java
Actual results:
2. ERROR in Test.java
 (at line 47)
        int position = fileTextArea.viewToModel(fileTextArea
The method viewToModel(Point) is undefined for the type JTextArea

Expected results:
No output.
Comment 1 Thomas Fitzsimmons 2005-03-31 10:38:33 EST
*** Bug 150772 has been marked as a duplicate of this bug. ***
Comment 2 Thomas Fitzsimmons 2005-03-31 10:43:00 EST
Fixed in gcc CVS HEAD and gcc-4_0-branch.  I'll ping Jakub to make sure this
patch goes into the FC4test2 gcc rpms.

Note You need to log in before you can comment on or make changes to this bug.