NetBean Swing or Swing without NetBean

In previous posts I have mentioned about me using BlueJ. Ive tried NetBeans IDE and find it better than BlueJ so I am using NetBeans now. One area of NetBeans uses Swing GUI components which allows you to build GUIs and creates the source code for you. There seems to be alot of information in the Oracle tutorials on Swing outside Netbeans. and at the moment I am still learning the Java programming language and do not know how important learning Swing is. This leads me to the question: Is using Swing in NetBeans enough to get by in creating GUIs or what aspects in Swing are the most important to use in conjunction with Swing in NetBeans?

You can do desktop or web application development (there are others). I suggest you do web application development instead of desktop since I believe there are more employment opportunites there. If you decide to go that route, I suggest you dump Swing and go with JSF. Its part of the recommended JEE technology stack (http://www.oracle.com//technetwork/java/javaee/tech/index.html). I also suggest you use either Netbeans IDE or Eclipse IDE since they are the most popular with experienced developers. You'll also need a (free) database. I suggest Oracle Express. For a server: Tomcat or Glassfish.
I suggest the first book you read is on Java, then on Servlets, then on  JSF. I suggest you keep away from JSP, its older technology. However, you will eventually need to read up on it since so many web applications are written with it. You will probably need to maintain those types of web applications when employed. Which other technologies to study and in which order in the above mentioned link is a subject for another day.

Similar Messages

  • Download installation(java+netbeans) Bundle get installed FULL Netbeans[php

    Download installation(java+netbeans) Bundle get installed FULL Netbeans[php etc] or only Java Netbeans ?
    How detect if my PC has “JDK installed success” ?
    How detect if my PC has “JDK system vars setup success” ?

    There have been a number of problems with the installation of the IDE/java co-bundle.
    Download and install the current SDK version of java and then go to [url http://www.netbeans.org]Netbeans website and d/l and install the current IDE version, 3.5.1. That should resolve the problem.

  • How to run netbeans swing code without netbeans

    hi
    i created a GUI use netbeans and it compiles and runs under netbeans. my question is how can i run it on a machine doesnt have netbeans. i realise that in the netbeans project scr file, there s two .java file, but have no idea how should run it. i tried to do
    javac <GUI class name>.java
    but got lots of erro like this:
    GUI_main.java:545: package org.jdesktop.layout does not exist
    jPanel20Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    how can i do it corectly???
    dav

    Hai,
    u need to search the Classes ur using in netbeans installation directory
    i.e., org.jdesktop.layout some class.
    May i know y ur using org.jdesktop.layout package
    From where u got GroupLayout. Search GroupLayout.class and set the classpath.
    javac -classpath <path of the class files>
    regards,
    RdRose.

  • Starting bundled Tomcat without Netbeans

    Hi,
    I need to start the bundled Tomcat with Netbeans without actually starting Netbeans and rightcliking in Servers->Start Server eventually even put it at the startup of my computer. Anybody can help me do that?

    Bundled tomcat is usually installed within the ide installation directory structure. For instance, if you are using Java Studio Enterprise 8.1, it is installed under <ide_install>/ide/enterprise2/jakarta-tomcat-5.5.9. For other ide versions, you can search the install dir for 'catalina.sh' to find out the directory.
    To start the server outside the ide, move to the <tomcat_in_ide_install_dir>/bin. You should see the startup scripts/executables there.

  • Java client for WCF STS service without netbeans etc.?

    I want to communicate with a WCF service that uses an STS. I want to know what I am doing, so I don't want  to use netbeans. If I have to use netbeans to figure it out for myself, can you help me interpret this part of the documentation for metro:
    https://metro.java.net/guide/ch12.html#gghnt
    How do I retrieve the certificate from the .NET service to use if I follow the instructions?
    Or, other suggestions would be helpful.
    Thanks

    I'm a bit confused why you're using an Applet to do this as it will require you to serve the Applet from the same server as where the .Net web service lives.
    If I was doing it I'd take advantage of the web service capabilities built into Java 6 (the only supported version from Sun). The wsimport tool would be able to reverse engineer the WSDL from the .net web service and generate client side classes for you.

  • Can i CREATE Swing objects from without EDT?

    Subj
    Thenx.

    Yes, you can create Swing components and set their properties in any thread as long as the component hasn't been realized yet (by calling pack or setVisible on its parent).

  • Error Message While Installing NetBeans / Can Not Install Without Java JDK

    hello
    I am new to Net Beans and installaing 6.5.1 version of this software on Windows XP. I could not complete the download without having Java JDK 1.5.0.06. ( I believe that they numerical figures are not sure). I am trying to find the JDK download. No luck. Can anyone help to point this out to me please.

    Unable to find this by using a search engine?
    http://www.oracle.com/technetwork/java/javase/downloads/index.html
    Also, I think it's highly unusual that not having Java would cause your download to fail, but anyway...

  • HowTo: Compilie JavaFX with Ant (without netbeans build-impl.xml)?

    Howdy, see subject :)
    Cheers!

    Here's a cleaner solution....
    1. Download and install the SDK on your machine
    2. Copy the SDK installation files into your project (I copied c:\Program Files\JavaFX\javafx-sdk-1.0 to ./Resources/JavaFX/. in my project) - this is used for compilation only and not packaged with distro.
    You might want to now uninstall the SDK for accurate testing
    3. Configure Ant (as below).....
    Since I put my JavaFX SDK in my project under ./Resources/JavaFX/javafx-sdk1.0 you will see this occur in the config below.
    <?xml version="1.0"?>
    <project name="MyJavaFXProject" default="compile" basedir=".">
      <path id="javafx.classpath">
            <fileset dir="./Resources/JavaFX/javafx-sdk1.0/lib">
                <include name="**/*.jar" />
            </fileset>
      </path>
      <taskdef classname="com.sun.tools.javafx.ant.JavaFxAntTask" name="javafxc">
            <classpath refid="javafx.classpath" />
      </taskdef>
      <target name="compile" depends="prepare" description="compile java and fx source">
            <javac srcdir="./Source/Java" destdir="./build/classes" includes="**/*.java"/>
            <javafxc srcdir="./Source/Java" destdir="./build/classes" includes="**/*.fx" executable="./Resources/JavaFX/javafx-sdk1.0/bin/javafxc.exe">
                <classpath refid="javafx.classpath" />
            </javafxc>
      </target>
      <target name="prepare" description="create build directory for compiler output">
        <mkdir dir="./build"/>
        <mkdir dir="./build/classes"/>
      </target>
      <target name="clean">
        <delete includeemptydirs="true">
          <fileset dir="build" includes="**/*"/>
        </delete>
      </target>
    </project>Hope this helps someone, and p.s.... if you are a maven user.. perhaps you can repackage the JavaFX SDK and install it in a Maven repository.

  • How to print a PDF file from Swing(JFC/swing)

    Hi,
    I am able to dislay a PDF file in Swing but how can I print it from there. I want to do it without using Acrobat reader.

    You can use the "System Exec.vi". The command line should have the following structure:
    "<Path to AcroRd32.exe>" /t "<Path to document>" "Printer name"
    For example"
    "C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe" /t "C:\myreport.pdf" "Tektronix Phaser 300i"
    Regards;
    Enrique
    www.vartortech.com

  • Netbeans+Javafx+JBoss-7 : Any netbeans plugin for JBoss-7 support?

    Hello world,
    I am trying to switch from eclipse to netbeans for my current javaee+javafx project, but netbeans doesn't currently support JBoss-7. Any suggestions?
    Thanks.
    BTW The decision to exclude JBoss-7 from netbeans -- perhaps hoping that developers would rush to adopt glassfish-- is a silly one. And yet, Oracle JDeveloper seems to works well with JBoss-7.
    No serious development department in any organization that is already tied to a AS (say) JBoss is going to suddenly change it to glassfish just to be able to use netbeans. This decision will only backfire on Oracle, as its effect would be to stop developers already using JBoss from trying or even adopting netbeans.

    I am already using JBoss and eclipse. I was only trying netbeans to use the javafx facilities, but the JBoss version provided in the project creation task does not include JBoss-7. Beside, if you work for an organisation, you don't have the flexibility to change tools --The decision is not entirely yours.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Beginner question about NetBeans

    I am new to java, which is why I am posting on this forum. I have been messing around with the NetBeans IDE and have made a couple GUI's now. First question is how do I have the window change. For example, if the application opened up and it showed a menu with a couple different buttons you could click to do different things, how would I make it so when you clicked a button the window changed into what was supposed to be on the screen next. Say one of the options was "Calculator", how would I make the window become a calculator after it was clicked? Do I make a new JFrame with the all the calculator stuff? If so, how do I "connect" the two of them? I want it to appear in the same window, not open a new one. My second question was how do I make it so my applications can be run from the desktop without having to build from within NetBeans?
    It was a little difficult to explain what I was asking, but any help is appreciated. I am assuming that what I'm trying to do is pretty basic, sorry I'm newbie.

    mdewaddict11 wrote:
    I am new to java, which is why I am posting on this forum. Let me try to be the first to welcome you to our little corner of the Java world.
    I have been messing around with the NetBeans IDE and have made a couple GUI's now. First question is how do I have the window change. For example, if the application opened up and it showed a menu with a couple different buttons you could click to do different things, how would I make it so when you clicked a button the window changed into what was supposed to be on the screen next. Say one of the options was "Calculator", how would I make the window become a calculator after it was clicked? Do I make a new JFrame with the all the calculator stuff? If so, how do I "connect" the two of them? I want it to appear in the same window, not open a new one. My second question was how do I make it so my applications can be run from the desktop without having to build from within NetBeans?I have a feeling that you are searching for a way to change your GUI "view" on some action, and if so, there are many solutions to do this. Probably one of the more common ways is to use a CardLayout to swap JPanels, but other options including popping up a JDialog, using JTabbedPanes, hiding a JFrame and showing another, ... exist.
    It was a little difficult to explain what I was asking, but any help is appreciated. I am assuming that what I'm trying to do is pretty basic, sorry I'm newbie.You're doing fine, relax.
    Now I need to get on my soap box and discuss another issue that you've not asked about. First off, Java is not like Visual Basic, C#, or other .NET languages (assuming you may be familiar with the MS Visual Studio) in that our programs are not first and foremost GUI's with code tacked on. There's a lot to learn when starting to code in Java, enough that adding Java GUI coding may be a bit overwhelming at the start. I'm going to recommend that you put the GUI stuff to the side for a bit, study the basics of Java, and then later when you're comfortable with the rudiments of Java, start learning Swing coding but without NetBeans code generation. If you learn it through the Sun tutorials, Swing will make a whole lot more sense and even using NetBeans to generate some Swing code will be easier for you. Regardless what you do, best of luck!
    Edited by: Encephalopathic on Jul 7, 2010 2:15 PM

  • Trying to create Netbeans Swing/GUI component

    Hello,
    I'm trying to create a GUI component from the following code. The main idea is to create a component consisting of a checkbox and a panel. The panel can contain several other swing components. By checking or unchecking the checkbox I want all by components in the panel to be enabled or disabled.
    The important thing is that this component should work in the Netbeans GUI designer. I'm using Netbeans 5.5.
    My problem is the following:
    When adding my swing component to the Netbeans swing component palette and dragging onto a new form, I cannot assign other components to the main panel of my component. Even if I use the Inspector tree to drag components to be children of my component, the mouse icon shows a denying icon.
    If I add swing components programmatically, it works.
    Can somebody give me an advice what I should change in my code to make it work with the Netbeans GUI designer?
    Below you can find the current code of my standalone component. It includes a main() method so one can give it a try.
    Many thanks in advance!
    package test.swing;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class JEnabler extends JPanel {
        private JCheckBox checkEnabler = new JCheckBox();
        private JPanel contentPane = new JPanel();
        public JEnabler() {
            super.setLayout(new BorderLayout());
            checkEnabler.setSelected(true);
            checkEnabler.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
            checkEnabler.setMargin(new Insets(0, 0, 0, 0));
            checkEnabler.setVerticalAlignment(SwingConstants.TOP);
            checkEnabler.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                    checkEnablerActionPerformed(evt);
            super.addImpl(checkEnabler, BorderLayout.WEST, -1);
            super.addImpl(contentPane, BorderLayout.CENTER, -1);
        private void checkEnablerActionPerformed(ActionEvent evt) {
            Component[] list = contentPane.getComponents();
            for (int i=0; i<list.length; i++)
                list.setEnabled(checkEnabler.isSelected());
    protected void addImpl(Component comp, Object constraints, int index) {
    contentPane.add(comp, constraints, index);
    public LayoutManager getLayout() {
    return contentPane.getLayout();
    public void setLayout(LayoutManager mgr) {
    if (contentPane!=null)
    contentPane.setLayout(mgr);
    public void remove(Component comp) {
    contentPane.remove(comp);
    public void remove(int index) {
    contentPane.remove(index);
    public void removeAll() {
    contentPane.removeAll();
    public static void main(String args[]) {
    SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    JFrame frame = new JFrame();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    JEnabler enabler = new JEnabler();
    JTextField tf = new JTextField("Test");
    enabler.add(tf);
    JButton test = new JButton("Click");
    enabler.add(test);
    frame.getContentPane().add(enabler);
    frame.pack();
    frame.setVisible(true);

    Can anyone tell me what I am missing?
    public void paintComponents(Graphics g)you're not 'missing' anything, in fact you've gained an 's'

  • Swing, Netbeans Platform or what else?

    Hi,
    I have this question. Is there an alternative to Swing? I started to learn Swing, but it seems a bit ackward to me, are there any other GUI libraries? I know of the Netbeans Platform, but I don't understand what's it about yet.
    I'll appreciate your help, thanks.

    kevinaworkman wrote:
    Aardenon wrote:
    I just started with Swing, I'm going through the Oracle tutorials and it is yet hard to embrace.Okay, but what about it do you find hard to embrace? If we knew what you didn't like, we'd be able to help you find something you do like. (or explain why you should like Swing anyway, heh)
    Powerful, yet sort of out of reach. Sorry, I don't really know what that means.
    I don't know, perhaps it's just a first impression.Yeah, probably. You can't expect to just "get" something as soon as you look at it. Understanding Swing will take weeks (or months, or even years).
    I think this might be what I was "affraid" of. Perhaps I didn't expect it to be that large and complex. But I am new to Java and I don't have any comparison.
    I also read that Swing will not be developed any longer.Where did you read this? It is simply not true (err.. I hope).I'm quite sure I saw this somewhere on the Netbeans website or within the Netbeans IDE 6.9.1.
    >
    So I wonder, are there any alternatives, perhaps it is wise to start with something else if there is a choice.There isn't, really. I guess you could try to use AWT, but I would bet you'd find the same things you don't like there as well.
    What about the Netbeans Platform, would anyone advise it?I don't really know what that is (GUI builders are the root of all evil), but I would definitely recommend learning how to code Swing, if you want to get into programming GUIs in Java.Thanks for your reply.

  • Unable to run jar file without lib folder containing swing-layout-1.0.jar

    I have done my project through NetBeans 5.0. Eventhough I have copied my lib foloder containing swing-layout-1.0.jar inside my project.jar, I am still unable to run my project.jar in other systems, it is creating an error as Could not find the main class. Program will exit. But if I copy the lib foloder containing swing-layout-1.0.jar in the same path as the project.jar, then my project.jar is running.
    But I want to give only the project.jar for other users and not also lib foloder containing swing-layout-1.0.jar each time.
    Could someone please help me with this.

    When you develop GUI applications using the Netbeans you may endup using netbeans specific jar files in your auto generated code.
    And when you build jar files with netbeans it copy the third party jar files used in a application in to a lib folder in the same directory as the jar file of your project. And then set a class path entry to those jar files in your project jar file's manifest file.
    So if you want to redistribute the package you have to redistribute your jar file and every thing in the lib folder in with the same directory structure.
    If you want to change the structure you will have to change the class path to suit the new structure.

  • NetBeans or Eclipse: Which is better for GUI development ?

    I am relatively new with JAVA, came from embedded software domain mostly in C.
    My interest is to learn and develop the GUI applications using Swing.
    I am currently in a process of evaluating the IDEs, Eclipse and NetBeans on Linux desktop environment (SuSE 10.3).
    My primary findings found that, NetBeans is better equipped with GUI development while Eclipse needs to have a plugin installed.
    For GUI development, I found that few of my fellow Java developer friends have mixed feelings about these two wonderful IDEs, in summary here are the comments:
    1) Developing GUI is better without any assistance from built in designers of IDEs (e.g. NetBeans or Visual Swing of Eclipse). Because, they put extra 'garbage" codes which are very much IDE specific.
    2) GUI development in NetBeans is faster and more productive than Eclipse
    3) Visual Swing for Eclipse is not a matured product and it is far inferior than NetBeans' capabaility
    Now I ask a question, what is the best practice to adopt for starting the GUI development ? NetBeans or Eclispse or IDE-less development ?
    Thanks.

    atomodachi wrote:
    Now I ask a question, what is the best practice to adopt for starting the GUI development ?
    NetBeansThis is my preference for IDE's. Please note that as I stated that is my preference. There isn't any best, some are clearly better than others for one reason or another, but once again, that boils down to personal preference.
    EclispseNot my preference.
    IDE-less development ?IMO: that is just silly. Unless you just enjoy tons of typing; why would you ever embark on doing something without a tool to speed up the process. Now that is not to say that in using your IDE you should start out by just dragging and dropping up a storm and merrily running down the road in ignorance until you hit a rough spot and have things dramatically pointed out that you've really not a clue about what is happening. Use the IDE, but learn how to do the manual processes along with it. That means that sometimes you'll not drag and drop to build your GUI, you'll actually code the entire thing. And you really should learn to do things command-line like compile. Do yourself a really big favor too, learn the debugger. The integrated debuggers is, perhaps, one of the best inventions in productivity tools that has as of yet been invented for developers.
    In any case, have fun... choose what you like, it really does come down to personal preference. I've worked in several shops over the years and most have come to the conclusion that if you can get the work done, and have projects that others can use, then to each their own preferences. The discussion rages on for and against each of the systems that you have mention--each have valid arguments--it boils down to what do you want and like.

Maybe you are looking for