Prob in revalidate()

i m hvng a prob in revalidate() method. I hv a panel over which i am putting some images (in d form of a label) by clicking on that particular image button.After moving the labels on d panel if i click any other button a new label is added but d old label(which was moved) goes bk 2 its initial position...
the code for buttons is as follows:
public void actionPerformed(ActionEvent e)
     String tmp=e.getActionCommand();
if("actor".equals(tmp))
          Icon icon1 = new ImageIcon("..\\uml\\actorfull.gif");
          JLabel label1=new JLabel(icon1);
          dropZone.add(label1);
          dropZone.revalidate();
}

thanx 4 being too rude!!!! that was my 1st post on this site & u hv shown me a good eg of behavior
well for ur refrence if u wud lik 2 help me anymore i m gvng my code
public class Uml extends JFrame implements ActionListener,MouseListener,MouseMotionListener
     Container con;
JPanel p1,p2;
     final JPanel dropZone;
private int xAdjustment;
     private int yAdjustment;
     Component dragComponent;
     int xpoint;
     int ypoint;
Uml()
     con=getContentPane();
     addMouseListener(this);
     addMouseMotionListener(this);
     ImageIcon act = new ImageIcon("..\\uml\\actor4.gif");
     JButton actor = new JButton(act);
     ImageIcon use = new ImageIcon("..\\uml\\usecase.gif");
         JButton usecase = new JButton(use);
actor.setActionCommand("actor");
     actor.addActionListener(this);
     usecase.setActionCommand("usecase");
         usecase.addActionListener(this);
dropZone = new JPanel();
         dropZone.setBorder(BorderFactory.createLineBorder (Color.blue, 2));
           dropZone.setBackground(Color.WHITE);
con.setLayout(new BorderLayout());
     p1.setLayout(new FlowLayout());
     p1.add(actor);
     p1.add(usecase);
con.add(p1,BorderLayout.NORTH);
     con.add(dropZone, BorderLayout.CENTER);
     //setSize(800,570);
     setVisible(true);
public void actionPerformed(ActionEvent e)
     String tmp=e.getActionCommand();
if("actor".equals(tmp))
          Icon icon1 = new ImageIcon("..\\uml\\actorfull.gif");
          JLabel label1=new JLabel(icon1);
          dropZone.add(label1);
          dropZone.revalidate();
}//if
if("usecase".equals(tmp))
          //dropZone.repaint();     
          Icon icon2 = new ImageIcon("..\\uml\\ucase.gif");
          JLabel label2=new JLabel(icon2);
          dropZone.add(label2);
          dropZone.revalidate();                    
}//if
}//actionPerformed
     public void mousePressed(MouseEvent e)
          Container container =  (Container)e.getSource();
          Component component =  container.findComponentAt(e.getX(), e.getY());
          if (component instanceof JPanel) return;
          dragComponent = component;
          xAdjustment = dragComponent.getLocation().x - e.getX();
          yAdjustment = dragComponent.getLocation().y - e.getY();
     **  Move the component around the panel
     public void mouseDragged(MouseEvent e)
          if (dragComponent == null) return;
          dragComponent.setLocation(e.getX() + xAdjustment, e.getY() + yAdjustment);
     **  Deselect the component
     public void mouseReleased(MouseEvent e)
          dragComponent = null;
     public void mouseClicked(MouseEvent e) {}
     public void mouseMoved(MouseEvent e) {}
     public void mouseEntered(MouseEvent e) {}
     public void mouseExited(MouseEvent e) {}
public static void main(String args[])
     Toolkit kit = Toolkit.getDefaultToolkit();
     Dimension screenSize = kit.getScreenSize();
     int screenWidth = screenSize.width;
     int screenHeight = screenSize.height;
     Uml obj=new Uml();     
     obj.setBounds(0, 0, screenWidth, screenHeight-29);
     obj.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}//class                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • My apps dance open and close on their own in my IPad 2 what can be the prob? I have already restored

    I got the charger flex or pin changed and now the apps dance on the screen, photos open and zoom in, then out, the other apps open and close. I have already restored the device with Itunes and prob is still there. What can be the problem? Any suggestion will be welcome. Thank you

    THANKS for your prompt reply  Bluetooth is off in my laptop and IPhone.. and in fact the reset is the only thing that can make it back to normal. But for a lil while. I wonder if it is the touch, or the home botton... both things are very expensive to replace, so I wouldn't like to spend $$ and continue having the prob.....

  • Prob in decode function

    hi iam having prob with the following decode function
    declare
    c varchar2(20);
    begin
    select decode(deptno,
         10, 'accounting',
         20,'Research',
         30 ,'sales',
         40,'operations','UNKNOWN') into c from dept where loc='DALLAS';
    dbms_output.put_line('DEPARTMENT in DALLAS'||c);
    select decode(deptno,
         10, 'accounting',
         20,'Research',
         30 ,'sales',
         40,'operations','UNKNOWN') into c from dept where loc='INDIA';
    dbms_output.put_line('DEPARTMENT IN INDIA'||c);
    end;
    iam getting no_data_found exception which is reasonable..but what happened to 'unknown' clause in decode function.
    thank u
    rajiv

    DECODE only works on rows returned from the database. If there are no rows, DECODE has nothing to work on.
    Consider:
    SQL> SELECT DECODE(dummy, 'X', 'Found a row', 'No row')
      2  FROM dual;
    DECODE(DUMM
    Found a row
    SQL> SELECT DECODE(dummy, 'X', 'Found a row', 'No row')
      2  FROM dual
      3  WHERE 1=2;
    no rows selectedIf you want to have c contain UNKNOWN when there are no rows returned, you need to do something more like:
    DECLARE
    c VARCHAR2(20);
    BEGIN
       BEGIN
          SELECT DECODE(deptno, 10, 'accounting',
                                20,'Research',
                                30 ,'sales',
                                40,'operations','UNKNOWN')
          INTO c
          FROM dept
          WHERE loc='DALLAS';
       EXCEPTION
          c := 'UNKNOWN';
       END;
       DBMS_OUTPUT.Put_Line('DEPARTMENT in DALLAS'||c);
       BEGIN
          SELECT DECODE(deptno, 10, 'accounting',
                                20,'Research',
                                30 ,'sales',
                                40,'operations','UNKNOWN')
          INTO c
          FROM dept
          WHERE loc='INDIA';
       EXCEPTION
          c := 'UNKNOWN';
       END;
       DBMS_OUTPUT.Put_Line('DEPARTMENT IN INDIA'||c);
    END;HTH
    John

  • ISE 1.2 - Multiple NICs/Load Balancing for DHCP Probe

    Hello guys
    Just prepping an ISE 1.2 patch 8 setup in our organization. I am going for the virtual appliances with multiple NICs. It will be a distributed deployment with 4 x PSNs behind a load balancer and there is no requirement for wireless or guest user at the moment. I've got 2 points I will like to get some guidance on:
    Our DC has a dedicated mgmt network and I plan to IP the gig0 interface of the PANs, MNTs and PSNs from this subnet. All device admin, clustering, config replication, etc will be over this interface. However, RADIUS/probe/other user traffic to the ISE PSNs will be over the gig1 interface which will be addressed from another L3 network. Is this a supported configuration in ISE?
    I intend to use the DHCP probe as part of device profiling and will ideally like to have just an additional ip helper to add to our switch SVI config. Also, it will appear that WLCs can only be configured for 2 DHCP servers for a given network so another consideration for when we bringing our WLAN in scope. We however use ACE load balancers within our DC and from what I have read, they do not support DHCP load balancing. Are there any workarounds to using the DHCP probe with multiple PSNs without having to add each node as an ip helper/DHCP server on the NADs?
    Thanks in advance
    Sayre

    Hello Sayre-
    For Question #1:
    Management is restricted to GigabitEthernet 0 and that cannot be changed so you should be good there
    You can configure Radius and Profiling to be enabled on other interfaces
    Even though you are not using guest services yet, you can dedicate an interface just for that. As a result, you can separate guest traffic completely from your production network
    Take a look at this link for more info:
    http://www.cisco.com/c/en/us/td/docs/security/ise/1-2/installation_guide/ise_ig/ise_app_c-ports.html
    For Question #2
    If you are using a Cisco WLC and running code 7.4 and newer you don't need to mess with the IP helper configurations. 
    The controller can be configured to act as a collector for client profiling and interact with the DHCP thread along with the RADIUS accounting task that is running on the controller. The controller receives a copy of the DHCP request packet sent from the DHCP thread and parses the DHCP packet for two options:
    –Option 12—HostName of the client
    –Option 60—The Vendor Class Identifier
    After this information is gathered from the DHCP_REQUEST packet, a message is formed by the controller with these option fields and is sent to the RADIUS accounting thread, which is in turn transmitted to the ISE in the form of an interim accounting message.
    Both DHCP and HTTP profiling settings are located under the "Advanced" configuration tab in the WLC
    On the other hand, you can also use Anycast for profiling. You can check out some of Cisco Live's sessions for more info on that. Here is one that is from a couple of years (There are more recent ones that are available as well):
    http://www.alcatron.net/Cisco%20Live%202013%20Melbourne/Cisco%20Live%20Content/Security/BRKSEC-3040%20%20Advanced%20ISE%20and%20Secure%20Access%20Deployment.pdf
    I hope this helps!
    Thank you for rating helpful posts!

  • I'm try to buy a movie from iTunes with my I pad 3 and it tells me there is not enough local storage and when I go to my local storage there is a lot on free storage I also restarted my ipad but still the same prob what do I do?

    I'm try to buy a movie from iTunes with my I pad 3 and it tells me there is not enough local storage and when I go to my local storage there is a lot on free storage I also restarted my ipad but still the same prob what do I do?

    5GB is typically not enough space to download a movie.  Often, movies take from 3 - 5 GB to begin with.  The only option you have is to delete more things from your iPad.  You can remove unused Apps, pictures, music, text message (messages with pictures can take up a lot of space), email messages, books, magazines etc.

  • Issue in FF v 3.6.10: I have a page which have more than 20 link, clicking on these link opens up a popup using window.showModalDialog, for the first 20 popup opens up without any prob but for the 21st n more click it block the popup and do not open.

    Issue in FF v 3.6.10: I have a web page which have more than 20 link, clicking on each of these link opens up a pop-up using window.showModalDialog, for the first consecutive 20 popup opens up without any prob but for the 21st n more click it block the popup and do not open. This is m problem, the real user on the web page can click on more than 20 link in such a scenario it may create problem, please help

    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 9.0 r999
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    In Firefox 3.6 and later versions you need the Next-Generation Java™ Plug-In present in Java 6 U10 and later (Linux: libnpjp2.so; Windows: npjp2.dll).
    http://java.com/en/download/faq/firefox_newplugin.xml
    See also http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html

  • Prob. with iTunes, Phone won't shut off.  Tks.

    3GS with 6.1.3 Prob. with iTunes.  When I want to close out of iTunes after a Podcast the App will not close out when I hit Home. All other Apps shut down, only prob. is with iTunes.  Cant turn phone off goes back ti iTunes when turned on again.  Tks.

    I hope the previous replies are wrong. It was my understanding that even when Match is turned off in iTunes, music previously matched or uploaded to iCloud will stay there, associated with my Apple ID, even through a cold boot etc. If you want to remove songs from iCloud, but keep them locally, do this:
    1. Click "Store" in the iTunes top Menu
    2. Select "Turn on iTunes Match" (if it isn't already turned on)
    3. Close iTunes.
    4. Hold down the Shift key while you open iTunes - this will prompt you to choose or create a (new, locally empty) Library in a different folder from your main Library.
    5. Now you should see ONLY music that is stored in iCloud.
    6. Delete them all. iTunes will show a checkbox or button for you to click to delete the selected items from iCloud.
    7. Turn off iTunes Match (see #1)
    8. Restart iTunes with the Shift key again, so you can get back to your main Library - with Match turned off.

  • Prob with iTunes on Vista! Please Help!

    hi guys,
    i am getting the following error message when i install iTunes 7.5 version
    [IMG]http://img403.imageshack.us/img403/8344/itunesprobbo9.jpg[/IMG]
    i also tried iTunes 7.4 version but i am getting the same error message
    iTunes used to work before, but suddenly the prob
    i tried unistalling and installing the app again but in vain...
    Please Help!
    Thanks in advance!
    -Manish

    “iTunes.exe – Bad Image” ... “C:\Windows\system32\mssip32.dll is either not designed to run on Windows or it contains an error. Try installing the program using the original installation media or contact our system administrator or the software vendor for support.”
    Okay. Literally, it's saying that one of the dlls associated with Cryptographic Services on the PC is damaged. That can cause an iTunes launch failure.
    ... However, most of our experience here at Discussions is with troubleshooting these sorts of messages on Windows XP systems, rather than Vista and I don't have a Vista box handy for reference.
    So, if you don't receive any further replies here, it might be best to try posting instead at the Windows Vista Community Discussions Groups. Fingers crossed someone there might be better placed to help you troubleshoot this:
    http://windowshelp.microsoft.com/communities/newsgroups/en-us/default.mspx
    (Not trying to get rid of you here, just trying to get you on the radar screens of people who might be in a better position to help.)

  • TS1702 Telegraph app does not allow access to newspaper says have not paid subscription. Paid through iTunes and tel says it is iTunes prob. Can't talk to anybody at itunes

    Telegraph app does not allow access to newspaper. Says. Have not paid sub but pay via iTunes Store. Telegraph says it is an iTunes prob but I can't get to talk to anyone there! Any suggestions please?

    Just got this -
    Dear iTunes Customer,
    You recently received an email informing you that your iTunes Match Subscription could not be auto-renewed. We have resolved the problem and your iTunes Match Subscription has been renewed.
    We apologize for the delay with your auto-renewal. If you have any questions, please contact AppleCare at http://www.apple.com/support/itunes/
    I hope everyone else is all set too.

  • Hi, have a iphone/macbook itunes prob. i connected my phone to mac to add songs, and it wiped 99% of music from my phone. on the mac it still lists the songs on my phone but they are greyed out. can anyone help? very frustrated and want my music back.

    hi, have a iphone/macbook itunes prob. i connected my phone to mac to add songs, and it wiped 99% of music from my phone. on the mac it still lists the songs on my phone but they are greyed out. can anyone help? very frustrated and want my music back.

    I am having the same problem. I have just tried this. Unplug iphone > open itunes > delete all music from itunes library > close itunes > re-open itunes > add music from original folder > plug in iphone > select songs > press sync > unplug iphone using eject button onscreen > checked phone .... still nothing in music folder on phone. On itunes the "On this iphone" tab the songs remain there but greyed out.

  • Itunes in my laptop is not showing my iphone5 (7.0.4) but it has no problem wat so ever showing in another laptop...and my laptop has no prob showing other iphones

    itunes in my laptop is not showing my iphone5 (7.0.4) but it has no problem wat so ever showing in another laptop...and my laptop has no prob showing other iphones

    Hi siva samba,
    If you are having issues with your iPhone not being recognized in iTunes, you may find one of the following articles helpful:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    iOS: Device not recognized in iTunes for Mac OS X
    http://support.apple.com/kb/TS1591
    Regards,
    - Brenden

  • ITunes erased my library to force me to subscribe to Cloud, and Cloud wiped out my iPad twice.  Anyone w/same prob?

    iTunes took back my entire library to force me to subscribe to Cloud, but now it will not re-download all of my purchases, and the Cloud also seems to want to wipe my iPad (has done it twice). 2 hours on the phone with Apple no help. Anyone w/same prob?

    I guess I should have been more clear. One morning (5 days ago now) we realized that our complete itunes library was gone--all media (music, shows, movies, podcasts) was gone and could not be located on our hard drive. When I went onto itunes under the "help" section there was a comment that you could upgrade your itunes to Cloud and then access all your purchases and either re-download them or play them from the itunes page. So, I upgraded itunes and went about accessing all my purchases(thousands of dollars worth of media--so you can imagine my stress). Meanwhile, my husband was at work with his ipad and realized that everything was gone--all his apps, music, even apps for work that were downloaded at his work. Completely gone. I told him that I had found everything on Cloud and that he could probably just re-download everything when he got home but we both agreed it was weird. When he got home he noted that only about 1/3rd of our purchases were available on the Cloud website--all of my son's shows were still not there and many albums that we had bought over the last year were still missing. My husband called Apple yesterday and spent two hours on the phone with them. He said it was all very mysterious as they would not admit or deny anything and he said that he spoke with several people that were very ambiguous about what had happened and were careful about what they said. They agreed to re-release to us all of the media that we could not access on Cloud, but that they could not provide us with media that had copyright expired. They basically said it was our fault for not backing everything up on a separate system. While we explained that we do have a back up hard drive, we don't back up every time we make a purchase--so we haven't done so for several months. Then, this morning my husband was on his ipad and a message popped up that froze the ipad and it said that he needed to sync into itunes. He did so and then when he went back to unplug to go to work he realized everything was gone again! All his apps, music, everything. He was so upset because he saw no reason why this keeps happening.....Any thoughts??

  • ITunes/Outlook 2007/ Windows 7 sync prob

    Outlook 2007 sync issue with iTunes 10.4.0.80 on Windows 7. This config has been working ok syncing with outlook calendar and contacts. All of a sudden iTunes no longer sees outlook as an option for syncing under 'info' and the contact/calendar syncing has stopped working. The checkbox works but the drop down box next to 'Sync contacts with...' is empty. I have made sure the itunes addin for outlook is working. I have tried uninstalling itunes as per HT1923 and reinstalled but no good. I have tried reinstalling outlook but again not progress.
    Any ideas?
    The only thing I have done is some HD partition maintenace (to recover some unused space from an OEM recovery partition) which I can't see would be related as all other software still works perfectly.

    Hi.
    Lots of people have viewed my prob but no suggestions. Guess this is indication of extent of iTunes probs!! Anyway, for anyone in same situation I have just found the solution:
    1. Close iTunes down
    2. Navigate to C:/Users/{YOUR ACCOUNT}/AppData/Roaming/Apple Computer/
    3. Remove the contents of /SyncServices/
    4. Start iTunes
    5. Connect iPhone
    Hope this helps someone in future!

  • Problem with jpanel and revalidate()

    i have made a calendar. on click on jlabel you can switch month/year and there is the problem. for example when i switch from february to march and back again, then the panel don�t update. but why?
    i hope you understand what i mean.(I am german and can�t englisch)
    here is the code(i have mixed german in english in the code, i hope you understand even so.)
    package organizer.gui;
    import organizer.*;
    import java.text.SimpleDateFormat;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class Kalender extends JPanel {
    private Calendar calendar;
    private JPanel days;
    private JLabel monthLabel;
    private SimpleDateFormat monthFormat = new SimpleDateFormat("dd MMM yyyy");
    private TerminManager manger;
    public Kalender(TerminManager manager) {
       super();
       this.manger=manager;
       this.calendar=Calendar.getInstance();
       this.initializeJPanel();
       this.updatePanel();
    protected void updatePanel() {
       monthLabel.setText(monthFormat.format(calendar.getTime()));
       if(days!=null) {
         days.removeAll();
       }else {
         days = new JPanel(new GridLayout(0, 7));
       days.setOpaque(true);
       for (int i = 1; i <=7; i++) {
         int dayInt = ( (i + 1) == 8) ? 1 : i + 1;
         JLabel label = new JLabel();
         label.setHorizontalAlignment(JLabel.CENTER);
         if (dayInt == Calendar.SUNDAY) {
           label.setText("Son");
         else if (dayInt == Calendar.MONDAY) {
           label.setText("Mon");
         else if (dayInt == Calendar.TUESDAY) {
           label.setText("Die");
         else if (dayInt == Calendar.WEDNESDAY) {
           label.setText("Mit");
         else if (dayInt == Calendar.THURSDAY) {
           label.setText("Don");
         else if (dayInt == Calendar.FRIDAY) {
           label.setText("Fre");
         else if (dayInt == Calendar.SATURDAY) {
           label.setText("Sam");
         days.add(label);
       Calendar setupCalendar = (Calendar) calendar.clone();
       setupCalendar.set(Calendar.DAY_OF_MONTH, 1);
       int firstday = setupCalendar.get(Calendar.DAY_OF_WEEK);
       for (int i = 1; i < (firstday - 1); i++) {
         days.add(new JLabel(""));
       for (int i = 1; i <=setupCalendar.getActualMaximum(Calendar.DAY_OF_MONTH); i++) {
         int day = setupCalendar.get(Calendar.DAY_OF_MONTH);
         final Date d = setupCalendar.getTime();
         final JLabel label = new JLabel(String.valueOf(day));
         label.setOpaque(true);
         if(this.manger.isTerminAtDay(d)) {
           String s="<html><center>" + day + "<br>";
           if(this.manger.isBirthdayAtDay(d)) {
             s+="Geburtstag<br>";
           if(this.manger.isOtherTerminAtDay(d)) {
             s+="Termin";
           label.setText(s);
           label.addMouseListener(new MouseListener() {
              * mouseClicked
              * @param e MouseEvent
             public void mouseClicked(MouseEvent e) {
               Termin[] t = Kalender.this.manger.getTermineAtDay(d);
               if (t.length == 1) {
                 new TerminDialog(null, t[0]);
               else {
                 new TerminAuswahlDialog(null, t, d);
              * mouseEntered
              * @param e MouseEvent
             public void mouseEntered(MouseEvent e) {
              * mouseExited
              * @param e MouseEvent
             public void mouseExited(MouseEvent e) {
              * mousePressed
              * @param e MouseEvent
             public void mousePressed(MouseEvent e) {
              * mouseReleased
              * @param e MouseEvent
             public void mouseReleased(MouseEvent e) {
         final Color background=label.getBackground();
         final Color foreground=label.getForeground();
         label.setHorizontalAlignment(JLabel.CENTER);
         label.addMouseListener(new MouseAdapter() {
           public void mouseEntered(MouseEvent e) {
             label.setBackground(Color.BLUE);
             label.setForeground(Color.RED);
           public void mouseExited(MouseEvent e) {
             label.setBackground(background);
             label.setForeground(foreground);
         days.add(label);
         setupCalendar.roll(Calendar.DAY_OF_MONTH,true);
       this.add(days, BorderLayout.CENTER);
       this.revalidate();
    private JLabel createUpdateButton(final int field,final int amount) {
       final JLabel label = new JLabel();
       final Border selectedBorder = new EtchedBorder();
       final Border unselectedBorder = new EmptyBorder(selectedBorder
           .getBorderInsets(new JLabel()));
       label.setBorder(unselectedBorder);
       label.addMouseListener(new MouseAdapter() {
         public void mouseReleased(MouseEvent e) {
           calendar.add(field, amount);
           Kalender.this.updatePanel();
         public void mouseEntered(MouseEvent e) {
           label.setBorder(selectedBorder);
         public void mouseExited(MouseEvent e) {
           label.setBorder(unselectedBorder);
       return label;
    private void initializeJPanel() {
       JPanel header = new JPanel();
       JLabel label;
       label = this.createUpdateButton(Calendar.YEAR, -1);
       label.setText("<<");
       header.add(label);
       label = this.createUpdateButton(Calendar.MONTH, -1);
       label.setText("<");
       header.add(label);
       monthLabel=new JLabel("");
       header.add(monthLabel);
       label = this.createUpdateButton(Calendar.MONTH, 1);
       label.setText(">");
       header.add(label);
       label = this.createUpdateButton(Calendar.YEAR, 1);
       label.setText(">>");
       header.add(label);
       this.setLayout(new BorderLayout());
       this.add(header, BorderLayout.NORTH);
    }

    I got you code to compile and run and made a single change to get it to work; adding a call to repaint at the end of the updatePanel method.
            this.add(days, BorderLayout.CENTER);
            this.revalidate();
            repaint();
        }Whenever you change the size of a containers components or add/remove components you must ask the container to run through its component hierarchy and check the size requirements of all its children and lay them out again, ie, do a new layout. The JComponent method for this isrevalidate. If you are working in the AWT you must use the Component/(overridden in)Container method validate, sometimes preceded by a call to the invalidate method. Some people prefer the validate method over revalidate. These are methods used to update guis by asking for a renewed layout. For economy you can call one (sometimes with invalidate, but rarely) of these methods on the smallest component/container that includes all the containers needing the renewed layout, ie, keep the action as localized as possible.
    When the rendering of components has changed, things like colors, borders and text, we need to ask the components to repaint themselves. The easy way to do this is to call repaint on the gui. For economy you can call repaint on the smallest component that contains all the components needing repainting. Some classes like those in the JTextComponent group have their own internal repainting calls so they will repaint themselves when changes are made.
    In making guis, especially elaborate ones, it seems to take some playful experimentation to find out what is needed to get what you want. Sometimes it is a call to revalidate, sometimes a call to repaint, sometimes both. You just have to experiment.

  • Prob in alv report

    hi all,
    I hav prob in alv report .I made a purchse register alv report.when I see output it show's everything right but in printpreiew and when transfer to spreadsheet. It cut's back part of voucher number.for ex.v.no :5100021 but see in print priew itshow's like this 51000... and in excel sheet it cut down the last no. so it creates rundancy of voucher no. plz tell me sol. I don't know wat is happening.
    regards,
    hemlata

    hi hemlata.
    you can do this for the voucher number in your fieldcat.
    give the outputlen as the maximum outputlength of the voucher no.
    fieldcat-fieldname = 'VOUCHER'.
    fieldcat-...
    <b>fieldcat-NO_ZERO = 'X'.</b>
    append fieldcat to it_fieldcat.
    and now check it.
    Regards
    vijay

Maybe you are looking for

  • Photosmart 8750 and Photoshop Elements 8 incompatib​ility

    I cannot get my printer (HP 8750 Pro) to print a greeting card correctly.  I am using PSE 8 and Win7 Premium Home.  When I send the card to the printer I enter the paper size (8.5 x 11).  I change the settings to print on HP Brochure matte with 300 d

  • Japanese and Russian characters are not displayed properly

    I have a pdf file which has both russian and Japanese characters in it. Before I install Japanese font pack, the russian characters were displayed properly but for Japanese characters Junk characters are displayed. But once  I installed Japanese font

  • Error loading Itunes

    I get the following error message when trying to load Itunes: ' There was a problem with this windows installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor.' Its a very vagu

  • Iphone App crashes since using Air 4.0

    I have an APP called "Join Our Games Poker" into Itunes Store. It was generated using Flash Builder 4.7 with Air 3.9 SDK.  But since Apple change the requirements in the store, the only way to get an APP approved is using the Air 4.0  SDK Build 1619

  • Low SP level in backend,CHARM system is on SP18,no transports /TMWFLOW/REPO

    Hello All , Currently we are in process of Applying SP18 in SAP Solution Manager 4.0. Our APO is connected to solution manager ( CHARM ) for transports related activities. However APO's has SP14 So when i try to trace APO transports in CHARM system i