How to Embed Gecko WebKit in Java

0 votes


I would like to have Gecko, WebKit, or another webbrowser embedded in Java as a Swing/AWT control.How to Embed it?

May 8, 2020 in Java by kartik
• 37,530 points

edited May 8, 2020 by kartik 601 views

1 answer to this question.

0 votes


If SWT is an option, you can use the SWT Browser widget, this will use a platform-specific browser (e.g. Mozilla, Webkit, IE) to actually display the content.

If you don't want to use SWT, then I recommend JavaXPCOM. This allows you to embed Gecko in a Java application.

Hope this is helpful!

Thank You!!

answered May 8, 2020 by Niroj
• 82,820 points

Related Questions In Java

+5 votes
4 answers

How to execute a python file with few arguments in java?

You can use Java Runtime.exec() to run python script, ...READ MORE

answered Mar 27, 2018 in Java by DragonLord999
• 8,450 points

edited Nov 7, 2018 by Omkar 49,668 views
0 votes
2 answers

How can I convert a String variable to a primitive int in Java

 Here are two ways illustrating this: Integer x ...READ MORE

answered Aug 20, 2019 in Java by Sirajul
• 59,070 points
0 votes
5 answers

How to compare Strings in Java?

String fooString1 = new String("foo"); String fooString2 = ...READ MORE

answered Jul 12, 2018 in Java by Daisy
• 8,110 points
+1 vote
2 answers

How to generate random integers within specific range in Java?

You can achieve that concisely in Java: Random ...READ MORE

answered Jul 25, 2018 in Java by samarth295
• 2,220 points
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 2,405 views
0 votes
0 answers
0 votes
1 answer

how to do global variable declaration in java

Hello,​ Global varriable which is defined after the ...READ MORE

answered Apr 3, 2020 in Java by Niroj
• 82,820 points
0 votes
2 answers

How to convert InputStream to byte array in Java?

The class IOUtils, lib: ...READ MORE

answered Sep 24, 2020 in Java by Anthony