![]() ![]() Navigate into the distributions directory and select the version of the plugin (for example antlrworks2_2.5.3.zip).This repository contains the NBM files to be installed in your Netbeans IDE (currently only for Netbeans 8.2) for the antlrworks2 plugin to be installed. That's why i decided to build it properly once and for all for Netbeans (currently only for 8.2). I decided to build this project against Netbeans (currently only against 8.2) so that you can enjoy this plugin without diving into the problematic nature of this project (to be built properly - some people develop plugins that they cannot even know the underlying nature of the platform that they built it against - thus they put other people into troubles). This repository is about building the antlrworks2 Netbeans plugin against all Netbeans platform versions (currently only for Netbeans 8.2 - I can build against other Netbeans versions upon reguest).Īntlrworks2 (created by Sam Harwell) is a Netbeans plugin that provides support for editing/development of ANTLR-based grammars/lexers. Click the jLabel in the Navigator pane and CTRL+SHIFT+7 to bring up the properties box, and there are no properties listed.Antlrworks2 plugin for the Netbeans IDE Abstract What happens is that the icon is no longer displayed. I have tried using the "Customize code" option of the JLabel to manually point the setIcon method to the resources package, but then the IDE really gets its nickers in a twist. Why can the IDE find and display the PNG file in the design pane, but when I try to run it normally it cannot find the file and so causes the null pointer exception. Everything I've read indicates that I should be able to use PNG files that are in different packages within the same project. If I move the PNG files to a subdirectory of the bragplayer package then it works OK, but this means having separate copies of the PNG files for each package. Note that I have not written any manual code to get to this point. Click the OK button.ĩ) The PNG file is now displayed as part of the JLabel.ġ0) Click Main Menu->Run->Run File and the stack trace then occurs. The PNG file is displayed in the preview box at the bottom of the dialogue box. Delete all the text from the "text" field.Ħ) Click the elipses box of the icon field to open the "icon" dialogue box.ħ) Click the "Import to Project." button, and then import the PNG files into the resources package.Ĩ) Click the "Image within project" radio button, select the resources package in the Package field, and the appropriate PNG file in the File field. The idea is that the PNG files will be common to several different card games, rather than having separate copies of the PNG files for each game.Ģ) Create two packages within DeckOfCards called "resources" and "bragplayer"ģ) Right-click bragplayer in the Projects window, select New->JFrame form, enter the class name "TestDispla圜ard" and click Finish.Ĥ) Click the "Label" icon in the Swing Controls pane, and then click somewhere in the image of the JFrame.ĥ) CTRL+SHIFT+7 to open the Properties pane of the JLabel. What I am trying to do is display an image of a playing card as an icon from a PNG file in a jLabel within a jFrame. I am getting the following stack trace when I try to run a file from within the IDE (6.9.1).Įxception in thread "AWT-EventQueue-0" Īt .(ImageIcon.java:167)Īt bragplayer.TestDispla圜ard.initComponents(TestDispla圜ard.java:38)Īt bragplayer.TestDispla圜ard.(TestDispla圜ard.java:22)Īt bragplayer.TestDispla圜ard$1.run(TestDispla圜ard.java:66)Īt .dispatch(InvocationEvent.java:209)Īt (EventQueue.java:597)Īt (EventDispatchThread.java:269)Īt (EventDispatchThread.java:184)Īt (EventDispatchThread.java:174)Īt (EventDispatchThread.java:169)Īt (EventDispatchThread.java:161)Īt (EventDispatchThread.java:122)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |