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?

  • Why in java tags? Maybe you should first understand the difference between java and javascript ? ---- "put on the frame" ? More details. - Crasher
  • Because javascript has nothing to do with it. I mean that there is a class inherited from JFrame, various elements are placed on it ... So is it possible to put a page on this form as an element? - Artem Gribkov

1 answer 1

 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