gui-builder

Java on OSX: wrong accelerator key icon in Swing menu using Netbeans GUI builder

故事扮演 提交于 2020-01-05 13:51:06
问题 I created a small application using Netbeans 8.1 on OSX. It contains just two menus "file" and "edit". The purpose is to add full copy / cut / paste functionality to the edit menu later on. I want to use Netbeans GUI builder but i encounter the following problems: 1st try: I created a small example with Netbeans GUI builder (Swing GUI Forms -> JDialog). I just added a menu bar to the JFrame and the a JMenuItem in the GUI builder and some code to the constructor. The result is: As you can see

JFreeChart not appearing on JPanel - may be something to do with my code's logic

孤者浪人 提交于 2020-01-02 05:19:06
问题 This question relates to a similar question I posted on here a few days ago... Here is the interface which will show where I am wanting the chart to appear: I am wanting to display the chart on the large JPanel on the right hand side. What the chart is meant to do is to compare a particular player's stats with their country's average and the overall average (with three bars). The chart (should) know which player to show the comparison by getting the player's name from the textbox (the one

Netbeans ImageIcon not displaying

无人久伴 提交于 2019-12-13 03:37:48
问题 I am using the NetBeans GUIBuilder to make a JPanel Form. I added a JLabel and used NetBeans' interface to give it an icon from an external image (.png). The path is verified and the image shows up on the GUIBuilder screen. It even shows up when I click the "Preview Design" button. It DOES NOT show up when I RUN the project. The rest of the GUI appears as it should. Do any of you know why this happening and/or how to fix it? A lot of you have been asking for an SSCCE. Since the code is

Adding JFXPanel to a JFrame. Why is it not working?

非 Y 不嫁゛ 提交于 2019-12-11 15:59:57
问题 I am trying to add a JFXPanel to my JFrame. I am using Netbeans and Netbeans' Swing GUI Builder. When I run it I do not get any errors and the JFrame is created successfully but the JFXPanel with the text does not appear. Here is my code: public class TestingFX { private static void initJFrame() { NewJFrame frame = new NewJFrame(); final JFXPanel fxPanel = new JFXPanel(); frame.add(fxPanel); frame.setVisible(true); Platform.runLater(new Runnable() { @Override public void run() { fxPanel

JToggleButton addItemListener seems to repeat the ItemListener forever

我是研究僧i 提交于 2019-12-10 17:16:24
问题 I'm programming a JToggleButton to load to/discard from memory the configuration of an element (a telescope config), so I've added a JComboBox in a JFrame and near it the button to load the selected item. When the JToggleButton is selected, an hard disk icon is displayed, another icon if otherwise. I'm using the IntelliJ IDEA GUI editor for that. Of course, I've added an ItemListener (as suggested from the web) to that button: loadTelescopeButton.setSelected(true); System.out.println

A good wxpython GUI builder?

笑着哭i 提交于 2019-12-09 07:36:07
问题 Is there a good wxpython GUI builder that does not require much coding, like in the case of the form builder in MS visual studio ? 回答1: There is wxGlade. Here is a screenshot: and wxFormBuilder Also, have a look here for more alternatives: GUI Programming in Python 回答2: I've tried a few, and the only one I seem to have any luck with is wxFormBuilder 回答3: In addition to those, some people really like the XRCed application that's included with wxPython. Basically you create your GUI in XML.

Codename one gui builder does not work

你离开我真会死。 提交于 2019-12-06 14:15:59
问题 I am trying to use code name one new GUI designer tool. Version - Codename one GUI builder 3.7.3 Eclipse - Used Oxygen and Mars both. Java - tried 7 and 8 both. My problem is i cannot add any containers or any component to the design area. Once i add one it suddenly disappear. ( Simply cannot create any UI) I cannot change the layout even.Always it shows Layered layout and cannot change. I have created a java 7 as well as java 8 code name projects but nothing works. I followed - https://www

JFreeChart not appearing on JPanel - may be something to do with my code's logic

一曲冷凌霜 提交于 2019-12-05 15:24:48
This question relates to a similar question I posted on here a few days ago... Here is the interface which will show where I am wanting the chart to appear: I am wanting to display the chart on the large JPanel on the right hand side. What the chart is meant to do is to compare a particular player's stats with their country's average and the overall average (with three bars). The chart (should) know which player to show the comparison by getting the player's name from the textbox (the one with "getPlayerName" already in it. As with my similar question mentioned earlier, I have created a class

Codename one gui builder does not work

我与影子孤独终老i 提交于 2019-12-04 19:48:18
I am trying to use code name one new GUI designer tool. Version - Codename one GUI builder 3.7.3 Eclipse - Used Oxygen and Mars both. Java - tried 7 and 8 both. My problem is i cannot add any containers or any component to the design area. Once i add one it suddenly disappear. ( Simply cannot create any UI) I cannot change the layout even.Always it shows Layered layout and cannot change. I have created a java 7 as well as java 8 code name projects but nothing works. I followed - https://www.codenameone.com/blog/using-the-new-gui-builder.html According to tutorial Figure 14. The features of the

Netbeans: using GUI Builder on regular Java class file

大憨熊 提交于 2019-12-04 04:03:30
问题 I'm using Netbeans. When I create a Java class, I sometimes want to change it to be a GUI component so that I can visually edit it using the GUI Builder. What is the necessary step to transform a regular Java class to a GUI component so that Netbeans would recognize it and allow me to use GUI Builder ? (i.e. switch between Source and Design) 回答1: NetBeans' Gui builder, Matisse, works off a .form xml file located adjacent to the source file. Matisse creates and maintains the .form file and the