A panel that won't display

I've created a class "highscores" which reads data from XML, i've used it before so this should work... i put all the data into a list and i want to display it in a panel which containts a label.
but somehow the panel isn't visible, i tried a lot of things but it still doesn't work, anyone got tips?
this is the code to attacj & display the panem to it's frame:
private void HighScoresMenuActionPerformed(java.awt.event.ActionEvent evt) {
mContent.removeAll();
Ballkov_Highscores gamePanel = new Ballkov_Highscores();
gamePanel.setFocusable(true);
mContent.add(gamePanel);
setVisible(true);
and this the code of the panel itself:
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import java.applet.*;
import javax.swing.*;
import java.util.ArrayList;
import java.util.List;
public class Ballkov_Highscores extends JPanel {
List XmlHighscores = new ArrayList();
public Ballkov_Highscores(){
GetHighscores myGetHighscores = new GetHighscores();
XmlHighscores = myGetHighscores.LeesScores("highscores.xml");
JLabel Score_label = new JLabel();
Score_label.setFont(new Font("Century Gothic",1,16));
Score_label.setLocation(10,10);
Score_label.setText(ToString());
JButton Ok_button = new JButton("Terug naar het menu");
Ok_button.setLocation(50,50);
Ballkov_Defaults myDefaults = new Ballkov_Defaults();
Dimension framedimensie = new Dimension(myDefaults.getGAME_BREEDTE(),
myDefaults.getGAME_HOOGTE());
setPreferredSize(framedimensie);
setVisible(true);
public String ToString(){
StringBuffer sb = new StringBuffer();
for(int i=0; i < XmlHighscores.size() ; i++) {
sb.append(((Player)XmlHighscores.get(i)).toString());
sb.append( "\n" );
return sb.toString();
}

This question is off topic for this forum. Please post this in a more appropriate forum like the swing or awt forum.

Similar Messages

  • I have a 5th gen that won't display any video out

    I have a 5th gen that won't display any video out. I've tried 2 different splitter cables out of the earphone jack. I've tried plugging the RCA cables into different colors on the tv. Thought it was just a problem with the cables until tonight when I got a Sonic Impact V55. Video won't display on it either. I have the TV setting to ask. After it asks and I say yes, I get a picture of an Ipod cable connector and a message saying: TV OUT
    ENABLED Please Connect Video Accessory.
    This message happens on both splitter cables and using the dock connection on the V55. I've restored, reset, nothing has helped.
    I did see a couple of posts regarding the V55 and whether the 5th gen would work on it. Does anyone have a v55 that the ipods working with? Heck the box says it works with Ipod 5th gen.

    Playercoca wrote:
    The video out on an iPod does not go trough the earphonesjack.
    It goes trough the place where you put youre dock conector in (on the bottom)
    Yes it does, on the 5th generation (pre-Classic) models, the video does indeed feed out the headphone jack (as well as out the dock connector on the bottom).
    Patrick

  • FLV that won't display

    I created a DW CS5.5 file, (code is below) I embedded an FLV that won't play once the page is on the webserver, although in DW Liveview mode it plays fine.
    Please advise what I need to change to make this play on the server. The live page link:  www.kappythekangaroo.com/animation.html
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="320" height="240" id="FLVPlayer">
        <param name="movie" value="FLVPlayer_Progressive.swf" />
        <param name="quality" value="high">
        <param name="wmode" value="opaque">
        <param name="scale" value="noscale">
        <param name="salign" value="lt">
        <param name="FlashVars" value="&amp;MM_ComponentVersion=1&amp;skinName=Clear_Skin_1&amp;streamName=kappy&amp;autoPlay=true&amp;autoRewind=true" />
        <param name="swfversion" value="8,0,0,0">
        <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
        <param name="expressinstall" value="Scripts/expressInstall.swf">
        <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="FLVPlayer_Progressive.swf" width="320" height="260">
          <!--<![endif]-->
          <param name="quality" value="high">
          <param name="wmode" value="opaque">
          <param name="scale" value="noscale">
          <param name="salign" value="lt">
          <param name="FlashVars" value="&amp;MM_ComponentVersion=1&amp;skinName=Clear_Skin_1&amp;streamName=kappy&amp;autoPlay=true&amp;autoRewind=true" />
          <param name="swfversion" value="8,0,0,0">
          <param name="expressinstall" value="Scripts/expressInstall.swf">
          <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
          <div>
            <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
            <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
          </div>
          <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object>

    http://www.kappythekangaroo.com/FLVPlayer_Progressive.swf
    http://www.kappythekangaroo.com/Clear_Skin_1.swf
    both return "File Not Found"
    The first is the actual video player file, the second is the player skin.
    So either you didn't upload the files or you put them someplace else.
    http://www.kappythekangaroo.com/kappy.flv
    the actual .flv file is in your root folder, so that's probably where you should put the other two also.
    Best wishes,
    Adninjastrator

  • I have a full screen Frame that won't display a List when I add it

    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    import java.net.Socket;
    import java.net.InetAddress;
    import java.util.Scanner;
    public class Main {
        //the Main Frame to draw to
        static Framex f = new Framex();
        //login components
        static Panel top = new Panel();
        static JTextField username = new JTextField("ajtgarber", 20);
        static JPasswordField password = new JPasswordField("garber", 20);
        static JButton login = new JButton("Logon");
        static JButton quit = new JButton("Quit");
        static Label loginM = new Label("Please enter your username and password");
        static List CharList = new List();
        //networking components
        static Socket s =  null;
        static PrintStream stringOut = null;
        static Scanner stringIn = null;
        //main method
        public static void main(String[] args) {
            GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
            GraphicsDevice gd = ge.getDefaultScreenDevice();
            f.setBackground(Color.BLACK);
            f.setUndecorated(true);
            f.setResizable(false);
            f.setLayout(new BorderLayout());
            top.add(username);
            top.add(password);
            top.add(login);
            top.add(quit);
            top.add(loginM);
            f.add(top, BorderLayout.NORTH);
            Image background = Toolkit.getDefaultToolkit().getImage("lakeview.jpg");
            //f.drawImage(background);
            gd.setFullScreenWindow(f);
            logon_setup();
            f.setSize(500,500);
            f.setVisible(true);
        //method for setting up actionlisteners for the login components
        public static void logon_setup() {
            quit.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    shutdown();
                    System.exit(0);
            login.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    attempt_login();
            password.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    attempt_login();
            //quit.setForeground(Color.WHITE);
            //login.setForeground(Color.WHITE);
            loginM.setForeground(Color.WHITE);
            CharList.setVisible(false);
        //attempts to login
        public static void attempt_login() {
            loginM.setText("Logging in Please Wait...");
            f.repaint();
            try {
                s = new Socket(InetAddress.getByName("127.0.0.1"), 2000);
                stringOut = new PrintStream(s.getOutputStream());
                stringIn = new Scanner(s.getInputStream());
                stringOut.println("Login||"+username.getText()+"||"+new String(password.getPassword()));
                String str = stringIn.nextLine();
                if(str.equals("Login 0x248")) {
                    loginM.setText("");
                    char_login();
                else if(str.equals("Invalid 0x248")) {
                    loginM.setText("Invalid Username or Password!");
            } catch(IOException ex) {
                loginM.setText("Unable to Connect!");
            } catch(Exception ex) {
                ex.printStackTrace();
        //gives the user the character selection screen
        public static void char_login() {
            try {
                //username.setVisible(false);
                //password.setVisible(false);
                //quit.setVisible(false);
                //login.setVisible(false);
                loginM.setText("Getting Character List...");
                stringOut.println(username.getText()+"||charREQ"); //request character list
                ObjectInputStream ois = new ObjectInputStream(s.getInputStream());
                CharList = (List) ois.readObject();
                System.out.println("Received CharList from Server");
                loginM.setText("");
                f.remove(top);
                f.add(CharList, BorderLayout.EAST);
                System.out.println("Char: "+CharList.getItem(0));
                f.repaint();
            } catch(Exception ex) {
                ex.printStackTrace();
        //method for ending the connection
        public static void shutdown() {
            try {
                s.close();
            } catch(Exception ex) {
    class Framex extends Frame {
        private Image image = null;
        public Framex() {
           super();
        public void drawImage(Image i) {
           image = i;
           repaint();
        public void paint(Graphics g) {
            if(image != null) {
                 g.drawImage(image, 0, 0, this);
    }The Server and Client are a work in progress but Other than that why won't the List show up immediately after
    I add it to the Frame?

    Don't mix AWT and Swing widgets. Fix that, then ask again, preferably in the Swing section.

  • Recovering from resolution selection that won't display

    my intel mac mini arrived today. setup, including transfer of info from prior machine was a breeze. connected it via HDMI to a Sharp LCD. to explore which resolutions might display best, I clicked one that was displayed in the list but which I soon discovered was NOT compatible with the LCD TV. Now only display is "Signal Not Compatible." When I reboot, I see the usual apple startup in the TV's default resolution, but once it is started to switches to that incompatible resolution. But then of course I can't open the Display panel and change anything. A real catch-22!
    I am able to startup in single user mode (holding down command-S at startup) and look around in the Library/Preferences and elsewhere. Is there a plist to delete that will stop the switching to the incompatible signal?

    that worked. I knew to get rid of
    /Library/Preferences/com.apple.windowserver.plist
    but I hadn't found and removed
    ~username/Library/Preferences/ByHost/com.apple.windowserver.xxxx.plist
    because looking in the ByHost directory hadn't occured to me. I was looking for the windowserver files in ~username/Library/Preferences
    and one can find and delete these files using either single user mode or by using terminal in safe boot.
    In any case, I'm back in business. Thanks for all the help!
    Uh, this seems a problem that lots of more naive users are going to run into when they buy a mac mini for the media center. Without being comfortable with basic unix, this would be a difficult problem for the typical hom user to fix.

  • RH7 compiled topics won't display and throw an IE (syntax) script error

    Pundits,
    I am using RH 7 to create projects of about 600 topics. My OS is Windows XP Pro 2002, SP-3. My problem is that approximately 10% of the topics in my .chm file prompt an IE script error msg when I, or anyone else, tries to open them.
    Here's the error msg:
    When this window displays, user can click on either Yes or No and topic will display normally; the next time a user attempts to open this topic, same error displays, with same Yes/No click behavior.
    When I look at the html for any of the "bad" topics (i.e., topics that won't display), there is always this one extra line of code, referring to the ehlpdhtm.js file in my project folder:
    <script language="javascript" src="ehlpdhtm.js"></script>
    This line is never in the html of the "good" topics.
    Can anyone shed any light on what's causing this, and what I can do to remedy the situation?
    Thanks in advance.
    Dennis

    William,
    I have gone thru my project now and, as I stated in my May 1 mail to you, I have made duplicates of all of the "bad" topics and all of these new topics are now displaying correctly.
    Now I have a related, but different issue.
    Only one topic is causing that same error msg to display (refer to my original April 27 post: IE script error/syntax error; Line 13, character 1).
    The only topic that throws that error msg is the initial topic that displays when the .chm file is opened (i.e., the topic that is specified as the "Default Topic" in the HTML Help Options window when I click the Generate Layout button in the SSL pod.)
    Furthermore, the topic that throws the error message will only do so if it is the one specified as the Default Topic.
    As an example, if I have the topic Apple specified as the Default Topic, when the .chm file is opened the error msg window will display; when the user clicks either Yes or No to the "Do you want to continue running scripts?" query, the Apple topic will display normally. Each time that topic is selected it will throw the same error msg. window.
    If I go back to my project in RH and change the Default Topic to the Pear topic, re-compile the project, when the .chm file is opened the error msg will display; when you click Yes/No the Pear topic will display normally (until it's selected again). The Apple topic now displays fine at all times.
    This tells me that the problem seems not to be with the Apple topic, as I'd suspected, but with something that's going on with RH and how it displays the initial topic in a compiled project. I think.
    Any ideas on how I can remedy this issue?
    Thanks in advance.
    Dennis

  • Images won't display

    Hello,
    I am building a site for a photographer. Just some thumbnail
    pages with
    links to larger images in series. I'm stuck with a page that
    won't display
    some jpg's while other pages will. Have tried the document
    versus site
    reference change both ways to no avail. The problem page is
    http://www.stephenlehmer.com/puy_fish/Puy_fish.html.
    You can click on the
    place holders which will tell of the image without display
    it.
    The home page is
    http://www.stephenlehmer.com/
    Any suggestions greatly appreciated.
    Bill

    Try renaming the files without the pound symbol.
    http://www.stephenlehmer.com/puy_fish/Puy_fish_thumbnails/Puyfish#3bTb.jpg

  • Manage Views - newly created view won't display

    Hi All,
    I was recently asked to create a portfolio view for a new senior project manager. I've done this before so I thought it would be fine. However, once I create the view and I go back in to the Poject Centre, the view won't display. It just shows
    a grey page. I then deleted the view I created and duplicated an existing view (but just changed the filter so it showed the projects managed by the senior's directs) but even that won't display.
    I don't understand why this has worked every time previously and not now. Any idea what it could be?
    Thanks in advance for any help/advice.
    Clair.

    Hi Clair,
    What does exactly happen? Can you see the view name in the view drop down menu?
    In case you don't, there are 2 main things to validate:
    Which type of view did you select? In order to be accessible from the project center, it has to be a project center view and not for example a project view. See screenshot below (unfortunately in french).
    Did you correctly associated the appropriate security category with the view? Indeed, if project manager are in the default project manager security group that is associated to the "my projects" category, you need to associate the newly created
    view with the "my projects" category.
    In case you see the view in the dropdown list but when selecting it, nothing is diplayed, check for filters in the project center page or directly in the view configuration. Check also if the account you're connecting with has proper rights to access the
    list of projects displayed by the view.
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • Won't display bands that starts with Z

    My iPod has the strange, strange problem that it won't display ZZ Top. I can find the songs by searching through Albums, but they just don't show up on the All Artists list.

    It is because Apple is doing you a favor by not letting you access ZZ Top songs.
    Patrick

  • I purchased an album that won't play now that my match subscrription has ended. Not interested in re-subscribing, but I paid for that album. How can I download it again since the cloud icon doesn't display?

    I purchased an album that won't play now that my match subscrription has ended. Not interested in re-subscribing, but I paid for that album. How can I download it again since the cloud icon doesn't display?

    Hi,
    Does the track play? Did you purchase track from iTunes? Download past purchases - Apple Support
    Jim

  • TOC Won't Display in WinHelp

    I am updating a WinHelp project that was previously developed
    in X3 but which I am now trying to update and compile in RoboHelp 7
    for Word. The TOC won't display (i.e., the TOC navigation panel at
    the left doesn't display) when the help is launched. When viewing
    the TOC in the single panel window by clicking the Help Topics
    button, the links do work. There is a CNT file. I tried deleting
    the GID file (as suggested by Adobe), and using the old CNT file
    that worked in the previous version of the project. Anyone else
    experience this with RoboHelp 7?

    We're getting the same issue here. We compile - looks great. We copy the hlp and cnt files to another computer and the TOC disappears. We're using RoboHelp for Word and have been since v5. Can anyone help on this? All topics are there; links work, graphics great, but the Table of Contents has vanished.
    If I run the AutoGenerate TOC function, the TOC disappears completely from the system. Bear in mind, this is the same file we've been working from for the last 3 years and up until now has been working. We recently updated to v7 and upgraded again to v8 today.
    I really appreciate any guidance anyone can give.
    Kerry

  • Flash builder 4.7 as plugin won't display asdoc

    Hi,
    on windows 7 x64, I just installed Flash Builder 4.7 x64 on my existing eclipse 4.2 x64 (using "the Adobe Flash Builder 4.7 Plug-in Utility") and the asdoc popup won't display anything but the current element. If I start the standalone Flash Builder, using the same workspace and same project, it works fine. Do I need to configure something else so it works as a plugin?

    My mistake...
    There was a typo into the XML application descriptor, that prevented the app to install properly on the device.
    Precisely, it wasn't a typo but raher a malformed <intent-filter> node. I launched adb tool from the console with adb install MyApp.apk command, and I saw this : Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED] in the terminal. From here it was easy to find the culprit.
    What would be cool is to have this feature inside the Flash Builder's Console panel.

  • JButton subclass won't display

    I have defined XYButton as a subclass of JButton that contains some coordinate (x,y) information. For some reason, when adding my XYButtons to my frame, I only ever get one button. Whereas when I add regular JButtons, they get added as expected. Why? What's wrong with my code?
    public class XYButton extends JButton {
        private int x;
        private int y;
        public XYButton(int x, int y) {
            this.x = x; this.y = y;
        public int getX() {
            return x;
        public int getY() {
            return y;
    }The code that uses XYButton is as follows:
       myFrame = new JFrame("Weird button behavior!");
             Container container = myFrame.getContentPane();
             container.setLayout(new FlowLayout());
             container.add(new XYButton(0,0)); //will display
             container.add(new JButton("3"));
             container.add(new XYButton(0,1)); //won't display!!!!!! why?
             container.add(new Button("4"));
             container.add(new Button("5"));
             container.add(new Button("6"));
             myFrame.pack();
             myFrame.setVisible(true);Thanks in advance for any help!

    Hi,
    This is because that the values which you are passing is considered as the X-co-ordinate and Y-Coordinate because of which when you provide
    (0,0) you are able to see the Button
    but when(0,1) is given button is created on the panel,instead you cant see it since it is exactly at the back of the (0,0) button.Kind of overlapping is taking place.
    If there is any wrong from my suggestion/help,request all to correct me.
    Thanks
    regards,
    Viswanadh

  • Firefox won't display ANY videos, but Chrome/IE will.

    It's all in the title really. FF won't display any videos. In Youtube, the screen is black, apart from the red "play" button in the middle. When I click play it says "an error has occurred". In any other video sites the video section is blank, white. I have uninstalled/reinstalled both Firefox and Adobe Flash Player. Firefox is also fully updated.

    hello, yes, you'd have to uninstall flash from the windows control panel in windows7 (just diabling it in firefox won't work in this case). alternatively you could run the uninstaller-tool that adobe provides on its website: http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-windows.html

  • My iPhone 5 won't display smart text options.

    My iPhone 5 won't display smart text. It did when I initially downloaded the new OS, now those options don't appear at all. Did I click something to make them disappear?
    I went into Settings to see if there was a component of it within Messages. I don't see anything.
    Thoughts please.....
    Thanks much
    Ginger

    Awwww......that's it....the dash! I tapped it. Tried to drag it up/down and it didn't move. Now I swiped and it's back!
    So I need to remember to drag up/down and now swipe.....
    Thanks much!
    Ginger

Maybe you are looking for

  • Unable to run Store Procedure based deski report in Infoview

    Hi All, I have a Deski report which is created using Store Procedure. I am able to run report in Full Client Deski. But I am unable to run / schedule same report thorough infoview. More details about report - Report uses 3 store procedures. When I ra

  • Payment being taken despite cancellation?

    Payment is still being taken (2 extra months) since I deleted Photoshop. I went onto "manage account" but it is not listed as an app, yet the money keeps coming out my account each month for Photoshop. Can anyone tell me how this can be cancelled and

  • Mail auto-completion doesn't work

    In Mail prior to Mountain Lion, I just had to start typing an email address and the app would suggest addresses either from my address book, or from the history of people I wrote to or who wrote to me. If I copied and address and pasted it in a new m

  • Palm 700wx

    My 700wx connects to internet when sitting on table with screen off any suggestions???? Post relates to: Treo 700wx (Telus Mobility)

  • How can I get into my iPad touch without my password?

    My daughter has put a password on her iPod touch by mistake and now we can't get into her apps or settings. Anyone have any suggestions for us? Please help!  Thanks.