35 |
obligated to do so. If you do not wish to do so, delete this |
obligated to do so. If you do not wish to do so, delete this |
36 |
exception statement from your version. */ |
exception statement from your version. */ |
37 |
|
|
38 |
|
|
39 |
package javax.swing; |
package javax.swing; |
40 |
|
|
41 |
import java.awt.Dimension; |
import java.awt.Dimension; |
42 |
import java.awt.event.KeyEvent; |
import java.awt.event.KeyEvent; |
|
import java.io.InputStream; |
|
43 |
import java.io.IOException; |
import java.io.IOException; |
44 |
|
import java.io.InputStream; |
45 |
import java.net.URL; |
import java.net.URL; |
46 |
|
|
47 |
import javax.accessibility.AccessibleContext; |
import javax.accessibility.AccessibleContext; |
154 |
} |
} |
155 |
|
|
156 |
protected InputStream getStream(URL page) |
protected InputStream getStream(URL page) |
157 |
|
throws IOException |
158 |
{ |
{ |
159 |
try |
return page.openStream(); |
|
{ |
|
|
return page.openStream(); |
|
|
} |
|
|
catch (Exception e) |
|
|
{ |
|
|
System.out.println("Hhmmm, failed to open stream: " + e); |
|
|
} |
|
|
return null; |
|
160 |
} |
} |
161 |
|
|
162 |
public String getText() |
public String getText() |
203 |
* This method initializes from a stream. |
* This method initializes from a stream. |
204 |
*/ |
*/ |
205 |
public void read(InputStream in, Object desc) |
public void read(InputStream in, Object desc) |
206 |
|
throws IOException |
207 |
{ |
{ |
208 |
} |
} |
209 |
|
|