Link to home
Start Free TrialLog in
Avatar of drewmore44
drewmore44

asked on

Java GUI newbie question

Hi, I'm a new java student, so bear with me while I ask a very elementary question.

I have created a JFrame, and have created a new JList element in the code-view window in NetBeans. How do I get that JList to show up in the design-view window?

If its relevant, here is my code:
package checkout;
import javax.swing.*;
/**
 *
 * @author drew
 */
public class gui extends javax.swing.JFrame {
          DTE DrewMoore = new DTE("Drew Moore", "Server", 000, 10.24, .12);
          DTE JohnJasso = new DTE("John Jasso", "Server", 001, 10.24, .12);
          DTE LeoWilliams = new DTE("Leo Williams", "Server", 017, 10.24, .12);
          DTE AnthonyVillegas = new DTE("Anthony Villegas", "Bartender", 002, 10.24, .12);
          DTE AaronRogers = new DTE("Aaron Rogers", "Bartender", 003, 10.24, .12);
          DTE CarwinBrice = new DTE("Carwin Brice", "Cocktailer", 004, 10.24, .12);
          DTE KatieMiller = new DTE("Katie Miller", "Cocktailer", 005, 10.24, .12);
          Emp MikeZwiller = new Emp("Mike Zwiller", "SA", 006, 10.24, .12);
          Emp JoseHernandez = new Emp("Jose Hernandez", "SA", 007, 10.24, .12);
          Emp MikeSpillane = new Emp("Mike Spillane", "Runner", 010, 10.24, .12);
          Emp SalRamos = new Emp("Sal Ramos", "Runner", 011, 10.24, .12);
          Emp LeslieEstera = new Emp("Leslie Estera", "Host", 012, 10.24, .12);
          Emp KatieJones = new Emp("Katie Jones", "Host", 013, 10.24, .12);
          Emp JohnJacobs = new Emp("John Jacobs", "Kitchen", 014, 14.00, .12);
          Emp WillHarris = new Emp("Will Harris", "Kitchen", 015, 14.50, .12);
          Emp JanetMyers = new Emp("Janet Myers", "Kitchen", 016, 15.00, .12);  
          DTE[] servers = {DrewMoore, JohnJasso};
          DTE[] bartenders = {AnthonyVillegas, AaronRogers} ;
          DTE[] cocktailers = {CarwinBrice, KatieMiller} ;
          Emp[] SAs = {MikeZwiller, JoseHernandez } ;
          final Emp[] runners = {MikeSpillane, SalRamos } ;
          Emp[] hosts = {LeslieEstera, KatieJones} ;
          Emp[] kitchen = {JohnJacobs, WillHarris, JanetMyers} ;

    /**
     * Creates new form gui
     */
    public gui() {
        initComponents();
        JList run = new JList();
        run.setListData(runners);
    }
Avatar of Andr3wC
Andr3wC
Flag of Ireland image

Avatar of drewmore44
drewmore44

ASKER

No, it really doesn't.. what part of that post do you find relevant?
ASKER CERTIFIED SOLUTION
Avatar of Andr3wC
Andr3wC
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial