Pack and validate

Hi, can some one explain about pack and validate.
what is the exact difference between pack and validate. both are laysout the component and makes visible in the screen. then what is the difference ? please help me out.

the api docs is the place for your answers
(download a copy and have them on your pc)
here's the link for pack()
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Window.html#pack()

Similar Messages

  • Netbeans 6.0 Visual Web Pack and facelets

    Is it current possible to use Netbeans 6.0 Visual Web Pack and facelets and/or Seams?
    If so please point me to some useful resource.

    >
    ...Below is from the Launch tab:>What exactly is a 'launch tab'? Are you talking about some NetBeans window?
    The reason I ask is that the 'JNLP file' shown, is complete rubbish. It is a bunch of symbols pretending to be a JNLP file. The fundamental problem is that it is invalid (and hence it is not the 'JNLP format' it claims to be).
    How any particular Java implementation deals with an invalid JNLP file is quite unpredicatable.*
    Please people, do not just 'presume' that you (or your IDE) can write a valid JNLP file. Instead - validate it against a DTD or XSD.
    After all.. Garbage in, Garbage out!
    * And to the poster who mentioned that adding the first Jar line twice solved the problem. That is a dangerous and fragile kludge. If it works in some specific microversion of Java, it might (probably will) break in the next.
    Edit 1 - Highlit the most major error in that file using 'code' tags. Hopefully that will make the basic problem more obvious..
    <j2se version="1.5+" java-vm-args="-Djava.endorsed.dirs="C:\Program Files (x86)\NetBeans 6.0.1\java1\modules\ext\jaxws21\api" "/>Edited by: AndrewThompson64 on May 21, 2008 9:20 AM
    Edit 2 - Added possible alternatives..
    <j2se version="1.5+" java-vm-args="-Djava.endorsed.dirs='C:\Program Files (x86)\NetBeans 6.0.1\java1\modules\ext\jaxws21\api' "/>
    <j2se version="1.5+" java-vm-args='-Djava.endorsed.dirs="C:\Program Files (x86)\NetBeans 6.0.1\java1\modules\ext\jaxws21\api" '/>The hard coded path, as well as the use of unescaped backslashes (e.g. '\' as opposed to '\\') also looks suspiciously wrong, but since I only deploy off the internet, I am not entirely sure.
    Edited by: AndrewThompson64 on May 21, 2008 9:26 AM

  • Pack and unpack a JFrame

    Hi,
    I'm using a JFrame and I 'd like to put a JButton to pack and unpack the window. Now, the pack is simple (I use the pack() method), but to enlarge the window? I've tried to store the original size before pack, and then resize the window but, since I use a BorderLayout layout manager the center panel doen't return visible.
    can anyone help me?

    You likely are not calling validate() on the layout after the resize
    Eximport javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Test extends JFrame implements ActionListener
       private JPanel p;
       private Rectangle r;
       public Test()
          super("Flip");
          setDefaultCloseOperation(EXIT_ON_CLOSE);
          setSize(770,580);
          p = new JPanel(new BorderLayout());
          JPanel p2 = new JPanel(new FlowLayout());
          p2.add(new JLabel("North"));
          p.add(p2, BorderLayout.NORTH);
          p2 = new JPanel(new FlowLayout());
          p2.add(new JLabel("West"));
          p.add(p2, BorderLayout.WEST);
          p2 = new JPanel(new FlowLayout());
          p2.add(new JLabel("East"));
          p.add(p2, BorderLayout.EAST);
          p2 = new JPanel(new FlowLayout());
          p2.add(new JLabel("Center"));
          p.add(p2, BorderLayout.CENTER);
          p2 = new JPanel(new FlowLayout());
          JButton pack = new JButton("Pack");
          JButton unpack = new JButton("Unpack");
          pack.addActionListener(this);
          unpack.addActionListener(this);
          p2.add(pack);
          p2.add(unpack);
          p.add(p2, BorderLayout.SOUTH);
          setContentPane(p);
       public void actionPerformed(ActionEvent ae)
          String s = ae.getActionCommand();
          if(s.equals("Pack"))
             r= getBounds();
             pack();
          else
             setBounds(r);
             validate();
       public static void main(String[] args)
          new Test().setVisible(true);
    }

  • Jam Packs and "Garageband Instruments" when reinstalling Logic?

    What's the proper procedure when it comes to Jam Packs and 3rd party Apple Loops libraries when reinstalling Logic and OS X?
    I'm keeping my Apple Loops on a separate drive and know that I can just drag them to the Loop Browser after reinstalling Logic. However, by doing so, I don't think I'll be getting the "Garageband Instruments" that are installed with the Jam Packs and some 3rd party Apple Loops libraries. Is that correct? If so, what's the best way to deal with this? Always installing all Apple Loops from the disks or perhaps saving a folder (which one?) with the Garageband Instruments before re-installing OS X?
    When I last installed Logic, and told the installer to install the Jam Packs on an external drive, they were still installed on the system drive! Does anyone know why? Now what's the best way to move the Apple Loops? What I've done in the past is installing them to their default location, and then creating an alias in Home:Library:Audio:Apple Loops folder that points to the new location on the external drive. Is that the way to go or is another way better?
    Any input or help would be greatly appreciated.

    Jam packs consist of two types of content. Loop content will go to where you choose to install it (an external drive if you wish). Instrument content has to go to the GB library, for a number of reasons, and the GB library will be on your system disk under Application Support/Garageband.
    So backup your GB library in addition to your Logic related stuff.
    It is possible to move much (but not all) of the heavy Instrument content to an external drive too, but there are gotchas with this.

  • I purchased a monthly pack and havent been able to use it. I have been getting charged for 3 months now and I still get an error message saying "unable to load all your plans". How do I re-install or dowload and get my last 3 payments reimbursed?

    I purchased a monthly pack and havent been able to use it. I have been getting charged for 3 months now and I still get an error message saying "unable to load all your plans". How do I re-install or dowload and get my last 3 payments reimbursed?

    Link for Download & Install & Setup & Activation problems may help
    -Online Chat http://www.adobe.com/support/download-install/supportinfo/
    or
    Adobe contact information - http://helpx.adobe.com/contact.html

  • I paid for PDF Pack and keep getting an error 404 - file not found when I try to do anything

    Just paid for PDF Pack and cannot get it to start working.  Have a file open, went to account, create, got to website, and it wont let me do anything,

    Hi EJ,
    I wanted to check in to make sure you have everything working at this point?
    Let me know if you have further questions.
    Regards, Stacy

  • In 6/2009 I bought iWork Family pack and have used it on two computers. Now I want to download iWork to my iMac but there is no way via the App store. How do I install the iWork bundle I paid for.

    In 6/2009 I bought iWork Family pack and have used it on two computers. Now I want to download iWork to my iMac but there is no way via the App store. How do I install the iWork bundle I paid for.i

    As of a minute ago you can still download the trial at this link. Note: clicking the link will automatically start the download.

  • I have Acrobat Pro DC and Adobe PDF Pack and I am still unable to open a PDF file from my outlook.

    I have Acobat Pro DC and Adobe PDK Pack and I am still unable to oepn an PDF filed from my Outlook.  So I have to save it on my computer but then I can only open it in Adobe Reader.  Please help

    Hello courtneym48375386,
    Could you please let me know what version of Outlook are you using.
    Please try opening some other PDF file and check if the same issue persists as this might be a document specific issue.
    Also, what happens if you try opening the file in Acrobat?
    Let me know.
    Regards,
    Anubha

  • I've bought 640 rubies pack and have used it. But the day after, my pack ran out. I'd appreciate if you could give me back my pack or help me in any way possible.

    I've bought 640 rubies pack and have used it.
    But the day after, my pack ran out.
    I'd appreciate if you could give me back my pack or
    help me in any way possible.
    The Glu Customer Care answer my question;
    Hello, and thank you for contacting Glu Mobile Customer Care
    The game you mentioned does not save online. If you have made a backup using "iCloud" or "iTunes backup" then you may be able to restore to that last save point on your device which will include whatever you had for currency at the time when the save was created.
    Unfortunately, we do not have a way to restore game progress, this is done by the user on the device itself using the backup and restore method for the entire device.
    If you have not performed a backup save for your device before this problem happened and you have lost currency from purchases, please contact the iTunes store customer service to inquire about your purchase and request help regarding this loss of currency issue.. Apple does not allow developers to handle billing issues.
    If you get an answer saying that In-App purchases are the responsibility of the developer, please insist that they assist you as we have no way of accessing their purchase records. We are the developer and do not have access to any account or billing information on the iTunes App Store.
    We hope this information assists you and we sincerely apologize for the inconvenience.
    Regards,
    Glu Mobile Customer Care

    We are fellow users here on these forums, you're not talking to iTunes Support. You say that you used the pack that you bought and that it then ran out - does that mean that you used it all up ? If you didn't use it all up but your game lost the purchase then you can try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • How to find out the IPS and DS Service Pack and patch levels in windows server.

    Hi,
    I have installed the Information Platform Services 4.0 and Data services 4.0 in windows QA system, now we need to install the same version of IPS & DS  in windows PRD system for this how could we find out the exact version of IPS & DS  ( Service pack and patch levels ) and where we can find the same.
    Many Thanks,
    Sudheer

    Hi Sudheer,
    On a Windows Operating Systems you can check the “Programs and Features” in control panel.You can see a list of both the Name and Version number of SAP BusinessObjects that is installed.
    option 2:
    Open CMC go to Settings. In the properties, you will find the Product Version.
    Please check below SAP notes for more information.
    http://service.sap.com/sap/support/notes/1602088
    Regards,
    Pavan

  • How to find out the versions of family pack and mini pack installed?

    There are family pack and mini pack for HRMS.
    How to find out the versions of family pack and mini pack installed
    just by a Unix command or sqlplus Select statement?
    Thanks

    you can get the Minipack version of the products by querying fnd_product_installations or ad_patchdriver_minipks, for family packs you need to query through Metalink, OR if you have u driver file which resides on $AY_TOP/discoverer, looks for the minipacks/familypack version in the driver file.

  • FDM column width in Import and Validate Screens data table

    Hi all,
    is it somehow possible to influence the width of the columns in the Import and Validate/Export Screen in any way?
    I have the problem, that the column width is always a little bit to wide and so I have to scroll to the amount column everytime.
    Thanks for your help in advance
    Markus

    You would need to modify several XMLs. We strongly recommend against this as it voids the application being available for support from Oracle.

  • To find the date type fields in the row and validate those date fields

    TYPES : BEGIN OF TY_MARA,
              MATNR TYPE MARA-MATNR,
              ERSDA TYPE MARA-ERSDA,
              ERNAM TYPE MARA-ERNAM,
              LAEDA TYPE MARA-LAEDA,
              MTART TYPE MARA-MTART,
            END OF TY_MARA.
    DATA : it_mara TYPE STANDARD TABLE OF ty_mara,
          it_mara1 TYPE STANDARD TABLE OF ty_mara,
           wa_mara TYPE ty_mara.
    loop at it_mara into wa_mara.
      describe field wa_mara-ersda type c_data.
    if c_data eq 'D'.
      CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
        EXPORTING
          date                            = wa_mara-ersda
       EXCEPTIONS
         PLAUSIBILITY_CHECK_FAILED       = 1
         OTHERS                          = 2
      IF sy-subrc eq 0.
    wa_mara-ersda = '00000000'.
        append wa_mara to it_mara1.
        write :wa_mara-matnr,wa_mara-ersda.
        else.
            wa_mara-ersda = '00000000'.
        append wa_mara to it_mara1.
        write :wa_mara-matnr,wa_mara-ersda.
      ENDIF.
      endif.
      endloop.
    This issue regarding how to find the date type fields in the row and validate those date fields.If its not a valid date ,i have to assign initial value to that.
    I've tried that for single field using describe field.Please help me do that for all fields.

    Hi Sam,
     I believe we had discussed the same issue in the below thread. Can you please refer the below one?
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/d93e16ff-c123-4b36-b60b-60ccd34f6ca7/calculate-time-differences-in-infopath?forum=sharepointcustomizationprevious
    If it's not helping you please let us know
    Sekar - Our life is short, so help others to grow
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer

  • Pack and unpack in ABAP objects

    can anyone explain me how to pack or unpack a field inside a method which is inside a class.

    Hi
    See the doc of PACK and UNPACK
    PACK source TO destination.
    This statement, <b>which is forbidden in classes</b>, converts the content of the data object source to the data type p of length 16 without decimal places. In contrast to the conversion rules for elementary data types, a decimal separator in source is ignored. This assigns the converted content to the data object destination.
    The data type of source must be character-type, flat, and its content must be interpretable as a numeric value. The data type of destination must be flat. If destination has the data type p, the interim result is assigned to it from left to right. Surplus characters are cut off on the left, and the decimal places are determined by the data type of destination. If destination does not have the data type p, the interim result is converted to the data type of destination according to the rules in the conversion table for source field type p.
    UNPACK source TO destination.
    This statement converts the content of the data object source according to a specific rule and assigns the converted content to data object destination. For source, the data type p of length 16 without decimal places is expected. The data type of destination must be character-type and flat.
    The conversion is performed according to the following rules:
    If the data type of source is not of the type p with length 16 and without decimal places, then the content of source is converted to this data type. Contrary to the rules described in conversion rules for elementary data types, any decimal separator in source is completely ignored.
    The digits of the interim result are assigned to data object destination right-aligned and without +/- sign. Any additional places in destination are filled with leading zeros. If the length of destination is not sufficient, the assigned variable is truncated from the left.
    Reward points for useful Answers
    Regards
    Anji

  • Adding jam packs and loops

    Hello everyone. This post may have been answered. Anyway, I have installed all jam packs and sound content on external drive. I was wondering how to index them so i can access them in logic pro as loops. It seems that some are there and some are not. Thank you for reply.
    David

    1. How do I install everything...
    run the installer and when the Customize button appears, click it. use the discloser triangle next to GB to make sure it's ancillary files are selected for installation
    2. Is there a list of all available Jam Packs?
    http://www.bulletsandbones.com/GB/PluginsApplesJamPacks.html
    3. Do Jam Packs work with GB 08 and 09?
    yes
    4. Does only Apple make Jam Packs? If not, where to go for others?
    yes, but may other companies make loops that are Mac compatible. there are also loops available freely on the net, as well as synths and SoundFonts (instruments):
    http://www.bulletsandbones.com/GB/PlugInsSoundFonts.html
    http://www.bulletsandbones.com/GB/PlugInsMiscLoops.html
    http://www.bulletsandbones.com/GB/PlugInsDrumLoops.html
    http://www.bulletsandbones.com/GB/PlugInsSynths.html
    5. Can I install user created loops?
    yes
    How
    drop them onto the loop browser
    and where do I find them?
    see the links above.

Maybe you are looking for

  • Office 2013 RTM: STILL no true small caps: WHY? WHY? WHY?

    I have just un-installed the Office 2013 Preview, and installed the Office 2013 RTM 60-day trial. I had hoped that between the two versions, the issue of missing true small caps in Word had been addressed. But no. Whilst Word 2013 supports OpenType l

  • My ipod touch keeps rebooting I restored from the back up it but it keeps rebooting,

    My Itouch started rebooting, when i plugged it into itune it told me I needed to restore from back up after several attemps ( I received an error 9 message) I finaly got it to restore, but it just keeps rebooting!

  • IPhone 3G Email and Calendar times off by one hour (slow one hour)

    My times which I send/receive emails or put appointments on the calendar are 1 hour slow as compared to my computers. I have Mobile Me and Mobile Me (on the computer) and my Outlook emails and calendars match and my current time is correct on all. On

  • Publishing w/ Random Questions

    Hi, I am using random questions in one of my programs and about to send it off to the client. This client has Captivate and would like for me to send the CP files. My question is, if I send the CP file for the program, will the random questions in th

  • Where are the audio books in iTunes 11

    I downloaded iTunes 11, and now everything is "new". and I don't see any audio books (in german: Hörbücher) in the sidebar - and in the settings, there is no checkbox for this genre. Who can help?