JTabbedPane not maximized in frame.

Hi,
I have an swing application which comprises of this code:
(the code hash as been shortened). My problem is when the user clicks on
the button from LoginPanel, the panel gets removed and get replaced with a JTabbedPane(AgentMain). However, the JTabbedPane is not correctly displayed, meaning it is not fully maximized to the frame. It is just centered in the middle of the frame with a set size. How can I make the JTabbedPane fully maximized with the frame?
1. class REASApp extends JFrame{
... etc
getContentPane().add(BorderLayout.CENTER,new LoginPanel());
public static void main(String[] args){          
     ReasApp mp = new ReasApp();
     mp.pack();
     mp.setSize(600, 400);
     mp.setBackground(Color.white);
     mp.setVisible(true);
} // Closes main method
2. class LoginPanel extends JPanel{
JPanel mainPanel = new JPanel();
add(mainPanel);
public void actionPerformed(ActionEvent evt){
          if (evt.getSource() == bLogin){
          removeAll();
          add(new AgentMain());
          revalidate();
          repaint();
3. class AgentMain extends JTabbedPane{
... etc
}

change the layout
setLayout(new BorderLayout());

Similar Messages

  • Not minimize the frame in linux

    Hi...
    I met with a problem that when I run my project, the project main window is started, but the window is minimized by default in linux (running JDK1.4). How can I resolve this problem that not minimize the frame??
    Thanks in advance.
    lupeng
    [email protected]

    Hi AngusThermopyle,
    I have used the method "setState()" that in your reply, but it did not work. My frame is minimize in linux yet, I can not find the reason...
    However I should say thanks to you for your reply.
    Thank you :)
    lupeng

  • Refrencing objects that are not present on frame 1 of a movieclip

    Hi everyone!
    I'm working with a movieclip right now that has two frames in it.  I want the user to be able to go back and forth between the pages by clicking on tabs on either page.  The button that they click on is only present on the frame that it is applicable (so, the button to switch to frame 2 is only present on frame 1, and vice versa).
    I want to control when they are able to click back and forth, and be able to turn the buttons on and off whenever I need to, but since the button to switch back to frame 1 is only on frame 2, when I reference it from the main timeline, the button registers as a null object.  How do I refrence an object that is not present on the first frame of a clip?
    Here's the gist of what I have.  The main timeline has an object called "mAccess" that has 2 frames, Windows and Reports.  At the top there are two tabs, one for Windows, one for Reports.  The Windows tab is only clickable when on the Reports frame (frame 2) and the Reports tab is only clickable when on the Windows frame (frame 1)
    Main Timeline:
         mAccess.bReports.addEventListener(MouseEvent.CLICK, gotoreportstab);
         function gotoreportstab(event:MouseEvent) {
              mAccess.gotoAndStop(2);
         mAccess.bWindows.addEventListener(MouseEvent.CLICK, gotowindowstab);           <---  This gives me the error about the null object reference,
         function gotowindowstab(event:MouseEvent) {                                                                 since bWindows does not exist on frame 1 of mAccess.
              mAccess.gotoAndStop(1);
    Thanks for whatever help you can give me!

    the bottomline is you can't reference an object that doesn't exist (yet).  the easiest work-around is to make sure your object exists on the frames where you need to reference it.  the object doesn't need to be visible so this isn't much extra-work.  you can add and remove the object from the displaylist as you see fit or enable and disable its visible property. 

  • PRE11 -If not maximized, windows desktop corrupted

    I have just installed the PRE11 Trial on a Wndows XP SP3 system and a Windows 7 system.  On both I notice the same incorrect behaviour.   If  run with the main PRE window so that it is not maximized, and then 'drag' the window around the desktop remnants of the PRE window are left behind concealing the desktop data that I was looking for.   The only way to correct this is to maximize PRE and then minimize it.
    Has anyone else noticed this?

    The video card is an Nvidia 7300GT at the latest driver updated yesterday.  Although this may be at the lower end of what is needed for video editing, I have successfully generated several videos.  
    Let me repeat my observation that the error can be exhibited with an empty workspace, so PRE is not using ANY CPU at all. All other applications manage to get the window redraw correct.   Many years ago I was a programmer developing Windows GUI Applications, and these sort of issues used to occur because the application did not set the necessary indicators on the Windows API to cause a complete redraw after the window was resized.   Could the same be true for PRE?
    Has anyone else tried reducing the size of the main PRE window, and then dragging the window around the desktop.
    I would also observe that PSE 11 Preview works perfectly in this area, I can reduce the size of the main windo and drag around to no ill effect.

  • JMF: How to play an  avi file NOT in a Frame...is this possible?

    -----Primary Task------
    Using JMF, I want to play an avi video file NOT in a Frame
    ---------Why?----------
    I want to play this avi file in a "non-decoration" container (ie. no Windows GUI, eg. Window/JWindow, Panel/JPanel)
    -------Problem---------
    The MediaPlayer method in JMF 2.2.1e requires a Frame container, according to JMFUtil.java (eg. mediaplayer = jmapps.util.JMFUtils.createMediaPlayer)
    ------Questions--------
    1. Is there any way to change the method of JMFUtil.java to enable video files to play NOT in a Frame, like a Window or Panel?
    2. If not, do you know of any "tricks" to get rid of the Frame decorations?
    3. If not, any other solutions?

    sigh... first read the API, then ask.
    Frame.setUndecorated(boolean) might help. http://java.sun.com/j2se/1.4.1/docs/api/java/awt/Frame.html#setUndecorated(boolean)

  • Panel not maximized when data member activate=true.

    The panel activates on startup as expected (activate =true), but it is not maximized.  The panel spans almost top to bottom and about half of the width.  The panel can be maximized or minimized by clicking in the upper r.h. corner, but it cannot be stretched.  Is there something I can do to make this panel maximize at startup?
    Thanks,
    Joe C.

    Sounds like you might have tried adding the ‘true’ to the maximize writable member and found that the pushbuttons no longer work.  Most people would attempt this with something like ‘maximize= pb1 or true’.  The reason this will not work is the value of the expression (pb1 or true) never changes – its forever true.  If you embed a oneshot around the true keyword, the pushbutton functionality will still work.  This would look like ‘maximize= pb1 or oneshot (true, 00:01)’.  If you’re looking for a way to maximize at startup and also use the pushbutton, this will do the trick.

  • My Flash CS3 document got corrupted and its not showing timeline frames & drawings on stage. How to retrieve it?

    My Flash CS3 document got corrupted when I clicked on the option "Save & Compact".Now its not showing timeline frames & drawings on stage. Can someone please help me by telling how can I retrieve my work..???

    copy your fla.
    rename the copy to a dot rar file and use winrar to repair it.  then unrar to see if you can get a uncorrupted copy.
    otherwise, rename your fla to a zip, unzip it and recover whatever assets you can.
    or if you have a good swf, try a decompiler (like sothink's) to see if you can recreate your fla.
    and, in the future, save versions of your work so you never have to go through this learning experience with flash or any other document creation tool.

  • I can not import videos frames to layers.

    I can not import videos frames to layers. ( I do have QuickTime )

    You may whant to look at your windows creash reports to see where CS4 is crashing, It may help you find a solution if there is one.
    Photoshop is not designed as a video editor.  Video is more or less and add on.
    Photoshop video support was also significantly enhances in CS6.  While there is still support for  menu File>Import>Video Frames to layers.  Its not the best way to get video into Photoshop.  Even dropping a quicktime file onto Photoshop is better.  I find the best way to get video into Photoshop is using the Video Timeline add media into.  Its quicker, You have better control of selecting the frames you want,  And you can turn a video timeline into layers and a frame animation if that is what you want to work on.
    If you want to do video get a lost cost video editor like Premier Elements.  If you just want do do simple video editing spring for CS6 or subscribe to the cloud.  CS6 will set you back some $700 for Standard $1000 for extended.   Where $10 a month will get you the cloud. Where your get Photoshop Extended and can  also use LR.  I do not use LR or do video editing.  I get the cloud mostly for the improvements being made to ACR and ACR in Cloud Photoshop is a Filter in addition of being a Photoshop and Bridge Plug-in.
    Frame Animations and video timeline can be save for web as animated  poor choice for video or large frame animation. They can also be rendered out as video.  Video file sized are much smaller then Animated GIF have better color and can contain audio as well. Here the 1920x1080 Gif file size was nearly 29MB  where the High Quality mp4 with audio was about 6MB.
    View Screen capture in new tab or browser window the site scale screen captures very poorly at times.
    `
    http://www.mouseprints.net/old/dpr/slide.mp4

  • Illustrator file not filling InDesign frame

    I have a Table of Contents graphic created for a news letter in Illustrator. The graphic is 1.2624" wide. In InDesign, I set up a frame the same width and no matter what fitting opitons I try, the graphic will not fill the frame.
    If I chose fit frame to content, there is a .04165" gap around my graphic. Is there a way to have the graphic drawn to size in Illustrator and then completely fill a frame the same size in Indesign?
    Thanks,
    Phil

    I used to create a no-fill, no-stroke box as a bounding box to help me with placement when I got the Illustrator file into Quark (I hadn't learned ID yet when I had that job). It was a music publisher, and if I wanted a two-measure musical example centered on the Quark page, I exported from the music notation program and opened in Illustrator, made the Illustrator bounding box the width of the Quark live area, and centered the musical example, within the bounding box in Illustrator. After I placed the Illustrator file in Quark, I fit the picture box to the image and snapped the box to the margin guides. I could have used Quark to center the example with the text boxes on either side, but seeing the picture box snapped to the margin guides gave a quicker visual that things were centered correctly.
    That's one way that the bounding box would be a different size than the art itself, but you could argue that the bounding box was part of the art, even though it wasn't a visible part.

  • Project not showing full frame in a compound clip

    Hi Folk;
    I am finishing my first project in FCPX (10.0.9) . Overall everything went very well.
    I had another editor start the project on another computer.
    I copied the event to my iMac and continued the edit. No problems until I exported the project for the client review.
    I have a compound clip with mixed footage and a storyline and connected clips that I have used in a project with several compound clips.
    I can play this particular compound clip fine and all the video displays fine. (see picture #2)
    I lay the this Compound clip into the project and I get less than full frame out in my "storyline" elements - especially after the orange render bar disappears -
    I sent the client a version with the "drop out" video (see first pix below where image does not reveal full frame ) and have spent a few hours looking for a cause for my issue. I am wondering if I am the only one dealing with this.
    I have created a work around - exported the compound clip and reimport it as a full clip and layed it into the timeline.
    The setting for the compound clip are XDCAM sony and the footage that is at issue is AVCHD from a panasonic.
    I have several events providing footage for the compound clip
    The project has seveal compound clips from different events
    The event folder I created seems to be where the issue lives. or maybe the render -
    I am using orginal footage not proxies.
    I want to avoid this in the future so any insight is helpful.
    I feel I have made a mess of my first project and want to clean up any bad habit that may be causing my problem.
    Thanks for the opportunity to diagnos this.
    I am sure this is as clear as mud.
    Cheers!

    when you first create a new project, FCPX *can* be set to accept "Automatic Settings" -- basically, it will take the properties of the first clip dropped in the storyline. This can be very convenient if you know the media will be all the same, or you know how to manipulate the "first drop". 
    If you know the format you want your project to be, it's better to set that up manually when you start a new project (Advanced Options). When you apply your media to the storyline, FCPX will conform the media to the project settings. It doesn't always work perfectly (due to custom or proprietary differences in file formats for the containers holding the media.) For instance, one of my older (SD) camcorders produces "Samsung AVC" (from Get Info on the file) and FCPX simply will not recognize the anamorphic footage.
    Anyway, so, yes, I would suspect the 1440x1020 footage might be problematic. (Are you sure it's 1020?? or did you mistype? If it's actually 1080, it still might be giving you problems. All of my 1440 footage requires manually adjusting the width by 133.33%).
    You can force a change for your project by clicking going out into the Project Library and with your project selected, you should see a wrench icon at the bottom right of the inspector. Click that and adjust your project settings (you cannot change the frame rate once a project is started, but you can change just about everything else.) Once you get the format set up (and you go back into your project), then you'll know which clips will need to be adjusted. If you have footage that won't fit the frame, you will probably need to go into the video tab > Transform, turn down the Scale disclosure triangle and adjust the X scale (usually) and Y scale (only if necessary.) If the footage you need to conform is SD, there is an Anamorphic Override option available in Info > Settings.
    About compound clips... FCPX tries to guess a format based on "common" properties. If you're creating compound clips with mixed media - Use  Custom Settings and set the properties to be the same as the project format.
    HTH

  • IPhone5: Have to take picture left of subject to capture. Subject not even in frame?

    I was taking photos from 20 feet of stage performance (lighting was fair) and camera was capturing subject right of frame! I had to take picture left of subject to get the picture. Intended subject was not even in frame! What? Also, how do you zoom in video mode? Thx!!!!!

    Hi!
    This could be done in many ways so it's quite hard to pin point what's going on and how it's done.
    The first thing I would do is to reset the the router you have, creating a new password for loging on in case they have gained access this way, then create a new password for the wireless network if you are using it.
    Then reinstall your computer, if they/you have installed some software and gotten a Trojan, the only way to get rid of it to 100% is to reinstall. There is no meaning in trying to find it and uninstalling it since it's gotten this far allready.
    Depending on what router you have, you might be able to get the logs and see from where they are connecting and trying to pinpoint their location.
    There are probably other ways to find out more, but if this happened to me, the first thing I would do is to get rid of the problem, ignoring who they are.
    Best regars
    Andreas Molin
    Andreas Molin | Site: www.guidestomicrosoft.com | Twitter: andreas_molin

  • Launch Acrobat Reader 8 not-maximized

    I have a flex 3 app (not AIR) for which I am launching the
    acrobat reader 8 with a pdf that the user selects from a tree
    control. The code looks like....
    var pdfUrl:URLRequest = new URLRequest("
    http://server/pdftest/1.pdf");
    navigateToURL(pdfUrl,"_blank");
    I have set the Internet options in the Adobe Acrobat Reader
    to not launch in the browser. The problem is that every time the
    reader launches it is maximized....is there a way to launch it so
    that it is not maximized (even if it will use its last window size
    would be good).
    Thanks

    Acrobat/Reader 9 were the first version to incorporate AES-256 code, so if you want to remain backwards compatible with Reader 7 or 8 you need to continue to use AES-128. I believe this is documented in the help for the section that describes how policy edit works.
    Jonathan

  • Adding a new Tab to an existing JTabbedPane not working

    Hello all,
    I am trying to add & display a new tab to an existing JTabbedPane when the user
    clicks on a button. For some reason the new tab, being added is not being displayed, and I don't know why. I have called invalidate(), validate() on the parent containers but haven't had any luck. I have also played around with SwingUtilities.invokeLater() and the Event thread, but have been unsuccessfull.
    Any help would be greatly appreciated.
          * This class is the parent that holds the internalFrame which is the
          * main parent for all subsequent containers
         public class QuoteRequestGUI implements QuoteRequestGUI_IF {
              protected JInternalFrame internalFrame_newQuoteRequest = new JInternalFrame("Quote Request");
              protected JTabbedPane tabbedPane = new JTabbedPane();
               * Create a new internal frame to which all the components of a new
               * QR will be added
              public JInternalFrame createNewQuoteRequestFrame() {
                   // Add a tabbed pane to the internal frame
                   internalFrame_newQuoteRequest.add(createQuoteRequestTabbedPane());
                   // .... Set various internalFrame properties
                   return internalFrame_newQuoteRequest;
              public JTabbedPane createQuoteRequestTabbedPane() {
                   // Create a new quote request details instance
                   QuoteRequestDetailsGUI_IF quoteRequestDetailsGUI =
                        new QuoteRequestDetailsGUI(quoteRequestStatusPassed);
                   // Create a new tab that will host all details of the quote request     
                   tabbedPane.addTab("Quote Request Details",
                             quoteRequestDetailsGUI.createQuoteRequestDetailsPanel());
                   return tabbedPane;
         public class QuoteRequestDetailsGUI extends QuoteRequestGUI implements QuoteRequestDetailsGUI_IF {
              private ProductDetailsGUI_IF productDetailsGUI = new ProductDetailsGUI();
               * Panel that will act as a container for both quote request and buyer
               * details
              public JPanel createQuoteRequestDetailsPanel() {
                   // Panel that will contain quoteRequest, buyer and buttons
                   JPanel panel_quoteRequestDetails = new JPanel();
                   // Create an intermediate panel so that components can be layed out properly
                   JPanel panel_quoteRequestIntermediatePanel = new JPanel();
                   // Set layout manager for panel
                   panel_quoteRequestIntermediatePanel.setLayout(
                        new BoxLayout(panel_quoteRequestIntermediatePanel,BoxLayout.PAGE_AXIS));
                   // Add the buttons
                   panel_quoteRequestIntermediatePanel.add(createQuoteRequestDetailsButtons());
                   // Add the intermediate panel to the main panel
                   panel_quoteRequestDetails.add(panel_quoteRequestIntermediatePanel);
                   return panel_quoteRequestDetails;
               * Panel that will hold all the buttons for the quote request details tabbed panel
              public JPanel createQuoteRequestDetailsButtons() {
                   // Panel to act as a container for the buttons
                   JPanel panel_quoteRequestDetailsButtons = new JPanel();
                   // Create, register action listeners and add buttons to the panel
                   JButton button_saveTabbedPane = new JButton("Save");
                   button_saveTabbedPane.addActionListener(new ActionListener() {
                        public void actionPerformed (ActionEvent actionEvent) {
                               saveTabbedPaneListener();
                   panel_quoteRequestDetailsButtons.add(button_saveTabbedPane);
                   return panel_quoteRequestDetailsButtons;
               * Display the save (product details) tabbed pane
               * @todo - Implement the save tabbed pane selected method
              public void saveTabbedPaneListener() {
                        log.info("tab count before added : " + tabbedPane.getTabCount());
                        // The product details of a particular quote request
                        tabbedPane.addTab("Product Details",
                                  productDetailsGUI.createProductDetailsPanel());
                        log.info("tab count after added : " + tabbedPane.getTabCount());
                        tabbedPane.invalidate();
                        tabbedPane.validate();
                        internalFrame_newQuoteRequest.revalidate();
         public class ProductDetailsGUI implements ProductDetailsGUI_IF {
               * Panel that will act as a container for both the product details (incl
               * table) and the buttons
              public JPanel createProductDetailsPanel() {
                   // Main product details panel
                   JPanel panel_productDetails = new JPanel();
                   // Add the scroll pane to the panel
                   panel_productDetails.add(new JButton("ok"));
                   // Add the buttons to the panel
                   // Add the scroll pane to the panel
                   panel_productDetails.add(new JButton("cancel"));
                   return panel_productDetails;
         }

    MS,
    Try copying one existing TAB and use that, this happens only when there is improper xml content. You can open the xml in the browser/visual studio for better clarity and then try making the changes. Doing IIS Reset will be required but in the meanwhile you
    can put the original RCDC which will work till the time you make any change in new TAB.
    Regards,
    Manuj Khurana

  • Modified JTabbedPane not updating on UI

    Hi all, describing my problem is kind of long winded, so thanks for bearing with me.
    I'm in the process of programming a blackjack-like card game. I'm attempting to implement a way the user's cards can be 'split' by using a JTabbedPane. I made a subclass of JTabbedPane (called JHSPanel) so I could keep track of each tab and its contents (stored as JSubPanels, described below)
    I also created a subclass of JPanel (called JSubPanel) that, when constructed, stores 2 normal JPanels: one to hold the images of the cards (stored as JLabels) when the player receives them, and another to hold a series of buttons (the buttons control 'Hit', 'Stay', 'Split' functionality) that I want to enable and disable at will.
    The idea is that when the player splits their cards, a JHSPanel (which is the subclass of JTabbedPane) would be created with 2 tabs. In each of those tabs, a JSubPanel (the subclass of JPanel) would house the area where the cards appear on the UI and also the buttons that the player can click to hit or stay... it would be the main content area for the tab. The extra subclass methods that I wrote would allow me to add different cards to different tabs and enable or disable different buttons on different tabs by keeping track of which JSubPanel goes with which tab, and then calling methods in the JSubPanel to change its state (and because the JSubPanel is the main content area of the tab, any changed state of the JSubPanel would be reflected in the tab, which the user could see).
    For instance, if a player hits on the first of his 2 split cards, I would know he pressed the button on the first tab, so I call JHSPanel.addCard((index) 0, (card object) card). This method would then call the appropriate JSubPanel for the tab at that index, and tell it to add the image of the card to the JPanel housing all the card images. This change of state for the JSubPanel would be reflected for that entire tab (because the JSubPanel is the main content area for the tab), and on the user's screen the card image would show up.
    The problem is that whenever I change state for the JSubPanel, the JHSPanel does absolutely nothing on-screen. It shows up on the screen when it's initialized, but after that it might as well be locked up. My program doesn't throw out any errors, the rest of the program works smoothly, and all the states are updating correctly (I know because I have tracers inserted to alert me of the change of states). I tried repainting and revalidating the tabbed panel, the main frame, the main content window, and everything else the tabbed panel is house in, but still the UI for the tabbed panel remains unchanged from it's original initialized state. The following is the source code of both JHSPanel and JSubPanel:
    public class JHSPanel extends JTabbedPane{
         private static final long serialVersionUID = 1L;
         protected static int HIT_INDEX = 0;
         protected static int STAY_INDEX = 1;
         protected static int SPLIT_INDEX = 2;
         private ArrayList<JSubPanel> tabs;
          * constructor for the JTabbedPane subclass
          * @param fragSize     number of tabs to be created
         public JHSPanel(int fragSize){
              // a list of JSubPanels
              tabs = new ArrayList<JSubPanel>();
              // create fragSize number of tabs
              for(int i=0; i<fragSize; i++){
                   // JPanel to hold the states created in JSubPanel. Note that
                   // this should not be necessary since JSubPanel IS a JPanel and
                   // a JSubPanel should be able to plug directly into a tab
                   JPanel main = new JPanel(new GridLayout(2,1));
                   // creation of a JSubPanel initializes 2 normal JPanels that are stored
                   // as fields:
                   // 1. a regular JPanel with a FlowLayout to hold JLabels (field name: 'felt')
                   // 2. another JPanel with a FlowLayout to hold the Hit, Stay, and Split
                   //    buttons (field name: 'buttons')
                   JSubPanel temp = new JSubPanel();
                   temp.getFelt().setBackground(Color.green); // the UI reflects this code, unlike in addCard()
                   main.add(temp.getFelt());
                   main.add(temp.getButtons());
                   tabs.add(temp);          // stores the new JSubPanel
                   // this JTabbedPanel creates a tab within itself, holding the JPanel
                   // (in a GridLayout) that holds 2 more JPanels (in a FlowLayout)
                   addTab("Hand #"+(1+i), main);
          * sends the Card object to the appropriate JSubPanel, distinguished by fragIndex. Any
          * change to state works internally (verified by trace statements, not present), however
          * the UI does not reflect any of these changes, as it should. It's as if I'm updating
          * correctly and changing correctly an object OTHER than the one present in the UI
          * (which does not make sense because, for testing, I have only been using the index 0)
          * @param c                    Card to be added to felt
          * @param fragIndex          Index of JSubPanel in list of all JSubPanels
         public void addCard(Card c, int fragIndex){
              // adds the card to the JSubPanel
              JSubPanel subPanel = tabs.get(fragIndex);
              subPanel.addCard(c);
              // Destroys the current tab and fabricates a new one, in the hopes that
              // the UI will update to reflect the change. This does not work
              this.remove(fragIndex);
              JPanel main = new JPanel(new GridLayout(2,1));
              subPanel.getFelt().setBackground(Color.black);     // UI does NOT reflect this change
              main.add(subPanel.getFelt());
              main.add(subPanel.getButtons());
              tabs.add(subPanel);
              this.insertTab("Hand #"+fragIndex, null, main, null, fragIndex);
    public class JSubPanel extends JPanel{
         private JPanel buttons;
         private JPanel felt;
         private JButton hit;
         private JButton stay;
         private JButton split;
         public JSubPanel(){
              buttons = initButtons();
              felt = initFelt();
         private JPanel initButtons(){
              JPanel main = new JPanel(new FlowLayout());
              hit = new JButton("Hit");
                   hit.addActionListener(new HitButtonListener());
              stay = new JButton("Stay");
                   stay.addActionListener(new StayButtonListener());
              split = new JButton("Split");
                   split.addActionListener(new SplitButtonListener());
              main.add(hit); main.add(stay); main.add(split);
              return main;
         private JPanel initFelt(){
              return new JPanel(new FlowLayout());
         public void enableButtons(boolean enabled, boolean splitEnabled){
              JButton[] bArray = {hit, stay, split};
              for(JButton b: bArray){
                   b.setEnabled(enabled);
              if(enabled){
                   split.setEnabled(splitEnabled);
         public JPanel getButtons(){
              return buttons;
         public JPanel getFelt(){
              return felt;
         public void addCard(Card c){
              JLabel label = new JLabel(Blackjack.cardData.imageMap.get(c.hashCode));
              felt.setBackground(Color.green);
              felt.add(label);
    }

    Nothing was wrong in the modified classes themselves, it was how they were used by the rest of the program that made it faultyWhy is why you should always try to post an SSCCE when you have a programming problem. Asking contributors here to solve a problem that lies in code not shown is hopeless for you and frustrating for us.
    While preparing your SSCCE, you will often find the guilty code yourself. Which is self-rewarding for you and more efficient for all. And of course if you don't understand why the guilty code has that effect, then you're welcome to ask the question, posting only the SSCCE.
    Regards,

  • Did you know Firefox 4 does not support full frame option in iPlayer or similar?

    Both at home & work - using Mac OS 10.5 & 10.6 Firefox 4 will not allow me to view full frame video stream such as BBC iPlayer, 4OD, ITV Player, TVCatchup ....etc, etc.
    I have now switched to using Safari & Chrome (which work perfectly) but in the interest of your 'going forward' I thought you'd like to know of this glitch.
    All the best

    I have Firefox 5.0.1 and the coupon printer I'm trying to use is supported by ActiveX. It appears that 5.0.1 is not compatible with ActiveX. Can you tell me how I can access this installation to print my coupons with Firefox, please? Thanks!

Maybe you are looking for

  • Intrastat Exports/Imports

    Folks, As Intrastat declarations are done for EU countries wherein statistics of exports/imports are declared to local authorities.Currently I want to know if any one has implemented the SAP provided standard functionality in ECC5.0.to use standard r

  • How to disable a particular row in a JTable

    How can a disable only a particular row/column in a JTable. I am trying to create an XML Notepad type of application for which I need the row which contains the root element or any element which has a child element to be disabled. How can I achieve t

  • Calibration PXI-5761

    Hello, I need to calibrate a PXI-5761, is there a calibration procedure? Thanks and best regards,

  • My Mac still thinks I have MobileMe

    I'm running 10.7.4, and I'm trying to enable iCloud on my Mac to work with my iPhone.  When I click on iCloud in Preferences, I'm prompted to convert my MobileMe account to iCloud, which I can't do because it's no longer available.  How do I bypass t

  • Screen pixilating and will not start up on macbook pro.

    I have a Macbook pro approx 6/7yrs old. (running on 10.4.?) When I turn it on the screen pixilates and breaks down and does not fully start up. Can see apple logo in centre of screen in the background. Anyone have any experience of this, or know what