Please help, duplicate function

hi, just a quick question for poeple that use as3,
what excactly does the 'duplicate function definition' error
mean and how can you preven it?
please answer if you know
thanks!

"tbjyyevskmjuvi7dcsat" <[email protected]>
wrote in message
news:f68502$4c$[email protected]..
>
quote:
Originally posted by:
Newsgroup User
>
> "tbjyyevskmjuvi7dcsat"
<[email protected]> wrote in message
> news:f66t2k$giu$[email protected]..
> > hi, just a quick question for poeple that use as3,
> > what excactly does the 'duplicate function
definition' error mean and
> > how
> > can you preven it?
> > please answer if you know
> > thanks!
>
>
> Somewhere in your code, (likely a movie-clip) is being
duplicated (like
> for
> an effect for falling snowflakes) and it can't "find"
the clip its looking
> for... either remove that functionality altogether or
synchronize the
> name(s) of your movie-clip(s) with those being
duplicated.
>
>
>
>
>
> yes but if i removed the function (mouse:event etc.) how
do i use it a
> second
> time?
you don't... and that was one of two options...

Similar Messages

  • I have been using GRAB to capture screen displays.  It has just stopped working since the last OSX Upgrade.  Can anyone, please help restore functionality?

    I have been using GRAB to capture screen displays.  It has just stopped working since the last OSX Upgrade.  Can anyone, please help restore functionality?

    Thanks for that.  I did as suggested but when I tried again, it still did not work.  Another  com.apple.Grab.plist appeared in the Library.
    I now have the following files in Library
    file://localhost/Users/peterpatel/Library/Preferences/com.apple.Grab.LSSharedFil eList.plist
    file://localhost/Users/peterpatel/Library/Preferences/com.apple.Grab.LSSharedFil eList.plist.lockfile
    file://localhost/Users/peterpatel/Library/Preferences/
    file://localhost/Users/peterpatel/Library/Preferences/com.apple.Grab.plist.lockf ile
    What do you suggest I do now?

  • Please help : Pipline function, error passing parameter

    Hello,
    Please help a DBA who's trying to make it with PL/SQL (on Oracle 10.2.0.4).
    I'm just building a script to find the space used by all the segments (lob, index, partitions) related to a table.
    Here is my problem, when I call a table function (DBMS_SPACE.OBJECT_DEPENDENT_SEGMENTS) from within a pipeline function i get an error,
    if I turn that function into procedure it is running fine, if I hard code parameters it works...
    When running as a function I get the error :
    SQL> Select * from table(yke_size_info('SAPRD', 'REPOSRC'));
    Select * from table(yke_size_info('SAPRD', 'REPOSRC'))
    *+
    ERROR at line 1:
    ORA-20000: Object does not exist
    ORA-06512: at "SYS.DBMS_SPACE", line 2673
    ORA-06512: at "SYS.YKE_SIZE_INFO", line 40
    => line 40 is the call to DBMS_SPACE.OBJECT_DEPENDENT_SEGMENTS
    Thank for your help, I'm getting crazy with this, I've been browsing Google & docs for hoors but no answer yet !
    create or replace type r_size_info as object (
    nb_par_tbl   number ,
    nb_idx       number ,
    nb_par_idx   number ,
    nb_lob       number ,
    used_par_tbl number ,
    used_idx     number ,
    used_par_idx number ,
    used_lob     number ,
    free_par_tbl number ,
    free_idx     number ,
    free_par_idx number ,
    free_lob     number
    +)+
    +/+
    create or replace type t_size_info as table of r_size_info;
    +/+
    CREATE OR REPLACE FUNCTION yke_size_info(o_wner varchar2, o_bject varchar2 ) RETURN t_size_info PIPELINED AS
    r_size r_size_info := r_size_info(0,0,0,0,0,0,0,0,0,0,0,0);
    obj_segment_owner   VARCHAR2(100);
    obj_segment_name    VARCHAR2(100);
    obj_segment_type    VARCHAR2(100);
    obj_tablespace_name VARCHAR2(100);
    BEGIN
    FOR obj IN (SELECT segment_owner, segment_name, segment_type, tablespace_name FROM TABLE(dbms_space.object_dependent_segments(o_wner, o_bject, NULL, 1)))*
    LOOP
    If I change that line to hard code the parameter It's working :
    FOR obj IN (SELECT segment_owner, segment_name, segment_type, tablespace_name FROM TABLE(dbms_space.object_dependent_segments('SAPSR3', 'REPOSRC', NULL, 1)))
    If I turn the function into a procedure it is working :
    CREATE OR REPLACE PROCEDURE yke_size_inf(o_wner varchar2, o_bject varchar2 ) AS
    obj_segment_owner   VARCHAR2(100);
    obj_segment_name    VARCHAR2(100);
    obj_segment_type    VARCHAR2(100);
    obj_tablespace_name VARCHAR2(100);
    BEGIN
    FOR obj IN (SELECT segment_owner, segment_name, segment_type, tablespace_name  FROM (TABLE(dbms_space.object_dependent_segments (o_wner, o_bject, NULL, 1))))*
    LOOP

    Not really sure what you are trying to achieve... and putting a pipeline function on top of another pipeline function seems unnecessary to me.
    But using the basic code you've shown, the following works fine:
    SQL> create or replace type TStrings is table of varchar2(4000);
      2  /
    Type created.
    SQL>
    SQL> create or replace function FooPipe( objectName varchar2 ) return TStrings pipelined is
      2  begin
      3          for r in (
      4                  select
      5                          segment_owner, segment_name, segment_type, tablespace_name
      6                  from    table( dbms_space.object_dependent_segments(USER, objectName , NULL, 1))
      7          )
      8          loop
      9                  pipe row( r.segment_name||' is object('||r.segment_type||') in space('||r.tablespace_name||')' );
    10          end loop;
    11
    12          return;
    13  end;
    14  /
    Function created.
    SQL>
    SQL> select * from TABLE(FooPipe('TESTTAB'));
    COLUMN_VALUE
    TESTTAB is object(TABLE) in space(USERS)
    SQL>

  • Please help---merge function for two arrays.

    I am trying to create a merge function that merges two sorted arrays into a third array. I know what I am supposed to do, at least in theory, but I have been completely unsuccessful with actually getting the code to work. Since it is private, you can't directly access the arrays, you have to just reference them. could someone please help me out.
    import java.io.*;
    class OrdArray
    private long[] a;
    private int nElms;
    public OrdArray(int max)
    a = new long[max];
    nElms = 0;
    public int size()
    { return nElms;}
    public int find(long searchKey)
    int lowerBound = 0;
    int upperBound = nElms-1;
    int curIn;
    while(true)
    curIn = (lowerBound + upperBound) / 2;
    if(a[curIn]==searchKey)
    return curIn;
    else if (lowerBound > upperBound)
    return nElms;
    else
    if(a[curIn] < searchKey)
    lowerBound = curIn + 1;
    else
    upperBound = curIn - 1;
    public void insert(long value)
    int j;
    for(j=0; j<nElms; j++)
    if(a[j] > value)
    break;
    for(int k=nElms; k>j; k--)
    a[k] = a[k-1];
    a[j] = value;
    nElms++;
    public boolean delete(long value)
    int j = find(value);
    if(j==nElms)
    return false;
    else
    for(int k=j; k<nElms; k++)
    a[k] = a[k+1];
    nElms--;
    return true;
    public void display()
    for(int j=0; j<nElms; j++)
    System.out.print(a[j] + " ");
    System.out.println("");
    public void merge(OrdArray array, OrdArray array1)
    }//this is the start of the merge function. I am stuck and not real sure where to go from here.
    public long getElm(int index)
    return a[index];
    }//end class OrdArray
    class OrderedApp
    public static void main(String[]args)
    int maxSize = 100;
    OrdArray arr, arr1, arr2;
    arr = new OrdArray(maxSize);
    arr1 = new OrdArray(maxSize);
    arr2 = new OrdArray(maxSize);
    arr.insert(77);
    arr.insert(99);
    arr.insert(44);
    arr.insert(55);
    arr.insert(22);
    arr1.insert(88);
    arr1.insert(11);
    arr1.insert(00);
    arr1.insert(66);
    arr1.insert(33);
    arr2.merge(arr, arr1);
    arr.display();
    System.out.println("--------------------");
    arr1.display();
    System.out.println("--------------------");
    arr2.display();
    }

    If I use ArrayList<Long>, would I have to change private long[]a to ArrayList<long>, cause if so, I am not able to do that.
    I am supposed to add a merge() method to megre the two source arrays into an ordered destination array.
    public void merge(OrdArray array, OrdArray array1)
    mergeSize = array.nElems + array1.nElems;
    int i = 0;
    int j = 0;
    int k = 0;
    while (i = 0; i < array.nElems; i++) {
              if {array.getElm(i) < array1.getElm(j)
                                                              //how do you move to the next set of values
                                                              //and to move which variables are incremented
                                                              //how do you test if the flush loop should be      called, hint if( == )
                   while (j = mergeSize - array.nElems; j <= mergeSize; j++) { 
                                   this.a[j] = array1.a;
    //again how do you move to next value and placeholder
         //which indices are incremented
    //copy/paste and change the variables for the other value being smaller
    public long getElm(int index)
    return a[index];
    this is all I have started, but i don't really understand all the comments because I haven't used java in a long time. Like I said, I understand what needs to be done and what order to do it in, but getting the code down to do that is really rough

  • Please Help regard function that will return values of each JComboBox items

    I'd like to create a function that will return values of each item on the JComboBox at a time when
    I click on each item of a comboBox. I had this following codes, but didn't work.
    Please help me !!!Please correct it... thanks a million
    String wp;
    String text;
    String A[] = {"WARNIGNS","CAUTIONS","NOTES"};
    JComboBox ABC = new JComboBox();
    for (int i=0;i<A.length;i++) {
    ABC.addItem (A);
    text = Get_It(); //assigns each value of JComboBox's item to variable text when clicks at each item
    //of a comboBOx
    private String Get_It(){
    ABC.addActionListener(new ActionListener (){
    public void actionPerformed(ActionEvent e){
    wp = (String)CBweapon.getSelectedItem() ;
    return wp;

    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class AlertFrame extends JFrame {
    String s_alert[] ={"WARNIGNS","CAUTIONS","NOTES"};
    JComboBox CBweapon;
    String wpText;
    public AlertFrame() {
    super("Alerts");
    Container contentPane = getContentPane();
    contentPane.setLayout(null);
    setSize(600,600);
    CBweapon = new JComboBox();
    for (int i=0;i<s_weapon.length;i++) {
    CBweapon.addItem (s_weapon);
    contentPane.add(CBweapon);
    CBweapon.setActionCommand("");
    //set position for components
    CBweapon.setBounds(370 + insets.left,295+ insets.top, 150,30);
    System.out.println(getit()); //calling getit() function
    //this function will be return a String of JcomboBOx value if click on each item of combobox
    private String getit(){
    CBweapon.addActionListener( new ActionListener (){
    public void actionPerformed(ActionEvent e){
    wpText = (String)CBweapon.getSelectedItem() ;
    return wpText;
    public static void main(String args[]) {
    AlertFrame af = new AlertFrame();
    af.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    **I have no errors on compile or run, but it didn't return a string value to System.out.println(getit());
    It maybe because of the "void" of public void actionPerformed(ActionEvent e){
    wpText = (String)CBweapon.getSelectedItem() ;
    Please help me

  • Itunes  please help with functions (possible or not???)

    Hello
    I´m sorry that my questions are a little long - but please please i´m new with IPod and ITunes - and well at the moment i feel like if i had known how unorganized ITunes is and that i can´t acces the data on my IPod directly i would perhaps not have bought the IPod at all... (but perhaps - i really really hope so - i just cant find out HOW to do all i want and it IS possible after all...) so please take the time and if you know the ansers tell me how to do that...
    Since yesterday i have an IPod classic but unfortunately my own computer has only Windows 2000 - so i have to sync/transfer the Data from my Mom´s PC and so i have to delete the data on her PC after i got them on the IPOD once (and the should stay there untill i´m ready to delete them...)
    1)
    a) what happens if i sync my ITunes/Ipod and i allready deletet most of the music on my moms PC - will the music on the IPod be deleted too? - If yes can i prevent that? (how?)
    b) can i manually choose which titles i want to add/remove to/from my Ipod? i can´t see any way at the moment !!!
    I can see a kind of inventory list of my IPod but i can´t find out how to move Data on/in the folders of the IPod - only by synchronisation - now i know i HAVE allready Data on the IPod but every folder in Itunes of my Ipod is Empty... so how can i acces these data please???
    2)
    My second Problem ist that i can´t find out how to "sort" my chaotic 10.0000 (ok ok not so many right now but getting there some time) different Music-Data into different folders - ok i could add them to diffrent playlists - but one of the main Problems is the fact that many of my data are not properly classified so i need to organize the music so that i "see" only the Music from one particulary folder of my harddisk (then uppdate those information like adding all data from that Folder to a personal "album" or similar...) and every time i add a folder to the mediathek all the songs (different artist, different albums, different everything or missing information) are then spread out all through the music folder and i have to manually search for every single on and then manually add it to a playlist which is more timeconsuming than it is worth it...
    So please help me - HOW DO i make new Folders (NOT PLAYLISTS!!!) in which to sort the music??? so i do not have only ONE Music-Folder but perhaps 2, oder 3 or later more subfolders under the music-Folder?
    If that is really not possible - can i then at least sort my music after path-name (haven´t found out how to do that either yet...)
    3) I have a folder audibooks (which is really really great since i´m an audible customer and have moren then 40 audiobooks allready...) and my audible audiobooks are all added to that folder...
    But i have a few Other Audiobooks in MP3-Format (from MP3 DVD/ and a few CD´s formated as MP3) and even after i uppdated the information so it say´s now audibook in Type - i just can´t find out how to transfer those audibooks to the audiobooks folder (they stay in music-folder and are not found by Ipod as audibooks - only accessible under music with type audibooks which really ***** because that is unnecessary complicated... )
    so how do i get thos books in the audiobooks folder please?
    I hope anyone can help me...
    best regards
    Skarinija
    Message was edited by: Skarinija

    Thanks very much that takes care o my Question 1:
    It really is a great relief so now i know can sync the IPod manually - basically i tried the right things but in the wrong order - lol so i accidently deletet everthing on the IPod again and then i was staring on the blank inventory of my Ipod and wondering why i could not access the music that should be there...
    Still anyone knows an answer to question 2 and 3
    2) is it possible to "sort" Itunes in subfolders - so i can acces only one folder at a time
    3) Is ist possible to somehow classify any type of MP3/similar Data as "audibook" so that Data will show up as audibook on the Ipod? (not as music with type audiobook)
    mfg
    Skarinija

  • Please Help: TO_NCLOB function giving error

    Hi,
    I have HTML tags in one of database columns. As these tags were being displayed in my report, I used TO_NCLOB function to get rid of these tags.
    [I do not need the formatting anyway] This was just working fine until today.
    PROBLEM
    I have this text in my field:
    "<span style="font-size:10pt;font-family:&quot;;;Arial&quot;,&quot;sans-serif&quot">THE COMPANY HAS RECLASSIFIED xxx MILES OF
    “DISTRIBUTION” STEEL MAIN FROM COATED/PROTECTED TO BARE/PROTECTED TO REFLECT
    THE INFERIOR PROTECTIVE PROPERTIES ASSOCIATED WITH THE EARLIEST TYPES OF STEEL
    PIPE COATINGS (BARE GREASE, ROSKOTE, NO OXIDE, ETC.).</span>"
    The report threw an error, when I removed the TO_NCLOB Function in the sql the report is working fine, but is showing html tags in the output pdf.
    I do not understand why the TO_NCLOB function is giving me error in this particular scenario, I am not even able to get the xml data.
    I tried to use the same sql with the TO_NCLOB function in TOAD and it was working fine.
    Your help is highly appreciated, It is a high priority issue.
    Thanks,
    Rakesh
    Edited by: user13814009 on Mar 16, 2011 11:50 PM

    Oh ..Ok..
    Thanks for the answer. So , to get the distinct values , I need to change the query
    like I shown below. .
    select  ( cast(collect(t_tfo_sp_copy_evnt_dtl(event,       evnt.event_desc,
                        promo_month_desc,
                        .start_date,
                        end_date
                        start_date)) as
                        t_tfo_sp_event_table) from
                                                                                  ( select distinct  evnt.event, evnt.event_desc,
                        mth.promo_month_desc,
                        TO_CHAR(evnt.start_date,
                        'DD/MM/YYYY'),
                        TO_CHAR(evnt.end_date,
                        'DD/MM/YYYY'),
                        TO_CHAR((evnt.start_date - 21),
                        'DD/MM/YYYY')
              FROM TFO_SP_RETEK_PROMO_EVENT_MST evnt
               INNER JOIN  .....
               WHERE ...
               ORDER BY evnt.event_desc,
                                       mth.promo_month_desc,
                                       dtl.promo_start_date,
                                       dtl.promo_end_date,
                                       dtl.promo_cost_start_date); But I guess, it will increase the performance overhead.Any other suggestion you have to rewrite the query so that it will perform better?
    Edited by: Manjusha Muraleedas on २५ जनवरी, २०१३ ९:५५ पूर्वाह्न

  • PLEASE HELP - duplicates in my playlist

    hi all, I have recently had to re-install my computer and reinstall everything. I have somehow managed to install duplicate songs into my itunes (up to 5 copies of each song). Can anyone tell me how I can remove the duplicates or suggest any other remedies.
    Also I foolishly forgot to de-authorise my old itunes, before we did the system restore and had to reload everything back on. Is 5 the maximum you are allowed? Are there any ways this can be overcome?
    cheers

    reinstall everything. I have somehow managed to install duplicate songs into my itunes (up to 5 copies of each song).
    Are there actually 5 copies of each song in the iTunes music folder?
    Or are there only 5 duplicates in iTunes?
    If you copy the iTunes folder (and delete what is on there now) from the backup you made before reinstalling, it should work okay.
    Also I foolishly forgot to de-authorise my old itunes, before we did the system restore and had to reload everything back on. Is 5 the maximum you are allowed?
    5 is the max you can authorize at any one time. When you de-authorize, you can then re-authorize other computers.

  • Please help (3D function process).

    The 3D function on my Photoshop CS 6 Extended is really slow and it is taking a long time to load the changes as well as show them to me in real time. (Intel Core i7-3630QM CPU @ 2.40GHz 2.40GHz, Installed memory(RAM) 32.0 GB(31.9 GB Usable), System type: 64-bit Operating System, x64-based processor[Windows 8],Video Card: 2GB GDDR5 NVIDIA GeForce GTX 680M) valid to say, only Photoshop and Bridge running.

    To reset your prefs follow the directions in the video below:

  • PLEASE HELP - DUPLICATE SONG TITL

    Hi all, just wondering if anyone can tell me how i can put songs onto my creative vision M with the same name or is it not possible? It just comes up with skip track or replace track, and i dont want to skip it or replace the existing track with the same name. Any help will be greatly appreciated. Thanks 4 ur time!

    I actually have quite a few songs that have the same name, so I had to add a - or other acceptable character to the end of the title. That's the only thing I found that worked for me.

  • Please help: validate() function is taking 2 sec.

    Hi,
    My application creates a new panel with different components frequently.
    The problem is one JComboBox which most of the panels have in common holds 1lakh string objects.
    Creating the panel with all the required components is taking 100ms.
    I remove the old panel and add the newly created one to the parent panel. After that when i invoke validate() or invalidate() it is taking 1.5-2 sec to show.
    This is seen only in the case of panel that have these 1lakh object component. Why should validate() ever depend on the model?
    I tried invalidate() this was return quickly but it took the same time to render.
    Could any one please please tell me what validate() internally?
    I mean which fun. does the validate invoke.
    Thanks
    Shilpa

    Hello,
    I am posting an example with few button and a side panel with a combo box. Clicking any of the buttons removes the side panel and validates it with the new panel. I found that it is taking around 1900ms to validate .Here is the example.
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.ArrayList;
    import java.util.Collection;
    import javax.swing.BorderFactory;
    import javax.swing.DefaultComboBoxModel;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import javax.swing.UIManager;
    public class GridLay extends JFrame
    JPanel panel = new JPanel();
    JPanel panel2 = new JPanel();
    JPanel panel3 = new JPanel();
    public GridLay()
    GridBagLayout gridbag = new GridBagLayout();
    setFont(new Font("SansSerif", Font.PLAIN, 14));
    // setLayout(gridbag);
    panel.setLayout(gridbag);
    panel3.setLayout(new GridLayout(1, 2));
    makeCombo();
    makeText("Button1", gridbag, getScriptDescGridConstraints2());
    makebutton("Button2", gridbag, getCenterLabelGridConstraints2());
    makebutton("Button3", gridbag, getRightEditorGridConstraints2());
    makebutton("Button4", gridbag, getCenterLabelGridConstraints2());
    makebutton("Button5", gridbag, getRightEditorGridConstraints2());
    makebutton("Button6", gridbag, getCenterLabelGridConstraints2());
    makebutton("Button7", gridbag, getRightEditorGridConstraints2());
    makebutton("Button8", gridbag, getCenterLabelGridConstraints2());
    makebutton("Button9", gridbag, getRightEditorGridConstraints2());
    makebutton("Button2", gridbag, getCenterLabelGridConstraints2());
    makebutton("Button3", gridbag, getRightEditorGridConstraints2());
    makebutton("Button4", gridbag, getCenterLabelGridConstraints2());
    makebutton("Button5", gridbag, getRightEditorGridConstraints2());
    makebutton("Button6", gridbag, getCenterLabelGridConstraints2());
    makebutton("Button7", gridbag, getRightEditorGridConstraints2());
    makebutton("Button8", gridbag, getCenterLabelGridConstraints2());
    makebutton("Button9", gridbag, getRightEditorGridConstraints2());
    JScrollPane scroll = new JScrollPane(panel);
    scroll.setHorizontalScrollBarPolicy(
    JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    scroll.setVerticalScrollBarPolicy(
    JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
    panel3.add(scroll);
    panel3.add(panel2);
    getContentPane().add(panel3);
    setSize(400, 400);
    // pack();
    // setSize(getPreferredSize());
    setVisible(true);
    setSize(300, 100);
    protected void makebutton(
    String name,
    GridBagLayout gridbag,
    GridBagConstraints c)
    Button button = new Button(name);
    gridbag.setConstraints(button, c);
    panel.add(button);
    button.addActionListener(
    new ActionListener() {
    public void actionPerformed(ActionEvent e)
    panel3.remove(panel2);
    panel2 = new JPanel();
    makeCombo();
    panel3.add(panel2);
    System.out.println("Validating");
    long start = System.currentTimeMillis();
    validate();
    System.out.println(
    "Time taken to validate =" + (System.currentTimeMillis() - start));
    protected void makeCombo()
    JComboBox button = new JComboBox();
    button.setModel(getMod());
    panel2.add(button);
    private DefaultComboBoxModel getMod()
    String a = "22222222222222222222222222222222";
    Collection<String> list = new ArrayList<String>();
    for (int i = 0; i < 100000; i++) {
    list.add(a);
    DefaultComboBoxModel mod = new DefaultComboBoxModel(list.toArray());
    return mod;
    protected void makeText(
    String name,
    GridBagLayout gridbag,
    GridBagConstraints c)
    final JTextArea scriptDescription = new JTextArea(2, 10);
    scriptDescription.setLineWrap(true);
    scriptDescription.setWrapStyleWord(true);
    scriptDescription.setEditable(false);
    scriptDescription.setBackground(
    UIManager.getColor("Panel.Background"));
    scriptDescription.setFont(new Font("", Font.ITALIC, 12));
    scriptDescription.setText(
    "Jane was born in Steventon, Hampshire, where her father was a rector. "
    + "She was the second daughter and seventh child in a family of eight."
    + " The first 25 years of her life Austen spent in Hampshire. "
    + "She was mostly tutored at home. ");
    gridbag.setConstraints(scriptDescription, c);
    scriptDescription.setBorder(
    BorderFactory.createCompoundBorder(
    BorderFactory.createLineBorder(Color.gray, 1),
    BorderFactory.createEmptyBorder(1, 15, 1, 10)));
    panel.add(scriptDescription);
    * Returns the grid bag constraints for the script description text area.
    private GridBagConstraints getScriptDescGridConstraints2()
    GridBagConstraints c = new GridBagConstraints();
    c.gridx = 0;
    c.gridy = 0;
    c.weightx = 1.0;
    c.anchor = GridBagConstraints.EAST;
    c.fill = GridBagConstraints.HORIZONTAL;
    c.gridwidth = 3;
    return c;
    * Returns the grid bag constraints for the label.
    * @return gridBagConstraints.
    private GridBagConstraints getCenterLabelGridConstraints2()
    GridBagConstraints c = new GridBagConstraints();
    c.gridx = 0;
    c.gridy = GridBagConstraints.RELATIVE;
    c.weightx = 0.0;
    c.gridwidth = 1;
    c.anchor = GridBagConstraints.WEST;
    c.insets = new Insets(1, 10, 1, 0);
    return c;
    * Returns the grid bag constraints for the editor.
    * @return gridBagConstraints.
    private GridBagConstraints getRightEditorGridConstraints2()
    GridBagConstraints c = new GridBagConstraints();
    c.weightx = 1.0;
    c.gridx = 1;
    c.gridy = GridBagConstraints.RELATIVE;
    c.gridwidth = GridBagConstraints.RELATIVE;
    c.fill = GridBagConstraints.HORIZONTAL;
    c.anchor = GridBagConstraints.EAST;
    c.insets = new Insets(1, 2, 1, 1);
    c.weighty = 1.0;
    return c;
    public static void main(String[] args)
    GridLay gr = new GridLay();
    And i found that if I set the model after i validate it takes around 8 ms.
    I was of the opinion that validate() only renders!!!
    Thanks
    Shilpa

  • Please help about function query permformance

    Hi
    I have a j2ee web application with oracle database.
    I finish the function implementation by put all caculaton inside oracle query ( funciton (todayData - avg(historical data )) / std(historical data) and using group by and sub query .but performance is very slow about 3 minute whick is far from client's 10 second requirement.
    My question is if I take raw data from database and do the caculation part in Java will it be faster. Is there some other way to speed up the process?(historical data is big)
    Thanks for your time and help

    What does the function look like? How is it called? What is the query and explain plan? Are statistics up to date?
    My question is if I take raw data from database and do the caculation
    part in Java will it be faster.No.
    Is there some other way to speed up the process?(historical data is big)You should start by posting the explain plan and looking into the other questions above.

  • Please Help with function!

    Im making a website and have a little animation that plays
    when the user clicks a button to navigate to a part of the website.
    eg home, news section, contact.
    Below is my code to play the movie when the button is clicked
    and then proceed to the frame in which the desired page (eg news
    section) is located. What i want to happen though is for the movie
    clip to play from start to finish(goes for about 30 frames) and
    then i want it to display the frame. At the moment the new frame
    appears while the movie is still playing.

    One easy way.....You just need a keyframe at the end of your
    movie,ie after
    the 30 frames, and that keyframe will have your content (or
    content
    movieclip) in it. Make sure that the keyframe at the
    beginning of the
    movieclip doesn't have your content in it.
    Adam :)

  • Please help -- .options method not working in MAC IE 5.0

    Hi,
    My requirement is to dynamically populate a drop down box (combo box) in a JSP Page, using a javascript function, with some values. This happens on click of some button.
    I am using the below function to populate the drop down box. This runs fine in Windows IE, but in MAC, i get a javascript error saying " 'options' is not an object". Can anybody please tell me how to go about this? Is there any other way in which i could populate a drop down box? I need this to work in both Windows and MAC. Please help!
    Function used:
    // add an option item to the list
    function fnAddListItem(obj)
    optname = new Option("Sample","1",false,false);
    obj.options[obj.length] = optname;
    P.s: 'obj' here is my drop down box.
    eval("document.forms[0].drpSampleBox");
    Thanks in advance,
    -Santhi.

    Try using document.createElement("Option"); as shown below. It might help u
    var tblSpace = document.getElementById("drpSampleBox");
    var optionObjt = document.createElement("Option");
    optionObjt.text = "<DEFAULT>";
    optionObjt.value = "<DEFAULT>";
    tblSpace.add(optionObjt);
    for(i=0;i<array.length;i++)
         optionObjt = document.createElement("Option");
         optionObjt.text = array;
         optionObjt.value = array[i];
         tblSpace.add(optionObjt);

  • Duplicate Function? How do I stop the pages from playing? Please help.

    I'm EXTREMELY new to AS3 and Flash. I'm using Photoshop to design the site, and, although it was working at first, I've got a navbar up top, and after I added the codes, I got a duplicate Function error.
    Here is the code:
    stop();
    addEventListener(MouseEvent.MOUSE_DOWN, myBtnHandler1);
    function myBtnHandler1(event:MouseEvent):void {
        gotoAndStop(1, "Scene 3");
    Another problem is that it keeps playing as in, going through the scenes. Is that just a "Test" thing, or is there a way to fix that? Please help me figure out what codes to use for them.

    There could be a number of problems with your movie. In the Control menu, there is an option, Loop Playback, that will cause the movie to loop when using Test Movie from the Control Menu. If there is a compiler error, the movie will loop uncontrollably when you Test. Look in the compiler errors window to see if you have any errors.
    You may want to consider not using Scenes in your movie. They are a vestige of the earliest versions of Flash. Are you following a tutorial?

Maybe you are looking for

  • A slightly different problem with aspect ratio and DVD Maker

    I am converting VHS movies to DVD. All are 4:3. Using Microsoft Movie Maker, I create the desired final result, a WMV file that plays perfectly--aspect ratio, sound, whatever. The problem comes when I use DVD Maker to create the DVD. The picture gets

  • Need to merge a csv file using external tables into a main table

    Hi, I have a csv file which contains the date(with time stamp), column1(number),column2(number), column3 (number). I am using external tables concept to load the data froom csv to this external table and then merging into the main table. Problem here

  • Group by and then convert form Row to column

    Hi All, below is a transaction table for bank customer. region_id     cutomer_id     transaction_type     transaction_date 101          12345          CC               10-March-2011 101          12345          DC               07-March-2011 101      

  • Personal Information iViews missing in Business Package for E.S.S.

    Hi all, we have imported the business package for Employee Self-Service (ERP2005, Release 1.0 for nw2004s) in our portal. The iViews for the application 'Personal Information' (like 'Address', 'Bank Information',...) are language dependent and in the

  • F4 - multiple sessions - Web GUI

    Hi, We have ECC 5.0 Kernel - 64-bit patchlevel 129 SAP_BASIS 640 is at version 15 When I access a transaction through Web GUI for example 'me51n' (or any transaction), with below URL http://localhost:8000/sap/bc/gui/sap/its/webgui?~transaction=me51n