There is a page to parse, remove unnecessary elements, then put it together and put it on the frame next to the buttons. What libraries can this be implemented with?
1 answer
public class Main { /** * @param args the command line arguments */ public static void main(String[] args) throws IOException { try { // Easiest connection (without authorization) URL url = new URL("http://www.board74.ru/index.html"); try { LineNumberReader r = new LineNumberReader(new InputStreamReader(url.openStream())); String s = r.readLine(); while (s != null) { System.out.println(s); s = r.readLine(); } r.close(); } catch (IOException iOException) { iOException.printStackTrace(); } } catch (MalformedURLException ex) { ex.printStackTrace(); } } }
it is possible so, it is possible somehow somehow =) you can write your browser with your markup or there are libraries like jsoup
|
java
tags? Maybe you should first understand the difference betweenjava
andjavascript
? ---- "put on the frame" ? More details. - Crasher