Merged gcj-eclipse branch to trunk.
From-SVN: r120621
This commit is contained in:
parent
c648dedbde
commit
97b8365caf
17478 changed files with 606493 additions and 100744 deletions
|
@ -391,7 +391,9 @@ public class TextComponent extends Component
|
|||
*/
|
||||
public synchronized void setSelectionStart(int selectionStart)
|
||||
{
|
||||
select(selectionStart, getSelectionEnd());
|
||||
select(selectionStart,
|
||||
(getSelectionEnd() < selectionStart)
|
||||
? selectionStart : getSelectionEnd());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -610,7 +612,7 @@ public class TextComponent extends Component
|
|||
* @exception ClassCastException If listenerType doesn't specify a class or
|
||||
* interface that implements java.util.EventListener.
|
||||
*/
|
||||
public EventListener[] getListeners(Class listenerType)
|
||||
public <T extends EventListener> T[] getListeners(Class<T> listenerType)
|
||||
{
|
||||
if (listenerType == TextListener.class)
|
||||
return AWTEventMulticaster.getListeners(textListener, listenerType);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue