How to center components horizontally in container with SpringLayout layout

Hello,
I've got a button and a text field in container with SpringLayout layout set. How can I center text field horizontally (buttong is the highest component)?
I don't want use hacks like settings all heights manually.
With regards,
Pavel Krupets

Sorry vertically!!!

Similar Messages

  • How to send an attached file containing with non-ascii code ?

    Hi,
    I want to send a attaced text file containing with non-ascii code(Traditional Chinese). Is there any way to solve the encoding problem?
    Currently, it transfer into non-meaningful code in receiving side.
    Thanks for the help in advance.

    Here is the code:
    Session _gSession = null;
    MimeMessage message = null;
    Properties props = new Properties();
    props.put("mail.smtp.host", smtpHost);
    _gSession = javax.mail.Session.getInstance(props, null);
    message = new MimeMessage(_gSession);
    message.setFrom(new InternetAddress(emailSender , emailSender));
    InternetAddress ia[] = new InternetAddress[1];
    ia[0] = new InternetAddress(emailReceiver, emailReceiver);
    message.setRecipients(Message.RecipientType.TO, ia);
    message.setSubject("Test Encoding Attached File");
    message.saveChanges();
    BodyPart messageBodyPart = new MimeBodyPart();
    DataSource fds = new FileDataSource("Big5_Code.txt");
    messageBodyPart.setDataHandler(new DataHandler(fds));
    messageBodyPart.addHeader("Content-ID","meme");
    MimeMultipart multipart = new MimeMultipart("related");
    multipart.addBodyPart(messageBodyPart);
    message.setContent(multipart);
    transport.connect();
    transport.send(message);

  • How to create PDF from text file with specific layout?

    I wanted to create the pdf from text file in specific layout - Landscape orientation and JIS B3 Page size while at Adobe Acrobat Pro.
    In past, I could do a right click on a text file (desktop area) and select print to print out the document into .pdf BUT only if I set the Adobe PDF to Landscape and JIS B3 Page size BEFORE.  And I could only do 15 text documents at once.
    I wanted to see if I could do the create the pdf from text file with specific layout in Adobe Acrobat without having to go to Control Panel to preset the Adobe PDF to specific layout at every time.   I would have to set Adobe PDF back to normal layout after I'm done with these pdf print outs.  I do lots of pdfs in normal layout.  Sometimes I would forget to do that.
    So, How do I do that?

    No such luck.  It would output the contents in letter size even in JIS B3 Page layout at MS word. 
    Is there a script or action where I could set the orientation and page size before creating PDF on these text files?

  • How to center items horizontally in a tile layout?

    Hello.
    say i have a bordercontainer with a group with a tilelayout in it:
        <s:BorderContainer width="600" borderColor="0x000000">
            <s:layout> <s:HorizontalLayout horizontalAlign="center" /> </s:layout>
              <s:Group width="90%">
                <s:layout> <s:TileLayout/> </s:layout>
                <s:Button/>
                <s:Button/>
                <s:Button/>
            </s:Group>
        </s:BorderContainer>  
    The three buttons sit in the left corner of the group. Any ideas on how I could center the three buttons horizontally?

    no issue,
    <s:Group width="90%">
                <s:layout> <s:TileLayout paddingLeft="100" paddingRight="100" horizontalAlign="center"/> </s:layout>
                <s:Button/>
    probably this will work, change padding and group width to get expected result.

  • Jsf 1s phase of life cycle how knows ths components of the jsp with jsf tag

    i wish to know how faces servlet knows the jsp s view components while creaTI NG component tree at first request to input jsp which may have jsf tags.in the first phase faces servlet doesnot know input jsp with jsf tags what componnets it has. it is actually atthe response send or forward time which is the final phase when the tag ge executed and output is sent to client.i did understandin jsf life cycle in 1 st phase component tree is created at first request in 1 st phase .

    Hi,
    though a FacesContext holds the values used by a request, it doesn't mean it lives for as long as the request. The best explanation I found is from the JavaDocs
    release
    public abstract void release()
    +Release any resources associated with this FacesContext instance. Faces implementations may choose to pool instances in the associated FacesContextFactory to avoid repeated object creation and garbage collection. After release() is called on a FacesContext instance (until the FacesContext instance has been recycled by the implementation for re-use), calling any other methods will cause an IllegalStateException to be thrown.+
    The implementation must call setCurrentInstance(javax.faces.context.FacesContext) passing null to remove the association between this thread and this dead FacesContext instance.
    Throws:
    java.lang.IllegalStateException - if this method is called after this instance has been released
    Frank

  • How to find the records using contains with the word like this 'some text-some text'?

    Hi,
    How to find the records using the full text contains keyword and that column contains ‘some text-some text’
    In the above some text can be anything.
    Does anybody know please let me know.
    Thanks,

    Hello,
    You can try to create a Full Text Index on the table and use CONTAINS() to get the record which contains the specify words.
    For example:
    SELECT * FROM TABLE WHERE CONTAINS(column_name, 'some text')
    Reference:
    Full-Text Search (SQL Server)
    Creating Full Text Catalog and Full Text Search
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • How do I get fios to work with my new desktop w/ Windows Media Center

    Can someone please help me I have "fios".TV and internet 1HDSTB + 1HDDVR with multi room dvr Home media mgr.how do I get fios to work with my new desktop HP Pavillion m9715f**(specs below)**w/ Windows Media Center or did I just throw away my money?
    also equipted is 47" Samsung 850series 1080p 120hertz HD LCD TV + 36" Samsung 560series 1080p 60hertz HD LCD TV and 19"Samsung 950b LCD Monitor
    ** computer specs**
    Product number NZ017AA
    Introduction date 30-Jun-2009
    Country/region sold in: United States,Canada
    Hardware Base processor
    Phenom-9650 (A) 2.3 GHz (95W) 3600 MHz HyperTransport 3.0 Socket, AM2+
    Chipset AMD 780G
    Motherboard Manufacturer: MSI Motherboard Name: MS-7548 HP/Compaq motherboard name: Aspen-GL8E
    Power supply 300W
    Memory
    Component Attributes Memory Installed 8 GB Maximum allowed 16 GB (4 x 4 GB) (64-bit OS)
    4 GB* (4 x 1 GB) (32-bit OS)
    *Actual available memory may be less Speed supported PC2-6400 MB/sec Type 240 pin, DDR2
    Hard drive750 GB SATA 3G (3.0 Gb/sec)7200 rpm
    Blu-ray player & SuperMulti DVD burner with LightScribe Technology drive
    This Blu-Ray Disc DVD drive introduces a player that reads Blu-ray Disc format enabling you to watch high-definition Blu-ray Disc movies. NOTE: This drive does not include high-definition write capability.
    Formats/Disc types Write speeds Read speeds Storage capacity Blu-ray Disc BD-ROM SL NA up to 6X up to 25 GB BD-ROM DL NA up to 4.8X up to 50 GB BD-R SL not supported up to 6X up to 25 GB BD-R DL not supported up to 4.8X up to 50 GB BD-RE SL not supported up to 2.3X up to 25 GB BD-RE DL not supported up to 2X up to 50 GB HD DVD not supported DVD DVD-ROM SL NA up to 16X up to 4.7 GB DVD-ROM DL NA up to 8X up to 8.5 GB DVD+R SL up to 16X up to 12X up to 4.7 GB DVD+R DL up to 4X up to 8X up to 8.5 GB DVD+RW SL up to 8X up to 10X up to 4.7 GB DVD+RW DL not supported DVD-R SL up to 16X up to 12X up to 4.7 GB DVD-R DL up to 4X up to 8X up to 8.5 GB DVD-RW SL up to 6X up to 10X up to 4.7 GB DVD-RW DL not supported DVD-RAM up to 5X up to 5X up to 4.7 GB CD CDROM NA up to 40X up to 700 MB CDR up to 40X up to 40X up to 700 MB CDRW up to 24X up to 40X up to 700 MB CD-DA NA up to 32X up to 700 MB Video CD NA up to 10X up to 700 MB
    Wireless Wireless LAN 802.11 b/g
    Video Graphics Radeon HD4350
    512 MB DDR2 memory
    I/O Ports: HDMI, VGA, single-link DVI
    Television Hauppauge ATSC/NTSC TV tuner card with FM tuner
    Sound/Audio High Definition 8-channel audio
    ALC 888S chipset
    Network (LAN) Integrated 10/100/1000 Base-T networking interface
    Memory card reader
    Contains an Infrared receiver for remote control
    Supports the following cards:
    Compact Flash I
    Compact Flash II
    IBM Microdrive
    Secure Digital (SD)
    mini-SD
    MultiMediaCard (MMC)
    Reduced size MultiMediaCard (RS-MMC)
    MultiMediaCard Plus (MMC plus)
    MultiMediaCard Mobile (MMC mobile)
    Memory Stick
    Memory Stick Pro
    Memory Stick Duo
    Memory Stick Pro Duo
    SmartMedia
    xD Picture Card (xD = extreme digital)
    External I/O ports
    I/O ports on the front panel
    Port type Quantity 15-in-1 (4 slot) with IR Receiver One USB Two Headphone One Microphone One Audio L-R One S-video in One Composite video in One
    I/O ports on the back panel
    Port type Quantity PS/2 (keyboard, mouse) Two S/PDIF out (coaxial) One VGA One (disabled due to the installation of a graphics card) DVI-D One USB Four 1394a One LAN One Audio (side speaker out, rear speaker out, center/subwoofer-out , line-in, line-out, microphone) One Each
    Expansion slots
    Slot type Quantity PCI Express x16 One (None available) PCI Express x1 Three (Two available)
    Drive bays
    Bay type Quantity 5.25" Two (One available) 3.5" Two (One available) Personal Media Drive One (One available) Pocket Media Drive One (One available)
    Keyboard and mouse HP multimedia keyboard HP PS/2 optical mouse
    Remote Control USB infrared remote control,Remote control expansion card with IR ports,IR emitter cable to transmit codes to a set top box

    Based on what you've posted, your computer does not have the right tuner.   You need a QAM tuner to record locals from FiOS, or a CableCard tuner to record all local and cable channels from FiOS.
    QAM tuners to record local channels only
    This requires Windows Vista or Windows 7
    Hauppauge WinTV-HVR-2250
    SiliconDust HDHomeRun (info on a sale)
    CableCard tuner to record local and cable channels
    This requires Windows 7 + one CableCard from Verizon for $3.99/mo
    ATI TV Wonder Digital PC CableCard Tuner (records one channel at a time) -- $200-$250 on ebay
    Ceton MOCUR tuner (records four channels at a time) -- coming in early 2010 for $400-$600
    Make sure your computer has Windows 7 Home Premium (or better) installed.   That's necessary to support CableCard tuners.
    If you are the original poster (OP) and your issue is solved, please remember to click the "Solution?" button so that others can more easily find it.

  • How do I create a horizontal nav-bar with CSS, set to an exact width?

    I have a problem that I need help with. All I need to do is
    to create a simple text-based horizontal navigation bar using CSS.
    I have seen many CSS tutorials online about how to make a
    horizontal navigation bar using unordered lists, but they all seem
    to either set the bar to be centred or to the full width of the
    page, or if they do set it to be a certain width, then the buttons
    within that width are centred within pre-defined widths for each
    one.
    Unfortunately none of these help me - let me explain my
    scenario...
    I have an area that is exactly 700px wide. In this area I
    want to put 5 text hyperlinks.
    I want the first text-link to be aligned to the left of my
    700px width, and I want the last text-link to be aligned to the
    right of the 700px width.
    I want the spaces between each of these text-links to all be
    the same.
    The only definite known width is the overall 700px. I will
    not know the width of each text-link, as (a) they are all live
    text, and (b) the phrases for each could change.
    I have mocked up a quick diagram showing in more detail
    precisely what I mean:
    http://www.nothowitlooks.com/temp/navbar.gif
    Can anyone please help me with this?
    Thanks.

    .oO(BrettArchibald)
    >Oh look, a third person joining the discussion and not
    actually proposing any
    >solutions to the original query. Just what this thread
    needs.
    Oh look, a person seeking for help turning into a troll. Just
    what this
    group needs.
    > Well, to be fair, Kim did make a sterling effort in
    trying, but just didn't
    >manage to fully understand the layout required.
    >
    > To address your "points":
    >
    quote:
    some things simply can't be done or don't make any sense in
    the Web. Even a
    >client has to accept that. Let them write wishes to Santa
    Clause if they want,
    >but they have to accept the rules of the medium they're
    working with.
    >Period.
    > Wrong, wrong, silly comment and wrong.
    >
    > To elaborate: firstly, with regards to design,
    everything can be done, it's
    >simply a matter of how.
    Only in your fantasy. In practice there are always some
    limits enforced
    by the used material or technology. You simply can't violate
    such basic
    rules and laws, even if you would like to.
    >Whether you use text, images, tables, CSS, or even
    >Flash, the objective is first to design the site with
    both your client's and
    >their customers needs and expectations, and then to build
    it, regardless of how
    >difficult-to-code that design may or may not be.
    It always looks good on paper, but not every design can be
    turned into
    practice. This not only applies to web design, but to almost
    every kind
    of development. Often enough you have to find compromises or
    workarounds
    if the engineers say "won't work". The problem is that many
    designers
    don't understand this or don't want to. They're just thinking
    and living
    in their perfect theoretical world, but have no idea of how
    things work
    in the real world. And many theoretical things simply don't
    work there.
    Each medium has its own rules and laws. Some things may work
    well for a
    printed paper for example, but not in the Web and vice versa.
    Of course
    you can try to break these rules, but you'll definitely fail.
    >You should not compromise your
    >design because of a lack of coding knowledge.
    It's not lack if coding knowledge if you refuse to try things
    that are
    impossible or don't make sense. It's quite the opposite,
    because you
    don't have to waste your time with something that won't work
    at all.
    >If you don't know how to do it
    >yourself, then find out how to do it (which is what I was
    *originally* trying
    >to do here, remember?).
    Quite easy. Surf the web, and if you see something like what
    you want,
    just have a look at the source code or post the URL here. If
    it can be
    done, then it already has been done. Just show us an example
    and we'll
    happily explain it to you.
    > Secondly, no, a client does NOT have to accept that
    "some things simply can't
    >be done or don't make any sense in the Web".
    Sure they have. The client is not always king. And if they
    insist on
    stupid things and always know it better - why the hell are
    they hiring
    you instead of doing it themselves? If they want their work
    to be done
    by an expert, they should also _listen_ to that expert and
    let him do
    his work properly instead of telling him how he should do it.
    That's not
    going to work.
    >Like I said earlier, some clients
    >are not interested in hearing about how what they want
    cannot be done, and any
    >attempts to tell them so only serve to convince them to
    take their work, and
    >their money, to someone else. Most clients, thankfully,
    are adaptable and
    >willing to reason. However, some are not, and if these
    clients take their money
    >elsewhere, you lose the job and you don't get paid. It's
    that simple.
    Let's say you want a little film to be made about whatever.
    Would you
    tell the director where he should position the cameras, the
    lights and
    all the stuff? He already knows _what_ you want to get, so
    why don't you
    just let him decide _how_ to do it? It's his job! And if he
    says that
    filming directly towards bright sunlight usually doesn't work
    well, you
    should respect his expert opinion.
    >
    quote:
    You won't make friends here with such an attitude. Please
    stop insulting
    >regulars or just leave.
    >
    > Firstly, I'm not here to make friends. Neither am I here
    to make enemies. I am
    >here to get help with a coding problem. When people offer
    "alternative advice"
    >that hinders my progress in finding a solution, I tell
    them so. I give back
    >what I get.
    You asked for advice and you got proper answers. We really
    don't need
    people here just looking for the answers they want to hear.
    Often enough
    people are coming here looking for a cure to a particular
    problem, while
    it would be much easier to avoid that problem right from the
    beginning.
    Of course if they don't want to hear such alternatives -
    their problem.
    > Secondly, I was not aware that "regulars" to this site
    had any special
    >"insult-free privileges" or suchlike that newcomers did
    not.
    It's not the best idea to bite the hand that feeds you. It's
    the group's
    regulars who answer almost all of the questions here. And
    most of them
    also know how to use a killfile.
    >I don't care if
    >someone is a regular or a newcomer - when I ask a
    technical question and
    >instead of either potential advice or even silence, I
    instead receive
    >un-warranted "design advice", I'll make my opinions
    known.
    So do we. If someone wants something that's not possible or
    not going to
    work, we'll "make our opinions known". After all that's what
    a free
    discussion board/forum/group is for.
    > As for the "just leave" suggestion for supposedly
    "insulting regulars", I
    >could very well say the exact same thing to you, for the
    reason of not actually
    >contributing anything to the discussion that attempts to
    address the original
    >query of this thread.
    > In fact, you know what, I think I will. Here goes:
    > Please either propose a solution to my original CSS
    problem or just leave.
    > There, how was that?
    Want to try again?
    With pure CSS and text links it can't be done within the
    given
    constraints. I even doubt that it's possible with a table. So
    either
    drop the fixed 700px width or the equal space between the
    buttons.
    > P.S: Seeing as though pedantry seems to be something
    you're interested in,
    >judging by the "rant" tag comment, I thought I'd point
    out that you spelled
    >Santa Clause wrong.
    You can keep the 'e'. In German we have more than enough of
    them.
    And if you would be familiar with web design, then you would
    have known
    where this ironic "error message" came from.
    Your turn.
    Micha

  • Replacing Firefox 3.6.16 containing my history, bookmarks etc by version 4.0, I find that it will not open on my Mac Power PC G4 running on OS 10.4.11. Is there is a compatibility problem and how do I retrieve version 3.6 with my bookmarks etc

    Replacing Firefox 3.6.16 containing my history, bookmarks etc by version 4.0, I find that it will not open on my Mac Power PC G4 running on OS 10.4.11. Is there is a compatibility problem and how do I retrieve version 3.6 with my bookmarks etc.

    Firefox 4 requires at least OS X 10.5 and an Intel Mac. There is a third party version of Firefox 4 that runs on OS X 10.4/10.5 and PPC Macs, for details see http://www.floodgap.com/software/tenfourfox
    If you prefer, you can get the latest version of Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html
    When you install one of the above it will use your existing bookmarks etc

  • How to update a versioned container with changes in the DB

    Hi,
    I've reverse engineered a database schema into a container, and then I versioned it as v1.0.
    Now, that schema has changed in the database, and I'd like to update the container with those changes, and version it as v2.0.
    What is the best way to do it?
    Is it posiible to capture only the changed or new items into the v1.0 container, and then version it as v2.0?
    Thanks

    Check the application in and then check it out
    This will take it to the next level of versioning.
    However the version will be like 1.1 and not 2.0.
    There is a way to make it 2.0 but I do not remember the steps.
    Once you check it out it will be identical to 1.0 but the version will be 1.1 and you can make your changes and the next time it is checked in and out it will be set to 1.2 etc.
    At this point I have to ask if versioning is realy what you want to do. Don't get me wrong Configuration managment is a great thing. However most people do not understand it or how to use it. And they usualy get themselves in trouble with it. So if you know what your doing with it then go for it.
    Hope this helps.
    Also once you version your repositry you cannot go back. You are versioned forever.
    Michael

  • How to implement container with dividers between elements?

    What is the correct way to implement custom container with dividers between element in Flex 4 Spark architecture? In Flex 3 I would add dividers in rawChildren array and in updateDisplayList function I would arrange position of dividers and children. I can't do this now because there is no rawChildren and I can't add dividers as elements, because dividers are internal details of control and they should not be available to user. I thought to add second group with dividers, but the layout of splitters depends on the layout of actual content. With new model of separated layouts for Groups I don't know how do this correctly.  
    Thanks, Aleksey

    What is the correct way to implement custom container with dividers between element in Flex 4 Spark architecture? In Flex 3 I would add dividers in rawChildren array and in updateDisplayList function I would arrange position of dividers and children. I can't do this now because there is no rawChildren and I can't add dividers as elements, because dividers are internal details of control and they should not be available to user. I thought to add second group with dividers, but the layout of splitters depends on the layout of actual content. With new model of separated layouts for Groups I don't know how do this correctly.  
    Thanks, Aleksey

  • How to create Using Formatted Text Field with multiple Sliders?

    Hi i found the Java Sun tutorial at http://java.sun.com/docs/books/tutorial/uiswing/components/slider.html very useful, and it tells how to create one Formatted Text Field with a Slider - however i need to create Formatted Text Field for multiple Sliders in one GUI, how do i do this?
    my code now is as follows, and the way it is now is scroll first slider is okay but scrolling second slider also changes value of text field of first slider! homework due tomorrow, please kindly help!
    // constructor
    label1 = new JLabel( "Individuals" );
    scroller1 = new JSlider( SwingConstants.HORIZONTAL,     0, 100, 10 );
    scroller1.setMajorTickSpacing( 10 );
    scroller1.setMinorTickSpacing( 1 );
    scroller1.setPaintTicks( true );
    scroller1.setPaintLabels( true );
    scroller1.addChangeListener(this);
    java.text.NumberFormat numberFormat = java.text.NumberFormat.getIntegerInstance();
    NumberFormatter formatter = new NumberFormatter(numberFormat);
            formatter.setMinimum(new Integer(0));
            formatter.setMaximum(new Integer(100));
    textField1 = new JFormattedTextField(formatter);
    textField1.setValue(new Integer(10)); //FPS_INIT
    textField1.setColumns(1); //get some space
    textField1.addPropertyChangeListener(this);
    //React when the user presses Enter.
    textField1.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0),  "check");
            textField1.getActionMap().put("check", new AbstractAction() {
                public void actionPerformed(ActionEvent e) {
                    if (!textField1.isEditValid()) { //The text is invalid.
                        Toolkit.getDefaultToolkit().beep();
                        textField1.selectAll();
                    } else try {                    //The text is valid,
                        textField1.commitEdit();     //so use it.
                    } catch (java.text.ParseException exc) { }
    label2 = new JLabel( "Precision" );
    scroller2 = new JSlider( SwingConstants.HORIZONTAL, 0, 100, 8 );
    scroller2.setMajorTickSpacing( 10 );
    scroller2.setMinorTickSpacing( 1 );
    scroller2.setPaintTicks( true );
    scroller2.setPaintLabels( true );
    scroller2.addChangeListener(this);
    textField2 = new JFormattedTextField(formatter);
    textField2.setValue(new Integer(10)); //FPS_INIT
    textField2.setColumns(1); //get some space
    textField2.addPropertyChangeListener(this);
    //React when the user presses Enter.
    textField2.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0),  "check");
            textField2.getActionMap().put("check", new AbstractAction() {
                public void actionPerformed(ActionEvent e) {
                    if (!textField2.isEditValid()) { //The text is invalid.
                        Toolkit.getDefaultToolkit().beep();
                        textField2.selectAll();
                    } else try {                    //The text is valid,
                        textField2.commitEdit();     //so use it.
                    } catch (java.text.ParseException exc) { }
    // State Changed
         public void stateChanged(ChangeEvent e) {
             JSlider source = (JSlider)e.getSource();
             int fps = (int)source.getValue();
             if (!source.getValueIsAdjusting()) { //done adjusting
                  if(source==scroller1)   {
                       System.out.println("source ==scoller1\n");
                       textField1.setValue(new Integer(fps)); //update ftf value
                  else if(source==scroller2)     {
                       System.out.println("source ==scoller2\n");
                       textField2.setValue(new Integer(fps)); //update ftf value
             } else { //value is adjusting; just set the text
                 if(source==scroller1)     textField1.setText(String.valueOf(fps));
                 else if(source==scroller2)     textField2.setText(String.valueOf(fps));
    // Property Change
        public void propertyChange(PropertyChangeEvent e) {
            if ("value".equals(e.getPropertyName())) {
                Number value = (Number)e.getNewValue();
                if (scroller1 != null && value != null) {
                    scroller1.setValue(value.intValue());
                 else if (scroller2 != null && value != null) {
                    scroller2.setValue(value.intValue());
        // ACTION PERFORMED
        public void actionPerformed(ActionEvent event) {
        if (!textField1.isEditValid()) { //The text is invalid.
            Toolkit.getDefaultToolkit().beep();
            textField1.selectAll();
        } else try {                    //The text is valid,
            textField1.commitEdit();     //so use it.
        } catch (java.text.ParseException exc) { }
             if (!textField2.isEditValid()) { //The text is invalid.
            Toolkit.getDefaultToolkit().beep();
            textField2.selectAll();
        } else try {                    //The text is valid,
            textField2.commitEdit();     //so use it.
        } catch (java.text.ParseException exc) { }
    ...

    if :p3_note_id is null
    then
    insert into notes (project_id, note, notes_month, notes_year) So, p3_note_id is NULL.
    Another option is that you have a trigger on table NOTES that generates a new note_id even for an update.

  • How to display a view which contain interactive form in an external window

    Anyone know how to display a view which contain interactive form in an external window?
    I managed to display the view in an internal window with the following code:
    IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("PdfReportWin");
    IWDWindow window = wdComponentAPI.getWindowManager().createWindow( windowInfo, true);
    For external window, I tried this method : wdComponentAPI.getWindowManager().createExternalWindow(String URL, String title, boolean modal) but there are no parameter for view name?
    Maybe this is not the correct way, really appreaciate if anyone can help.

    Hi,
                U need to the following
               1.Create another window
               2.Create a view in it tat contains Interacive form element.
               3. call this window dynamically thru the first window by creating a context element of IWDWindow  type
    The code may help:
      IWDWindowInfo windowInfo =(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("SearchEmpwind");
          IWDWindow window = wdThis.wdGetAPI().getComponent().getWindowManager().createWindow(windowInfo, true);
          window.setWindowPosition(WDWindowPos.CENTER);
          window.setWindowSize(400, 250);
          window.open();
          wdContext.currentContextElement().setEmpSearchWind(window);
    Regards
    Ishita

  • How to center things in Flash?

    How do I center objects (horizontally and/or vertically) in
    Flash?
    If I copy an object, create a new document, and paste it in
    this new document, it automatically appears in the center. But is
    there any way to do this with objects in an existing document?
    Otherwise I have to spend a lot of time measuring the distance of
    space on my left and right sides, say I want to center something
    horizontally. There must be a better way?
    Thank you!

    kyrreny wrote:
    > How do I center objects (horizontally and/or vertically)
    in Flash?
    >
    > If I copy an object, create a new document, and paste it
    in this new document,
    > it automatically appears in the center. But is there any
    way to do this with
    > objects in an existing document? Otherwise I have to
    spend a lot of time
    > measuring the distance of space on my left and right
    sides, say I want to
    > center something horizontally. There must be a better
    way?
    CTRL V always paste in center within the same document. Tho
    might not
    across multiple documents.
    Then there is Alignment:
    CTRL K open positions and alignment panel, where you can
    control the content.
    Just hover with your mouse over the buttons and you will get
    description of
    each of them.
    Best Regards
    Urami
    "Never play Leap-Frog with a Unicorn."
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • I have all my music on an external hard drive. I just transferred all my files to a new hard drive . How do I sync all my files with my itunes library without losing all my playlists etc and keep everything intact?

    I have all my music on an external hard drive. I just transferred all my files to a new hard drive . How do I sync all my files with my itunes library without losing all my playlists etc and keep everything intact?

    Launch iTunes with the Option key held down, click on Choose Library, and specify it. If the external drive doesn't contain the iTunes database files, create a new library there and import that music.
    If the library contains any rented movies, they won't play on a different computer.
    (109334)

Maybe you are looking for