My jList won't show up on the frame

My problem is that I can't see the JList in the scrollPane. I am able to run and compile this frame through JBuilder, however I get this error message:
java.lang.NullPointerException new JList(helpTopics)
If I remove the jpanel from the frame and just drop in the scrollPane with the nested jlist on the frame I am then able to see the list and the items in the list. But I'd like to have it on a panel.
BTW I am calling this frame from another class that contains the main function. Here is my code:
import java.awt.*;
import com.borland.jbcl.layout.*;
import javax.swing.*;
import javax.swing.event.*;
import java.awt.event.*;
public class NewFrame extends JFrame{
private final String[] helpTopics = {"Load Cells", "Strain Gages",
"Op Amps", "RTD", "Wheatstone Bridge"};
JPanel jPanel1 = new JPanel();
JList lstTopics = new JList(helpTopics);
JScrollPane jScrollPane1 = new JScrollPane();
public NewFrame() {
enableEvents(AWTEvent.WINDOW_EVENT_MASK);
try {
jbInit();
catch(Exception e) {
e.printStackTrace();
private void jbInit() throws Exception {
jPanel1.add(jScrollPane1, BorderLayout.CENTER);
jScrollPane1.add(lstTopics, null);
Any help with my problem would greatly reduce my stress factor.
Thanks.

You haven't added the panel to the frame from the code you have just posted.

Similar Messages

  • Facebook notifications won't show up on the notification center?

    Facebook notifications won't show up on the notification center?

    I have the same problem since i upgrade my mid 2012 macbook pro from mountain lion to maverics.In mountain lion all facebook notifications were show up in the notifications area.I saw many videos in youtube and read many articles in internet how to fix this problem.My facebook account is active and checked in the system preferences.I dont know what else to try.Any help???
    P.S
    All other notifications(itunes,calendar,etc) working fine.

  • My external hard drive won't show up on the desktop!!

    Alright!
    I bought a 250Go external hard disk at the same time as my alumnium iMac around september 2007. Since then I had no problems.
    I also created partitions on my hard disk:
    1 - Mac = Mac OS extended (Journaled) 202 Go
    2 - PC = MS-DOS (Fat) 30 Go
    When I turn on on my hard disk, both icons usually appear on my desktop but since yesterday, ONLY my PC icon appear.
    I went in the Disk Utility and it seems that the MAC partition is always here but won't show up on the desktop. It's like it's become invisible or something.
    Should I be worried? Because I use the MAC partition to back up all my files with Time Machine.
    I find it annoying so anybody can help me out? Thanks!!

    Patrick, I have same issue with my (Intel) MacBook's internal HD. Tried your Script solution but recv'd Systems Events ERROR "Can't set disk "MacBook HD" to true".
    The (missing) HD is Boot Camp Partitioned and running Fusion. BTW, Fusion/WinXP will no longer open - "File not Found" error. Also, I didn't immediately notice the disappearance because my MacBook started booting from one of ext HD's (w/o me changing the startup drive).
    Any ideas greatly appreciated. I haven't tried the Terminal solutions posted since I'm not Terminal savey.

  • Hi, I have trouble loading my iPhone 5 photos into Aperture. The iPhone icon appears in the import window, but the images won't show up in the loading window.

    Hi, I have trouble loading my iPhone 5 photos into Aperture. The iPhone icon appears in the import window, but the images won't show up in the loading window

    The iPhone icon appears in the import window, but the images won't show up in the loading window
    Do your images show, if you disable the option "Do not import duplicates"? If yes, then check, if the images have already been imported, eg. using Photo Stream, if you are using Aperture 3.3 or later.
    Aperture 2, Mac OS X (10.6.8)
    Is your profile signature above still current?

  • I got frustrated when changing my password and ended up getting about 5 e-mails from Apple, now my ipod won't show up in the window in i-tunes

    I got frustrated when changing my password and ended up getting about five e-mails from Apple, saying the same thing.  Now my ipod won't show up in the itunes window.

    Device not recognized
    http://support.apple.com/kb/TS1538

  • Have a macbook pro running osx lion, connected a kindle fire using micro usb to transfer pictures and the disk icon won't show up on the desktop.  When I ran disk utilities the kindle does show up there.  Any thoughts as to why it's not recognizing?

    Have a macbook pro running osx lion.  Connected a Kindle Fire using micro usb and the disk icon doesn't show up on the desktop.  Also sometimes get a message sayiing computer doesn't recognize device.  When I opened disk utilities the Kindle disk does show up there.  What am I missing?

    cashworth wrote:
    Kindle is connected directly, not thru a hub.  Also called Amazon Kindle support, tech was baffled when I told her I was using a Mac.  She said, "I'm not really familiar with apple products." 
    Precisely why it's not an iPad, and why it doesn't cost very much.  An Apple rep would tell you how to connect an iPad to every computer.
    Go here:  http://www.amazon.com/gp/help/customer/display.html/ref=sv_kinh_9?ie=UTF8&nodeId =200127470

  • I added a movie to my iPod, but it won't show up in the videos library! I have to search for it in the search bar!

    So I downloaded a video in mp4 format and added it to iTunes. It shows up in the Home Videos tab and i can play it just fine, but, when i plug my iPod Touch into my pc and let it sync, it doesn't show! When i say this i mean it is ON my ipod, but to get to it i have to search for it in Videos. All that shows up in the library is a Family Guy episode i purchased from itunes a while back and at the top it says "Family Guy" as if it is it's own catagory. There is no back button or any buttons for that matter. Just the search bar and the episode. This is what i get when i launch Videos:
    And to get the video i have to tap the search bar and search it and play it from there

    Do you have any videos/movies in the video app?
    In iTunes if you right click on the video and select Get Info and go to the Option tap what Media Type is shown?

  • Obm-xdg won't show anything in the Openbox menu [SOLVED]

    I put the code:
    <menu execute="obm-xdg" id="obm-xdg" label="xdg"/>
    in ~/.config/openbox/menu.xml just like it says to do universally. It does not show any menu. Every other menu item in the file works. I can edit them and they change. obmenu can see the entry. gnome-menus is installed. obm-xdg works from the command line. Why does this not show anything in the menu?
    Last edited by skottish (2008-11-06 05:27:03)

    Make sure you add the menu id to the root-menu list at the bottom of menu.xml:
    <menu id="root-menu" label="Openbox 3">
    <separator label="Applications" />
    <menu id="obm-xdg" />
    <menu id="apps-accessories-menu"/>
    <menu id="apps-editors-menu"/>
    Last edited by thayer (2008-11-06 05:11:29)

  • The Education Pricing Discount won't show up in The Apple cart in the online store

    I am trying to get a MacBook Pro online, but the student Education discount pricing isn't showing up in the cart. I used the education store.

    Check that you have correctly followed the instructions for your model of Apple TV.
    If not already, try using a powered USB port.
    Repeat the process but this time try connecting the cable while iTunes is closed.
    Repeat the process with another cable.

  • Pages won't show up in the area of iTunes where files are transferred.

    I want to pass Pages docs from my iMac to my iPad via iTunes and the sync cable but Pages doesn't show up in the bottom area. Only thing I'm thinking is that I have the box checked that allows the Cloud to sync with all my Pages documents. Could that be affecting my ability to pass documents to the iPad via iTunes and sync/transfer cable?

    Just want to confirm that I am also having this issue, The connection is fine, and it is in fact charging (@ 100%)
    Everything Rick has said is like an echo to what is happening to me.
    I have tried re-installing iTunes, and restarting the Bonjour service, sadly there is no change.
    earlier before i updated iTunes it recognised my iPod but said that I had to update iTunes in order for it to work.
    So i updated iTunes but now it's not even showing the device anywhere.
    In case this helps:
    OS: Windows 8.1
    iTunes version: 11.3.1.8
    Device: 5th generation iPod touch 16GB with ios 7

  • Automator: Made a service but it won't show up in the app.

    followed this tutorial to make a "wrap text in quotes" automator service. I tried to find and use the service I made in a word processing application but no services show up, it simply says "no services apply." I followed every step to the T and I can even make a shortcut for the service in the settings window but still it will not work or show up. Not sure what I'm doing wrong and I'm VERY new to automator. Thanks everyone!

    I created a service for Numbers, and it wouldn't show up on the services menu, even if i selected any cell. I did this and it worked :
    1. Open Automator.
    2. Right click on the Automator icon in the dock.
    3. Your recent created service must appear in the list after right click, click on it.
    4. A message should appear, click INSTALL.
    5. Check service menu, it should then be in the menu.
    Good luck.

  • Itunes won't show iphone in the source list, other problems too

    Hi, I am having 3 huge problems with my iTunes.
    First, when I plug my iphone in, it charges and the computer recognizes it, but it doesn't show up in the list.
    Also, it for some reason starts on itunes store, every time. I want it to start on the music list like it used to.
    Last, it constantly freezes whenever I close a window leaving itunes behind it. So I can't have more than one window open when using it.
    I first uninstalled itunes completely, then installed the newest version, then updated my drivers. I have done everything on this list:
    http://support.apple.com/kb/TS1495
    Here are my computer details:
    Manufacturer: Lenovo
    Model: 94577hu
    OS: Microsoft Windows XP Professional
    CPU/Ram: 1.828 GHz / 502 MB
    Video Card: Mobile Intel(R) 945 Express Chipset Family
    Sound Card: SoundMAX Integrated Digital HD Audio
    I have no idea what to do now, please help!

    I am by no means an expert on iPhone issues but I recall reading some cables transfer power and others carry data too, and this may be device specific.  I suspect your third party device is designed to simply transfer power.  If it is as you say the issue is one of re-activating Home Sharing and it has to be connected by a data cable then you may be left without solutions unless you subscribe to iTunes Match (in which case you can afford to buy another cable ).
    You can read if Apple has any suggestions:
    iPhone, iPad, iPod touch: Device not recognized in iTunes for Mac OS X - http://support.apple.com/kb/TS1591

  • JList is not showing up in my Frame

    This is a program I wrote for Having images in a List. A custom cellrenderer and a custom listmodel. Somehow the list itself does not show up in my frame.
    import java.awt.Component;
    import javax.swing.DefaultListModel;
    import javax.swing.Icon;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JList;
    import javax.swing.JScrollPane;
    import javax.swing.ListCellRenderer;
    public class ListWithImages extends JFrame {
         public ListWithImages() {
              //          We need a Custom model and a Custom Cell Renderer
              CustomImageListModel customImageListModel = new CustomImageListModel();
              CustomImageListCellRenderer customImageListCellRenderer = new CustomImageListCellRenderer();
              JList jlist = new JList(customImageListModel);
              jlist.setCellRenderer(customImageListCellRenderer);
              jlist.setVisibleRowCount(6);
              getContentPane().add(new JScrollPane(jlist));
              pack();
              setVisible(true);
         public static void main(String args[]) {
              new ListWithImages();
         class CustomImageListModel extends DefaultListModel {
              @Override
              public void addElement(Object arg0) {
                   // TODO Auto-generated method stub
         //          Add 10 elements with images
                   for (int i = 0; i < 10; i++) {
                        super.addElement(new Object[] { "Item " + i, new ImageIcon("smiley.jpg") });
         class CustomImageListCellRenderer extends JLabel implements ListCellRenderer {
              public CustomImageListCellRenderer() {
                   setOpaque(true);
              public Component getListCellRendererComponent(JList jlist, Object obj,
                        int index, boolean isSelected, boolean focus) {
                   CustomImageListModel model = (CustomImageListModel) jlist.getModel();
                   setText((String) ((Object[]) obj)[0]);
                   setIcon((Icon) ((Object[]) obj)[1]);
                   if (!isSelected) {
                        setBackground(jlist.getBackground());
                        setForeground(jlist.getForeground());
                   } else {
                        setBackground(jlist.getSelectionBackground());
                        setForeground(jlist.getSelectionForeground());
                   return this;
    }

    I try yhis code and the list is displayed. Try using a layout to get a better design
    public ListWithImages() {
                    this.setLaout(new FlowLayout());
              //          We need a Custom model and a Custom Cell Renderer
              CustomImageListModel customImageListModel = new CustomImageListModel();
              CustomImageListCellRenderer customImageListCellRenderer = new CustomImageListCellRenderer();
              JList jlist = new JList(customImageListModel);
              jlist.setCellRenderer(customImageListCellRenderer);
              jlist.setVisibleRowCount(6);
              getContentPane().add(new JScrollPane(jlist));
              pack();
              setVisible(true);
         }http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html
    HTH

  • Ringtones are in my library but won't show up in the tones folder

    I have iTunes10 and an iPhone 5. The files are the correct format (m4r), they show up in my music library as a ringtone, the tones folder is already showing, but the ringtones do not show up in my tones folder.  I have already tried saving the files to the desktop and then deleting them from my music library and then opening the file from the desktop.  It automatically adds it back to my music library as a ringtone but does not add it to the tones folder.  Does anyone have any idea why iTunes won't allow me to put anything in my Tones folder and nothing will show up in there even if it is the right file format?
    Also, because there is nothing in the tones folder when I connect my iPhone there is no tones tab at the top of the screen to allow me to select any syncing options.  The tones folder shows on the left side of the screen when I click on the iPhone to expand it but no tab at the top and it won't let me put anything in the tones folder under my iPhone either.  Any advice/suggestions would be greatly appreciated.

    I am having the same problem. I spent three hours on the phone with Apple Reps last night. They first said that they would have to reinstate ? my permissions, which they did (I had also lost some music) but after an hour of downloads, I still had no tones. Spoke with another Rep and they said if I purchased the Tones on Istore they should show up. I had. They didn't. Then said that it could be the "older" music was no longer compatible and it MUST be purchased through Itunes Store to show up in Tones automatically. So...I bought almost $20 of Tones last night after I hung up, and NONE Of them show up in my Tones folder. I have tried everything. I cannot move them by drag and drop.
    This has been an ongoing problem for me for over a year, and so far, I cannot get any help.
    I was asked if it was possible if I had different Libraries. I told them I don't know, since I have used Itunes since 2009 (and like the old version much better) and I have never changed my Itunes login or password. I have however, had different computers.  I hope someone can help with this issue.

  • Half of my doc's citations won't show up on the bottom of the page as footnotes, while the other half is fine.

    Hello all,
    I'm using Microsoft Word for Mac 2011. I've been working on a document with lots of citations, and it's the weirdest thing, but footnotes for citations 66 - 126 won't appear at the bottom of the page. All others (1-66, 126 and above) appear as they should,
    on the bottom of the page where the data is located. So in other words, there are about four pages in my word doc that show
    no footnotes, even though when I add a citation to the content, the superscript numerals show up. It's like the footnotes are hidden or something, but I just can't figure out how to get them to show.
    Any and all help is so appreciated! Thanks.

    Hi,
    Please check the settings of your paragraphs around the footnote reference using
    Format > Paragraph > Line and page breaks: Keep with next, Keep lines together, Widow/Orphan control. Disable those that seem redundant.
    Here are some similar issue, we may try the solutions:
    http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macword/1st-footnote-disappears-in-word-for-mac-2011/abe1ea52-fd45-4681-80eb-7aca80160308
    http://forums.techarena.in/windows-software/1448835.htm
    Next, the topic of the forum is related to the Office for Window, not for mac. I recommend you post the question to Answers forum:
    http://answers.microsoft.com/en-us/mac/forum/macoffice2011?tab=Threads
    Thanks for your understanding.
    Regards,
    George Zhao
    TechNet Community Support

Maybe you are looking for

  • Wrong hyphenation on Pages 5.2 (dutch)

    In dutch, the word 'vrijwilliger' (volunteer) is hyphenated as 'vri-jwilliger'. Thats not correct: should be 'vrij-williger'. How can this be corrected?

  • My iMac freezes when saving a document in Word 2004

    Any help would be appreciated. When I try to save a document while in Word 2004 the application freezes and I have to force quit. Thankfully I can print the file as a PDF before trying the save as route but this is still a problem. What's the issue?

  • Error in converting String to XML file

    Hi Please see the code below, basically i want to convert the String i am having error when parsing xmlFile1, since the xml has some German characters like � How do i work around it or what is the best way to do it import javax.xml.parsers.*; import

  • Attachments using iViews

    Hi , I'm updating material masters using iview, basically my iview will generate idocs to sap r/3 system, now my situation is like as per sap we can attach files to that particular material.. i need to do that , how can I do this using iviews, please

  • Have a asa5505, not sure is its the right product.

    Greetings, I have a ASA5505(base model) that my sales rep said would do what I need, but after trying to set it up I think I either need upgrades or a different product. Allow me to explain what I'm trying to do and then hopefully someone will be abl