1

Topic: Net Beans Java Swing Browser

Hello! Only I start to work with Net Beans. It is necessary to make the desktop-program with the built in browser. Found an operating example () on an Oracle site on  JavaFX WebEngine with usage JFXPanel in Swing JPanel. I want to build in the browser in similar JFrame in which there is a possibility to use Net Beans GUI Builder. But there my added JPanel simply it is not displayed. Here the code of the designer of a class working from Design Manager public SimpleSwingBrowser () {super (); createScene (); initComponents (); panel.add (jfxPanel, BorderLayout. CENTER); getContentPane ().add (panel); pack ();} I Assume that it is somehow connected to what Layout uses automatically  NetBeans the function code initComponents. I ask to help how to add the browser in JFrame, using GUI Builder in NetBeans. In advance thanks for the help.

2

Re: Net Beans Java Swing Browser

Hello! As a result of experiments there is a specification that the question was more clear. If on the basis of an example to create the code public BrowserFrame () {initComponents ();} private void initAndShowGUI () {//This method is invoked on the EDT thread//JFrame frame = new JFrame ("Swing and JavaFX"); this.setDefaultCloseOperation (JFrame. EXIT_ON_CLOSE); final JFXPanel fxPanel = new JFXPanel (); this.add (fxPanel, BorderLayout. CENTER); this.pack (); this.setSize (640, 480); this.setLocationRelativeTo (null); this.setVisible (true); Platform.runLater (()-> {initFX (fxPanel);});} that no panel appears. If  a call//initComponents (); all works. A problem that I do not want to make comments - it is necessary for me, that the code created through GUI Builder worked, and fxPanel was visible. How to force them to work together (that both that, and another was displayed on the form)?

3

Re: Net Beans Java Swing Browser

Hello, x1, you wrote: x1> Hello! I in other subject wrote to you. Who imposes you such architecture? If that, at JavaFX there is the UI Builder. And generally, it is thought more over thing in comparison with Swing. If to write  on Dzhave from zero it is logical to take JavaFX already  in my opinion.

4

Re: Net Beans Java Swing Browser

Hello, Tourist, you wrote: T> I in other subject wrote to you. Who imposes you such architecture? If that, at JavaFX there is the UI Builder. And generally, it is thought more over thing in comparison with Swing. If to write  on Dzhave from zero it is logical to take JavaFX already  in my opinion. Couple of years informed on problems with  outside of Windows back. Swing stablly cross-platform. Whether polished JavaFX to similar level?

5

Re: Net Beans Java Swing Browser

Hello, Blazkowicz, you wrote: B> Hello, Tourist, you wrote: T>> I in other subject wrote to you. Who imposes you such architecture? If that, at JavaFX there is the UI Builder. And generally, it is thought more over thing in comparison with Swing. If to write  on Dzhave from zero it is logical to take JavaFX already  in my opinion. B> couple of years informed on problems with  outside of Windows back. Swing stablly cross-platform. Whether polished JavaFX to similar level? So it is global for all and all I will not answer. Itself with what that problems did not face for 3 years of dialogue with JavaFX. In one  used for a spelling of everyones small admin . Saw one more or less serious  application for traders on JavaFX. Itself now got to the project to which 18 years, 3  lines!!! Pure swing, the heavy trading client. In general,  swing in comparison with JavaFX for me it is a hell)) And so, at us  it UI on WPF.