Display HTML contents in Java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Display HTML contents in Java

I am currently doing a school project and the project needs to follow a few rules: 1) We need to load, store and possibly remove data from any recourses (Example: Text files or Databases) 2) It needs to be done with JAVA. (I did ask if I could do it in C# but they disapproved) 3) It needs to be better than what the average school student can produce. [Now you know that I really need help] My question is: How can I display a HTML page in my java application? Like a frame with a webpage in it.

13th Jun 2017, 5:47 PM
Limitless
Limitless - avatar
1 Answer
+ 4
Will the targeted platform of your code be android? Or wil desktop/laptop pc be the target? Anyway, in both cases you may look at 'webview' component... in the first case at the android sdk references ( https://developer.android.com/reference/android/webkit/WebView.html ), in the second it seems to be some implementations in other libraries as JavaFx (from oracle)...
14th Jun 2017, 1:51 AM
visph
visph - avatar