• RELEVANCY SCORE 2.95

    DB:2.95:Problem With Setvisible 9f




    Hi
    I made a class like this.
    class MonthComboBox extends JComboBox
    {
    public MonthComboBox()
    {
    addItem(" ");
    addItem("Jan");
    addItem("Feb");
    addItem("Mar");
    addItem("Apr");
    addItem("May");
    addItem("Jun");
    addItem("Jul");
    addItem("Aug");
    addItem("Sep");
    addItem("Oct");
    addItem("Nov");
    addItem("Dec");
    }
    }

    Now when I tried to do object.setVisible(false) in an event handler
    the runtime environment started giving lots of exceptions. Can somebody tell me whats wrong and how to correct this?

    DB:2.95:Problem With Setvisible 9f

    I have test run the code and it works just fine for me. No problems at all. I have JDK 1.3.

    //David

  • RELEVANCY SCORE 2.95

    DB:2.95:Problem With Setvisible xf




    Hi
    I made a class like this.
    class MonthComboBox extends JComboBox
    {
    public MonthComboBox()
    {
    addItem(" ");
    addItem("Jan");
    addItem("Feb");
    addItem("Mar");
    addItem("Apr");
    addItem("May");
    addItem("Jun");
    addItem("Jul");
    addItem("Aug");
    addItem("Sep");
    addItem("Oct");
    addItem("Nov");
    addItem("Dec");
    }
    }

    Now when I tried to do object.setVisible(false) in an event handler
    the runtime environment started giving lots of exceptions. Can somebody tell me whats wrong and how to correct this?

  • RELEVANCY SCORE 2.89

    DB:2.89:Java.Awt.Choice Component Doesn't Work In Macintosh!!!!! xd




    I created a very simple applet which has 3 choice box(java.awt.choice). When applet runs on netscape 6.x on Macintosh (OS 8.6), the list in each choice box is same as first list, and I don't know why.
    any idea about this?
    This applet works fine on windows, and IE on Macintosh.

    this is the code:

    ***********
    import java.awt.*;

    public class MacTest extends java.applet.Applet {

    private Choice box1,box2,box3;
    private Panel p;

    public MacTest(){
    p=new Panel(new GridLayout(3,1,0,0));
    box1=new Choice();
    box2=new Choice();
    box3=new Choice();
    p.add(box1);
    p.add(box2);
    p.add(box3);

    }
    public void init () {
    setLayout(null);

    add(p);
    p.setBounds(10,15,180,120);

    box1.addItem("List1-1");
    box1.addItem("List1-2");

    box2.addItem("OtherList2-1");
    box2.addItem("OtherList2-2");
    box2.addItem("OtherList2-3");

    box3.addItem("OtherList3-1");
    box3.addItem("OtherList3-2");
    box3.addItem("OtherList3-3");
    box3.addItem("OtherList3-4");
    }

    }

    **********

  • RELEVANCY SCORE 2.83

    DB:2.83:Actuate-Bip Conversion Halts In The Middle Of Conversion 9a


    Hi all,

    After I started an conversion of an actuate report to BIP using the conversion tool (version 2), the batch process just stops. It writes successfully to the logfile that some of the elements have been converted, i.e.

    "2009/10/20 13:10:937 Element TextControl "ssTxt2" begin validation."
    "2009/10/20 13:10:937 Element "ssTxt2" converted with value "?ssLocation?"."

    However the process never stops, so the batch window just sits there. I have to cancel the job with Ctrl+c.

    Has anyone else experienced this behavior and found a root cause for it?

    Regards,
    Hakan

    DB:2.83:Actuate-Bip Conversion Halts In The Middle Of Conversion 9a

    I'm going for a second try...

    Hi all,

    After I started a conversion of an actuate report to BIP using the conversion tool (version 2), the batch process just stops/hangs. It writes successfully to the logfile that some of the elements have been converted, i.e.

    "2009/10/20 13:10:937 Element TextControl "ssTxt2" begin validation."
    "2009/10/20 13:10:937 Element "ssTxt2" converted with value "?ssLocation?"."

    However the process never stops, so the command batch window just sits there. I have to cancel the job with Ctrl+c.

    It doesn't say anything in the log except that the elements up to a certain point have been successfully converted.

    Has anyone else experienced this behavior and found a root cause for it?

    Regards,
    Hakan

  • RELEVANCY SCORE 2.81

    DB:2.81:String To Jcombobox s8


    hello I am passing strings to JComboBox with the addItem method.

    The output results in

    [Ljava.lang.String;@1e2ca7

    I'm imagining this to be a memory address

    why does this happen.

    thanks

    DB:2.81:String To Jcombobox s8

    You're close... if you'll create a loop along the lines of:
    private void addComboBoxItem(JComboBox comboBox, String value[])
    {
    for (int x = 0; x value.length; x++) {
    comboBox.addItem(value[x]);
    }
    }Mark

  • RELEVANCY SCORE 2.72

    DB:2.72:Ctrl + Enter 1x



    Its not now working CTRL + ENTER ( Send text ) ??? (

    DB:2.72:Ctrl + Enter 1x


    Update your Skype to the latest 6.3.0.105 version.

    http://blogs.skype.com/2013/03/14/skype-6-3-for-wi​ndows/#fbid=utVn9TjcMKQ

  • RELEVANCY SCORE 2.65

    DB:2.65:Having Problems With Placing A Jtextarea On My Panel ... 1s


    Hey guys ... ca anyone help ... it is bit silly ... but still help would be great ...
    am trying to insert a JTextarea on that panel ... but when i run the frame the text area isnt there ...

    Any idea where is it gone ? thanks ...

    import javax.swing.*;
    import javax.swing.border.*;
    import java.awt.*;

    public class ApplyForm
    {
    JFrame frame;
    JLabel welcome, firstName, secondName, email, addit;
    JTextField firstField, secondField, emailField;
    JTextArea textArea;
    JButton goButton, reset;
    JPanel panel, panel1;
    Border border, border1;

    public ApplyForm()
    {
    frame = new JFrame();
    frame.setTitle("Apply Form");
    frame.setBounds(0, 0, 500, 500);
    frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
    frame.setResizable (true);

    panel = new JPanel();

    panel.setLayout (new GridBagLayout());

    border = BorderFactory.createTitledBorder ("Enter Details : ");

    panel.setBorder(border);

    firstName = new JLabel("First Name: ");
    secondName = new JLabel("Second Name: ");
    email = new JLabel("Email: ");

    firstField = new JTextField(15);
    secondField = new JTextField(15);
    emailField = new JTextField(15);

    textArea = new JTextArea();

    goButton = new JButton("SUBMIT");
    reset = new JButton ("RESET");


    addItem (panel, firstName, 0, 0, 1, 1, GridBagConstraints.EAST);
    addItem (panel, secondName, 0, 1, 1, 1, GridBagConstraints.EAST);
    addItem (panel, email, 0, 2, 1, 1, GridBagConstraints.EAST);

    addItem (panel, firstField, 1, 0, 1, 1, GridBagConstraints.WEST);
    addItem (panel, secondField, 1, 1, 1, 1, GridBagConstraints.WEST);
    addItem (panel, emailField, 1, 2, 1, 1, GridBagConstraints.WEST);

    addItem (panel, textArea, 0, 3, 2, 2, GridBagConstraints.SOUTH);

    addItem (panel, goButton, 1, 5, 1, 1, GridBagConstraints.SOUTH);
    addItem (panel, reset, 0, 5, 1, 1, GridBagConstraints.SOUTH);

    frame.add (panel);
    frame.pack();
    frame.setVisible (true);
    }

    private void addItem(JPanel panelIn, JComponent componentIn, int xIn, int yIn,
    int widthIn, int heightIn, int alignmentIn)
    {
    GridBagConstraints gc = new GridBagConstraints();

    gc.gridx = xIn;
    gc.gridy = yIn;
    gc.gridwidth = widthIn;
    gc.gridheight = heightIn;

    gc.weightx = 500.0;
    gc.weighty = 500.0;
    gc.insets = new Insets (5, 5, 5, 5);
    gc.anchor = alignmentIn;
    gc.fill = GridBagConstraints.NONE;

    panelIn.add (componentIn, gc);
    }


    }

    DB:2.65:Having Problems With Placing A Jtextarea On My Panel ... 1s

    It's there; it's just very small. Consider either giving it some rows or column int values or a preferred size, or putting it in a JScrollPane with a preferredSize set.

    another thought is to use a BorderLayout for the whole thing, and place the JScrollPane/JTextArea BorderLayout.CENTER, put the JTextField and JLabels in a JPanel using GridBag and placing this into the main BorderLayout.NORTH, and placing the buttons into their own panel which is added to the main BorderLayout.SOUTH.

    Edited by: Encephalopathic on Sep 24, 2008 9:51 AM

  • RELEVANCY SCORE 2.62

    DB:2.62:Populate Multiple Dropdownlists And A Listbox 9s


    Hello All,

    Can someone please help me with the following.

    What I have are two dropdownlists and a listbox. What I am trying to do is based upon a selection made in DropDownList1 clear all items in DropDownList2 and replace them only those items that relate to the selection made in DropDownList1, then select from the available items now in DropDownList2 and populate ListBox1.

    This is what I came up with so far, but can't get it to work.

    Using a "change" event javascript the following is what I have in DropDownList1:

    Dropdown2.rawValue = xfa.event.newText;

    if (this.boundItem(xfa.event.change) == 0) { //DATABASE 1
    Dropdown2.clearItems();
    Dropdown2.addItem("DIRECTORY 1");
    Dropdown2.addItem("DIRECTORY 2");
    Dropdown2.addItem("DIRECTORY 3");
    Dropdown2.addItem("DIRECTORY 4");
    Dropdown2.addItem("DIRECTORY 5");
    } else if (this.boundItem(xfa.event.change) == 1){ //DATABASE 2
    Dropdown2.clearItems();
    Dropdown2.addItem("DIRECTORY 6");
    Dropdown2.addItem("DIRECTORY 7");
    Dropdown2.addItem("DIRECTORY 8");
    Dropdown2.addItem("DIRECTORY 9");
    Dropdown2.addItem("DIRECTORY 10");

    In my DropDownList2 change event I have the following:

    ListBox1.rawValue = this.boundItem(xfa.event.change);

    Can someone please help me with this?

    DB:2.62:Populate Multiple Dropdownlists And A Listbox 9s

    Hello William,

    I know your post is over a year old, but, were you able to ever figure this out?

    Any help would be appreciated.

    Thank you in advance.

    - Vivianne

  • RELEVANCY SCORE 2.60

    DB:2.60:Display Problem With Cmfcribboncombobox cz


    When I add a CMFCRibbonComboBox control in the status bar, the popup of the combobox is not correctly displayed if it has more than 7 items AND the app is maximized:

    The combobox popup tries to display a gray margin on the left.
    If the main window of the application is not maximized, or if the combobox contains less than 6 items, the popup is displayed correctly:

    Here is my code:
    From an App-wizard generated ribbon app, I add a CMFCRibbonComboBox control in the statusbar, in CMainFrame::OnCreate, just after the line wherem_wndStatusBar.AddExtendedElement is called:

    CMFCRibbonComboBox *pCombo = new CMFCRibbonComboBox(1458, TRUE, 40);
    pCombo-AddItem(L1);
    pCombo-AddItem(L2);
    pCombo-AddItem(L3);
    pCombo-AddItem(L4);
    pCombo-AddItem(L5);
    pCombo-AddItem(L6);
    pCombo-AddItem(L7);
    m_wndStatusBar.AddExtendedElement(pCombo, _T(MyCombo));

    DB:2.60:Display Problem With Cmfcribboncombobox cz

    I haven't solved the issue. I've just created a bug in Microsoft Connect website
    https://connect.microsoft.com/VisualStudio/feedback/details/700173/display-bug-in-cmfcribboncombobox-control
    You can vote for it if you want it to be fixed in next release of Visual Studio.

  • RELEVANCY SCORE 2.57

    DB:2.57:Check This Code.. dp


    hi,
    iam getting an error in the following code..
    error is:
    D:\isra\search\sam\tableDemo.java:92: ';' expected
    cb.addActionListener(new ActionListener()){
    ^
    1 error

    code is:

    public JScrollPane table1()
    {

    JTable table1 = new JTable(data1,col1);*/
    //final Object[][]data1 = new data1[4][4];
    //final String[] col1 ={" Sort ", " Property "," Label "," Width ","Align "};
    //int [][]a = new int[4][5];
    JTable table1 = new JTable(4,5);
    TableColumn prop = new TableColumn();
    prop = table1.getColumnModel().getColumn(2);
    JComboBox cb = new JComboBox();
    cb.addItem("F_DOCNUMBER");
    cb.addItem("F_DOCCLASSNAME");
    cb.addItem("F_DOCCLASSNUMBER");
    cb.addItem("F_DOCNO");
    cb.addItem("F_FORMATT");
    cb.addItem("F_LOCATION");
    cb.addItem("F_DELETEDATE");
    prop.setCellEditor(new DefaultCellEditor(cb));

    cb.addActionListener(new ActionListener()){
    public void actionPerformed(ActionEvent e) {
    String newMode = (String)cb.getSelectedItem();
    if (newMode.equals("F_DOCNUMBER")) {
    TableColumn pr1 = new TableColumn();
    pr1 = table1.getColumnModel().getColumn(3);
    JComboBox b1 = new JComboBox();
    b1.addItem("not null");
    b1.addItem("less than");
    b1.addItem("equal");
    b1.addItem("greater than");
    b1.addItem("like");

    pr1.setCellEditor(new DefaultCellEditor(b1));

    } else if (newMode.equals("F_DOCCLASSNAME")) {
    TableColumn pr2 = new TableColumn();
    pr2 = table1.getColumnModel().getColumn(3);
    JComboBox b2 = new JComboBox();
    b2.addItem("not null");
    b2.addItem("less than");
    b2.addItem("equal");
    b2.addItem("greater than");
    b2.addItem("like");

    pr2.setCellEditor(new DefaultCellEditor(b2));

    }
    else {
    TableColumn pr3 = new TableColumn();
    pr3 = table1.getColumnModel().getColumn(3);
    JComboBox b3 = new JComboBox();
    b3.addItem("not null");
    b3.addItem("less than");
    b3.addItem("equal");
    b3.addItem("greater than");
    b3.addItem("like");
    pr3.setCellEditor(new DefaultCellEditor(b3));
    }
    };
    }
    int k = ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS;
    int i = ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
    ScrollPane jsp1 = new JScrollPane(table1,k,i);
    return jsp1;
    }

    this method is for change in selection values..
    like the user select avalue from combobox of first column then correspondin values should be shown in second value..
    regards,
    sampath

    DB:2.57:Check This Code.. dp

    If TableDemo is not going to capture the events directly remove the line stating:
    implements java.awt.event.ActionListener:)

  • RELEVANCY SCORE 2.56

    DB:2.56:Listbox 91


    Bonjour à toutes et tous,

    J'ai dans un userform 4 Listbox.
    chacune de ces listes ne propose que les choix :
    yes
    no

    J'ai essayé en indiquant dans les propriétés de chaque listbox les "rowsource" et "controlesource" ou en déclarant chaque Listbox dans l'Userform comme ci-dessous

    Private Sub UserForm_Initialize()

    ListBox11.Clear
    ListBox11.AddItem "yes"
    ListBox11.AddItem "no"
    ListBox11.Value = Worksheets("masque").Range("E6")

    ListBox8.Clear
    ListBox8.AddItem "yes"
    ListBox8.AddItem "no"
    ListBox8.Value = Worksheets("masque").Range("F6")

    ListBox9.Clear
    ListBox9.AddItem "yes"
    ListBox9.AddItem "no"
    ListBox9.Value = Worksheets("masque").Range("G6")

    ListBox10.Clear
    ListBox10.AddItem "yes"
    ListBox10.AddItem "no"
    ListBox10.Value = Worksheets("masque").Range("H6")

    End Sub

    Mais le résultat est soit qu'en cliquant sur l'un, un ou plusieurs Listbox s'activent ou se désactivent en "yes ou no", ou si on ferme puis ouvre à nouveau l'userform, les listbox n'indiquent plus le choix déjà fait. les Yes ou No restent blancs et ne sont
    plus highlightés en bleu.

    Je comprends pas pourquoi un listbox interagit avec un autre ou plusieurs ou pourquoi les valeurs s'effacent soit sur la feuille "masque" et dans les Listbox eux-memes.

    Merci
    Denis

    DB:2.56:Listbox 91

    Bonjour,

    Je ne sais pas vraiment ce que tu cherches à faire

    Essaie comme ceci pour initialer les listbox. Ceci est suffisant pour les 4 listbox!

    For a = 8 to 11
    Me.Controls("ListBox" a) .List = Array("OUI", "NON")
    Next

    Maintenant si tu as par exemple dans la cellule A1 la valeur NON
    et que tu veux que cette valeur soit sélectionnée dans la listbox1

    Dim X As String
    X = Range("A1").Value
    With Me.ListBox1
    .ListIndex = Application.Match(X, .List, 0) - 1
    End With

    Si tu veux autre chose, explique-moi plus clairement ce que sont tes besoins.

  • RELEVANCY SCORE 2.56

    DB:2.56:Error De Lectura De Disco kx


    hola

    Con converter 3.0.2 hago una conversion de un servidor normal, quiero decir que ni es un DC ni nada, simplemente es un 2003 con aplicaciones instaladas y hago una conversion.

    Tarda asi como unas 15 horas en concluirse satisfactoriamente.

    Cuando lo arranco con workstation me dice que .......... "error de lectura de disco, pulse ctrl-alt-sup".

    alguien sabe a que es debido y cmo solucionarlo?

    gracias

    DB:2.56:Error De Lectura De Disco kx


    Hola Fernando,

    Me alegro que te funcione.

    Por favor, asigna puntos, marcando las respuestas como correctas o helpfull, a aquellos compaeros que creas que te han ayudado. Es la nica forma de que estos foros definitivamente "despeguen".

    Asimismo puedes encontrar la gua de VMware Converter en este enlace, donde explica en detalla como hacer una conversin P2V.

    http://www.vmware.com/pdf/VMware_Converter_manual.pdf

    Saludos,

    Jose Maria Gonzalez,

    Founder and President of JmGVirtualConsulting.com

    -

    See http://www.JmGVirtualConsulting.com for official Vi3 and vSphere consultancy

    See http://www.josemariagonzalez.es for my blog on VMware training and tips

    See http://www.twitter.com/jose_m_gonzalez for some twittering

    VMware vExpert 2009, vExpert 2010

    Autor del libro 101 Secretos de VMware vSphere

    Autor del libro VMware ESX y VMware VCP Hecho Fcil

    -

    If you find this or any other answer useful please consider awarding points by marking the answer helpful or correct.

    !http://feedproxy.google.com/ElBlogDeVirtualizacionEnEspanol.2.gif!

  • RELEVANCY SCORE 2.55

    DB:2.55:Grid1.Additem Method Not Working In Vb.Net After Upgrade dz


    I'm working on an application upgraded from VB 6.0 to VB.NET.
    It contains a grid control which is uograded to ActiveX. But the grid1.AddItem method is not working. The control doesnot go to AddItem.
    What should I do?

    DB:2.55:Grid1.Additem Method Not Working In Vb.Net After Upgrade dz

    I'm working on an application upgraded from VB 6.0 to VB.NET.
    It contains a grid control which is uograded to ActiveX. But the grid1.AddItem method is not working. The control doesnot go to AddItem.
    What should I do?

  • RELEVANCY SCORE 2.52

    DB:2.52:Error 3021. No Current Record mk



    I have a block of codes, that when run, shows the error message error 3021, no current record
    however, when i click end on the error message box, my program runs.
    Dim count As Integer
    Dim db As Database
    Dim rs As Recordset

    Set db = CurrentDb
    Set rs = db.OpenRecordset(PERSONNEL)

    For i = 0 To rs.RecordCount - 1

    With NRICCB
    .AddItem (rs.Fields(NRIC))
    End With



    With NAMECB
    .AddItem (rs.Fields(DESIGNATION))
    End With

    With APPTCB
    .AddItem (rs.Fields(APPT))
    End With

    rs.MoveNext

    Next

    rs.Close
    db.Close
    the error message occurs on the first .additem line.
    however, should i end the error message, all works fine. Cant really understand this portion.
    Thanks.

    DB:2.52:Error 3021. No Current Record mk


    i tried putting the code on error resume next, directly below the first .additem statement, and the program now works fine without the
    error.

    However, iam still tryingto figure out how theerror cameabout.

  • RELEVANCY SCORE 2.52

    DB:2.52:Need Help Write Code For A Listbox 1x


    I have the sub() below for my Userform with a ListBox, what I would like to do is write a sub() that would select all the items in the Listbox, if the user Check the "(Select All)" item and unselect all the items if theuser UnCheck the "(Select All)" item.
    How do I accomplish that?
    Private Sub UserForm_Initialize()
    With UserForm1.lstbx_ProjName
    .AddItem "(Select All)"
    .AddItem "AAV-HSPA"
    .AddItem "Dual Carrier HSPA 42"
    .AddItem "Ethernet Over DS-3"
    .AddItem "Ethernet Over Microwave"
    .AddItem "UMTS"
    End With
    End Sub

    DB:2.52:Need Help Write Code For A Listbox 1x

    One little problem I just discovered, when I click to Check the "Select All" item for the first time, it works fine but when I click any other item and then go back and click the Select All again, the Select All is checked but the other items are not. I
    have to click the Select All again for the rest of the items to be selected.
    Any ideas why it's doing that?

  • RELEVANCY SCORE 2.49

    DB:2.49:Problem With Stes - Savechanges dx


    Hi, I have this code:

    OfficeTaxes tax = new OfficeTaxes();
    tax.Office = OfficeBL.GetByName(OfficeName).MarkAsUnchanged();
    blagradTax.TaxPrice = 10;

    OfficeTaxesBL.Save(tax);

    OfficeTaxesBL.Save method is :
    public static OfficeTaxes Save(OfficeTaxes AddItem)
    {
    using (CKPIEntities ctx = new CKPIEntities())
    {
    var existingOfficeTax = ctx.OfficeTaxes.Where(a = a.ID == AddItem.ID);

    if (existingOfficeTax.Any())
    {
    BusinessLogicHelper.GenerateUpdateInfo(AddItem);
    ctx.OfficeTaxes.ApplyChanges(AddItem);
    }
    else
    {
    BusinessLogicHelper.GenerateInsertInfo(AddItem);
    ctx.OfficeTaxes.AddObject(AddItem);
    }

    ctx.SaveChanges();
    }
    return AddItem;
    }
    The error I get:
    Violation of PRIMARY KEY constraint 'PK_Office'. Cannot insert duplicate key in object 'dbo.Office'.\r\nThe statement has been terminated.
    Actually it is trying to add new office, but I want to use the Office only to take the ID from. A possible workaround is to initialize tax.OfficeID, but it is very odd that this code is not working like in the walkthrough on Self Tracking Entities. I tryed
    it even with and without .MarkAsUnchanged()

    DB:2.49:Problem With Stes - Savechanges dx

    Hi, I have this code:

    OfficeTaxes tax = new OfficeTaxes();
    tax.Office = OfficeBL.GetByName(OfficeName).MarkAsUnchanged();
    blagradTax.TaxPrice = 10;

    OfficeTaxesBL.Save(tax);

    OfficeTaxesBL.Save method is :
    public static OfficeTaxes Save(OfficeTaxes AddItem)
    {
    using (CKPIEntities ctx = new CKPIEntities())
    {
    var existingOfficeTax = ctx.OfficeTaxes.Where(a = a.ID == AddItem.ID);

    if (existingOfficeTax.Any())
    {
    BusinessLogicHelper.GenerateUpdateInfo(AddItem);
    ctx.OfficeTaxes.ApplyChanges(AddItem);
    }
    else
    {
    BusinessLogicHelper.GenerateInsertInfo(AddItem);
    ctx.OfficeTaxes.AddObject(AddItem);
    }

    ctx.SaveChanges();
    }
    return AddItem;
    }
    The error I get:
    Violation of PRIMARY KEY constraint 'PK_Office'. Cannot insert duplicate key in object 'dbo.Office'.\r\nThe statement has been terminated.
    Actually it is trying to add new office, but I want to use the Office only to take the ID from. A possible workaround is to initialize tax.OfficeID, but it is very odd that this code is not working like in the walkthrough on Self Tracking Entities. I tryed
    it even with and without .MarkAsUnchanged()

  • RELEVANCY SCORE 2.49

    DB:2.49:A Disk Read Error Occurred jc


    Converter 4.0.1

    WinXP SP3 Physical -gt; ESXi 4.0

    After successful conversion (no obvious errors in the logs) I'm getting the "a disk read error occured press ctrl - alt - del"

    Booted from XP CD and did the fixboot fixmbr to no avail. ran chkdsk

    Created new VM and used exisiting vmdk

    checked startup order, tried boot menu

    XP boot floppy DOES work (ntldr, ntdetect, boot.ini on floppy image) - but this isn't really ideal.

    Any ideas?

    DB:2.49:A Disk Read Error Occurred jc


    I had the same problem converting an XP image from ESX4 to another ESX4. As DSTAVERT mentioned, when I converted using Buslogic SCSI controller vs. "same as source" (IDE), it worked fine!

    Cheers!

  • RELEVANCY SCORE 2.49

    DB:2.49:Combobox Additem() xj


    HI,i populated a combobox looping through an array... the result is that items were placed in wrong order inside the combobox.Any idea?

    DB:2.49:Combobox Additem() xj

    I found the problem.There was a conflict between the 'populating' code and a function in 'Array.prototype' .

  • RELEVANCY SCORE 2.48

    DB:2.48:Overriding Methods kx


    I would like to add some basic user interface objects in addition to the user interface object of what "generateQueryForm method does by overriding the method "generateQueryForm".

    Following is the code

    ******************************************

    public void generateQueryForm(UserSession parm1, HttpServletRequest parm2, HttpServletResponse parm3) throws java.lang.Exception,oracle.html.HtmlRuntimeException {
    //TODO: override this oracle.jdeveloper.servlet.DbServletImpl method;
    parm3.setContentType("text/html");
    super.generateQueryForm( parm1, parm2, parm3);
    // PrintWriter out = parm3.getWriter();
    try {
    // Create the Head object with title "Welcome to our home page"
    HtmlHead hd = new HtmlHead("Welcome to our home page");
    // Create a new HtmlBody object
    HtmlBody hb = new HtmlBody();
    HtmlPage hp = new HtmlPage(hd,hb);
    // Create a form object
    Form form1 = new Form("POST","http://wdev.wiley.com/servlet/JPS.StatServ");
    // Create a Submit object and add it to the form
    form1.addItem(new Submit("Status","Status"));
    // form1.addItem(SimpleItem.Paragraph);
    // Create a form object
    Form form2 = new Form("POST","http://wdev.wiley.com/servlet/JPS.AuthorServ");
    form2.addItem(new Submit("Author","Author"));
    // Create a form object
    Form form3 = new Form("POST","http://wdev.wiley.com/servlet/JPS.NameServ");
    form3.addItem(new Submit("Name","Name"));
    // Add the form object to the HtmlBody object
    hp.getBody().addItem(form1);
    hp.getBody().addItem(form2);
    hp.getBody().addItem(form3);
    hp.print();
    parm3.getWriter().println(hp);
    parm3.getWriter().flush();
    }// try
    catch (Exception e) {
    }
    *******************************************

    Thanx,
    Shankar

    DB:2.48:Overriding Methods kx

    I would like to add some basic user interface objects in addition to the user interface object of what "generateQueryForm method does by overriding the method "generateQueryForm".

    Following is the code

    ******************************************

    public void generateQueryForm(UserSession parm1, HttpServletRequest parm2, HttpServletResponse parm3) throws java.lang.Exception,oracle.html.HtmlRuntimeException {
    //TODO: override this oracle.jdeveloper.servlet.DbServletImpl method;
    parm3.setContentType("text/html");
    super.generateQueryForm( parm1, parm2, parm3);
    // PrintWriter out = parm3.getWriter();
    try {
    // Create the Head object with title "Welcome to our home page"
    HtmlHead hd = new HtmlHead("Welcome to our home page");
    // Create a new HtmlBody object
    HtmlBody hb = new HtmlBody();
    HtmlPage hp = new HtmlPage(hd,hb);
    // Create a form object
    Form form1 = new Form("POST","http://wdev.wiley.com/servlet/JPS.StatServ");
    // Create a Submit object and add it to the form
    form1.addItem(new Submit("Status","Status"));
    // form1.addItem(SimpleItem.Paragraph);
    // Create a form object
    Form form2 = new Form("POST","http://wdev.wiley.com/servlet/JPS.AuthorServ");
    form2.addItem(new Submit("Author","Author"));
    // Create a form object
    Form form3 = new Form("POST","http://wdev.wiley.com/servlet/JPS.NameServ");
    form3.addItem(new Submit("Name","Name"));
    // Add the form object to the HtmlBody object
    hp.getBody().addItem(form1);
    hp.getBody().addItem(form2);
    hp.getBody().addItem(form3);
    hp.print();
    parm3.getWriter().println(hp);
    parm3.getWriter().flush();
    }// try
    catch (Exception e) {
    }
    *******************************************

    Thanx,
    Shankar

  • RELEVANCY SCORE 2.48

    DB:2.48:List Box Issues sz


    I am creating a word template that contains two list boxes. The user
    will be able to select multiple items and send the items to the other
    list box via a command button. However when ever I save and close the
    document and open the same document, the contents of the second list
    box are empty

    I have attached the code I have for you all to look at. Thanks for the help in advance.

    Private Sub Document_New()
    PopulateListBox

    'Clears out second list for a new document
    lstbox2.Clear
    End Sub

    Private Sub Document_Open()
    PopulateListBoxes
    End Sub

    Private Sub cmdMovetoRight_Click()

    Dim i As Integer

    If lstbox1.ListIndex = -1 Then Exit Sub
    For i = lstbox1.ListCount - 1 To 0 Step -1
    If lstbox1.Selected(i) = True Then
    lstbox2.AddItem lstbox1.List(i)
    lstbox1.RemoveItem i
    End If
    Next i
    End Sub

    Private Sub cmdMovetoLeft_Click()

    Dim i As Integer

    If lstbox2.ListIndex = -1 Then Exit Sub
    For i = lstbox2.ListCount - 1 To 0 Step -1
    If lstbox2.Selected(i) = True Then
    lstbox1.AddItem lstbox2.List(i)
    lstbox2.RemoveItem i
    End If
    Next i
    End Sub

    Private Function PopulateListBoxes()
    'code used to populate multi-select list box
    With lstbox1
    .AddItem TBD1
    .AddItem TBD2
    .AddItem TBD3
    .AddItem TBD4
    .AddItem TBD5
    .AddItem TBD6
    .AddItem TBD7
    End With
    End Function

    DB:2.48:List Box Issues sz

    Wow....if I can get it to work that will be great. Do you think you could send me some sample code on how I might access the array in the Document.CustomDocumentProperties, or do you know where I can access that information?  My vb skills are not on that level to where I can fully understand the concept of this w/o having some code to look at.  Thanks again for the help.

  • RELEVANCY SCORE 2.48

    DB:2.48:Additem() Function Missing From List Control pd


    I am running Flex 2.0 builder beta and trying to walk through
    the first of the Flex 1.5 tutorials. The call to the addItem()
    function below is being flagged a compile time error by the
    builder. The error is "Call to possibly undefined method 'addItem'
    ..."

    Has the addItem() method been deprecation in ActionScript
    3.0?

    mx:Script
    ![CDATA[
    public function addToCart():void
    {

    cart.addItem(coffeeCombo.selectedItem.label,coffeeCombo.selectedItem.data);
    }
    ]]
    /mx:Script

    DB:2.48:Additem() Function Missing From List Control pd

    I am running Flex 2.0 builder beta and trying to walk through
    the first of the Flex 1.5 tutorials. The call to the addItem()
    function below is being flagged a compile time error by the
    builder. The error is "Call to possibly undefined method 'addItem'
    ..."

    Has the addItem() method been deprecation in ActionScript
    3.0?

    mx:Script
    ![CDATA[
    public function addToCart():void
    {

    cart.addItem(coffeeCombo.selectedItem.label,coffeeCombo.selectedItem.data);
    }
    ]]
    /mx:Script

  • RELEVANCY SCORE 2.48

    DB:2.48:Clear Choice() At Gui 7a


    Choice ch2=new Choice();
    for (int i=1;i8;i++)
    ch2.addItem(""+i);

    i want to write the code to clear the above Choice(), can you suggest any code to me, thanks

    DB:2.48:Clear Choice() At Gui 7a

    Are you storing the data in an array or vector?
    Array
    ====

    public void clear()
    {
    for(int i =0; i array.size; i++)
    {
    array[i] = "";
    }
    }

    Vector
    =====

    public void clear()
    {
    vector.removeAllElements();
    }

    Hope this helps.

  • RELEVANCY SCORE 2.48

    DB:2.48:Listbox Additem, Index ka


    DB:2.48:Listbox Additem, Index ka

    Ciao
    Elena_Elena,

    grazie per il Tuo feedback.

    Un saluto,

  • RELEVANCY SCORE 2.48

    DB:2.48:Additem() Adds Item To All Jcomboboxes 9f


    I dynamically generate a series of JComboBoxes using a loop.
    inside my loop i test if a certain condition is true, if true i add an item.

    The problem is that when the condition tests true, the item I add is added to all my dynamically generated JComboBoxes.

    Hopefully some fresher eyes can spot my error.

    thanks in advance,

    Pete

    Here's the offending code:
    for(int i = 0; i counter; ++i)
    {

    unitField[i] = new JTextField(5);
    boxWeights[i] = new JComboBox(vecWeightText);
    String tempName = FCProItem.ingredients.getNameOfIngredient();
    lblIngredients[i] = new JLabel(tempName);

    if(FCProItem.ingredientsi].hasConversiontempName,FCProMenuItem.CONVERSION_FILE_PATH_TEST) )
    {
    System.out.println("Add conversion to combo-box for: " + FCProItem.ingredients[i].getNameOfIngredient());
    Vector hold = FCProItem.ingredients[i].getIngredientConversions(tempName);
    for(int z = 0; z hold.size(); z++)
    {
    if(z % 3 == 0)
    {
    boxWeights[i].addItem(hold.elementAt(z));
    }
    }
    }
    .... more code...

    }

    DB:2.48:Additem() Adds Item To All Jcomboboxes 9f

    well, color me silly. I completely spaced that little detail!!
    Everything works fine now,

    Thanks for the heads-up!

    Pete

  • RELEVANCY SCORE 2.48

    DB:2.48:Auto_Open() Enable Combobox1 mk


    Looking to have all of the additems to be displayed and selectable in ComboBox1.
    I can achieve this goal by substituting Auto_Open() by CommandButton_Click().
     
    This is the most recent code:
    Private Sub Auto_Open()
    ...
    'need to Activate and enable the listing of ComboBox1.additem in the combobox window...
          With Worksheets(sheet1).ComboBox1        .Style = fmStyleDropDownList        .AddItem Open App1        .AddItem Open App2        .AddItem Open App3        .AddItem Open App4        .ListIndex = 0      End With
    End Sub
    Sub ComboBox1_Changed()
    ...'handles code
    End Sub

    DB:2.48:Auto_Open() Enable Combobox1 mk

    Looking to have all of the additems to be displayed and selectable in ComboBox1.
    I can achieve this goal by substituting Auto_Open() by CommandButton_Click().
     
    This is the most recent code:
    Private Sub Auto_Open()
    ...
    'need to Activate and enable the listing of ComboBox1.additem in the combobox window...
          With Worksheets(sheet1).ComboBox1        .Style = fmStyleDropDownList        .AddItem Open App1        .AddItem Open App2        .AddItem Open App3        .AddItem Open App4        .ListIndex = 0      End With
    End Sub
    Sub ComboBox1_Changed()
    ...'handles code
    End Sub

  • RELEVANCY SCORE 2.48

    DB:2.48:How To Access Method From One Class Of Another? 79


     
    Hi,I dont understand one thing, I have:
     public partial class Form1 : Form    {        public Form1()        {                       InitializeComponent();        }
    private void button1_Click(object sender, EventArgs e)
    {
    Liststring dirs = XYZGetFilesRecursive(@C:\totalcmd);
    foreach (string p in dirs)
    {

    }

    public void AddItem(string item)        {
            }
    blahblah
    and
     class XYZ    {        public static Liststring GetFilesRecursive(string b)        { }How could I access method AddItem from the first class in the second class? I would need to  call AddItem from class XYZ. Thanks!

    DB:2.48:How To Access Method From One Class Of Another? 79

    Blizna said:
    Folks my problem is an opposite :) Your kind advice is how to access method from second class, but I need it vice versa:public partial class Form1 : Form    {        public Form1()        {                       InitializeComponent();        }    private void LOL    {    }}class XYZ{here I want to call method LOL from the first class}I hope its more clear. I just need to call method  that belongs to form1 class from the instantionized class XYZ.Thank you!

  • RELEVANCY SCORE 2.46

    DB:2.46:Ctrl +C Ctrl+V Ctrl+Z Ctrl+X Is Not Workoing 7d



    Hi i have a HP15-006tu notebook. Ctrl+c ctrl+z ctrl+v ctrl+X is not working WHY????

    DB:2.46:Ctrl +C Ctrl+V Ctrl+Z Ctrl+X Is Not Workoing 7d


    Hello, @Ryaan_shaina

    Welcome to the HP Forums.It seems that you're having issues with some key combinations. I will try to assist you with this. I'm not sure why those aren't working, were they working before??Were any changes or update made to the notebook?This may help you: Notebook Keyboard Troubleshooting (Windows 8).Let me know how it goes.Thank you for posting on the HP Forums.

  • RELEVANCY SCORE 2.46

    DB:2.46:How To Get Values From Checkedlistbox In Dialogbox cc


    I have Form1 which has a dialog box AddItem. I'm getting all of the values from AddItem by setting public vars in AddItem and retrieving the values in Form1 as per the example below. I want to add a CheckedListBox (FilterSet) to AddItem and retrieve the
    values in the same way. How do I do this?
    AddItem:
    public string TaskName { get { return TaskNameValue.Text; } }
    Form1:
    if (addItem.DialogResult == DialogResult.OK)
    {
    string taskname = addItem.TaskName;
    }

    DB:2.46:How To Get Values From Checkedlistbox In Dialogbox cc

    Hi Christian,
    In your AddItem class, make the FilterSet property a Liststring and set it up such that the getter calls a method that goes through your CheckedListBox and adds the Checked items to the List. Something like this:
    private Liststring m_FilterSet;

    public Liststring FilterSet
    {
    get
    {
    this.GetMyCheckedItems();
    return this.m_FilterSet;
    }
    }

    private void GetMyCheckedItems()
    {
    foreach (var item in MyCheckBox.CheckedItems)
    {
    this.m_FilterSet.Add(item.ToString());
    }
    }
    And you'll call it like this in your Form1
    if (addItem.DialogResult == DialogResult.OK)
    {
    Liststring filterset = addItem.FilterSet;
    // rest of your code
    }

    Hope that helps ...
    ~~Bonnie Berent DeWitt [C# MVP]
    http://geek-goddess-bonnie.blogspot.com

  • RELEVANCY SCORE 2.46

    DB:2.46:Additem On Comboboxes Using Control Collection In Excel 2003 mc


    I've added about 50 comboboxes which all have the same possible choices of values.  I can't figure out how to programmatically use AddItem in a for statement (by using their (name) property) much like in Outlook's Controls(Name).AddItem Method.  I can't seem to find the right way. 
    Here is what I've done so far and it can't seem to work, I can't find the Controls Property:
       Dim intCboIndex As Integer   Dim strCboName As String   For intCboIndex = 1 To 50      strCboName = ComboBox intCboIndex               Sheet3.OLEObjects(strCboName).AddItem (Line)      Sheet3.OLEObjects(strCboName).AddItem (Case-to-Case)   Next
    Can please somebody help me?
    Thanks.

  • RELEVANCY SCORE 2.46

    DB:2.46:...Combo.Additem More Then 1 Column sf


    Is there other way then this one, with ; ?
    Me!Combo1.AddItem Column1Field1 ; Column2Field4
    Me!Combo1.AddItem Column1Field2 ; Column2Field5
    Me!Combo1.AddItem Column1Field3 ; Column2Field6

    DB:2.46:...Combo.Additem More Then 1 Column sf

    and also Combobox Wizard fills in .Rowsource with semicolons between columns and between rows independently on regional settings (list separator , or ;). For two columns and two rows:
    a;b;c;d

  • RELEVANCY SCORE 2.46

    DB:2.46:Excel 2007 Macro Multipage Userform c9


    Hello:
    Can you please assist! Please refer to Issues below.Iincluded my VBAcode separated by comments (Tabs Frames).
    I have aMultiPage Userform with 3 tabs that are dependent::

    Tab1: Sheets: 2 ComboBoxes to selectSheets.There is 1 Frame for the 2 ComboBoxes (Frame1).Tab2: Identifier: 2 ComboBoxes to select
    Fields reflected from sheets selected in Tab1.There is a Frame for each ComboBox (Frame2 Frame3).
    Tab3: Fields:1 ListBox to select
    Multiple Fields reflected from a sheet selected in Tab1. There is 1 Frame for the Listbox (Frame4).I have also updated the ControlSource property of each ComboBox ListBox to store the result in a Sheet17.
    Expected Result (Important): For Above Tabs: all dropdownsneed to load simultaneously once Tab1:Sheets are selected.

    ISSUES:Issue 1. I know that I sometimes get the following error: Subscript out of Range (Error 9) -- I have placed an asterisk on the area that errors out below on my code.
    I place "On Error Resume Next" before the Error occurs but the form does not have a chance to initialize in Tab2. The error disappears though.
    Issue 2. I noticed when I click on Sheets Tab1: and select dropdowns forSheet1 Sheet2; Then click Tab2 OR Tab3: The "Fields" from each Sheet1 Sheet2(Tab1) do not load unless I click ok then run Userform10 again. This all needs to happen simultaneously.

    ====================
    VBA CODE:USERFORM10
    Option Explicit

    Private Sub CancelCommandButton2_Click()
    Unload UserForm10
    End Sub
    Private Sub OKCommandButton1_Click()
    CopyToSheet = ComboBox1.Value
    CopyFromSheet = ComboBox2.Value
    CopyToID = ComboBox3.Value
    CopyFromID = ComboBox4.Value
    CopyFromField = ListBox1.Value
    UserForm10.Hide
    End Sub
    Private Sub UserForm_Initialize()
    Dim lastAcol As Long
    Dim I As Integer, j As Integer, k As Integer, First As Integer, Last As Integer
    Dim Temp As String, List As String
    Dim Ctrl As control
    Dim arrCont() As Variant

    '""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
    ' Sheets Tab: Frame1 '
    '""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
    Dim ws As Worksheet


    For Each ws In ActiveWorkbook.Worksheets
    If ws.Visible = xlSheetVisible Then
    Select Case ws.Name
    Case "Sheet17", "TableLink", "Map", "Exceptions", "WSO_Copy", "Client_Copy", "Instructions"
    'Do nothing
    Case Else

    Me.ComboBox1.AddItem ws.Name
    CopyToSheet = ComboBox1.Value

    Me.ComboBox2.AddItem ws.Name
    CopyFromSheet = ComboBox2.Value

    '""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
    ' Identifier Tab: Frame2 '
    '""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
    On Error Resume Next
    ‘The error has 3 asterisks below)
    ***lastAcol = ThisWorkbook.Worksheets(CopyToSheet).Cells(1, Columns.Count).End(xlToLeft).Column

    For I = 1 To lastAcol
    ReDim Preserve arrCont(I)
    arrCont(I) = ThisWorkbook.Worksheets(CopyToSheet).Cells(1, I)
    Next I
    First = LBound(arrCont)
    Last = UBound(arrCont)
    For k = First To Last - 1
    For j = k + 1 To Last
    If arrCont(k) arrCont(j) Then
    Temp = arrCont(j)
    arrCont(j) = arrCont(k)
    arrCont(k) = Temp
    End If
    Next j
    Next k
    For Each Ctrl In Frame2.Controls
    For k = 1 To UBound(arrCont)
    If TypeOf Ctrl Is MSForms.ComboBox Then Ctrl.AddItem arrCont(k)
    Next
    Next Ctrl

    CopyToID = ComboBox3.Value


    '""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
    ' Identifier Tab: Frame3 '
    '""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
    lastAcol = ThisWorkbook.Worksheets("WSO").Cells(1, Columns.Count).End(xlToLeft).Column
    For I = 1 To lastAcol
    ReDim Preserve arrCont(I)
    arrCont(I) = ThisWorkbook.Worksheets("WSO").Cells(1, I)
    Next I
    First = LBound(arrCont)
    Last = UBound(arrCont)
    For k = First To Last - 1
    For j = k + 1 To Last
    If arrCont(k) arrCont(j) Then
    Temp = arrCont(j)
    arrCont(j) = arrCont(k)
    arrCont(k) = Temp
    End If
    Next j
    Next k
    For Each Ctrl In Frame3.Controls
    For k = 1 To UBound(arrCont)
    If TypeOf Ctrl Is MSForms.ComboBox Then Ctrl.AddItem arrCont(k)
    Next
    Next Ctrl

    CopyFromID = ComboBox4.Value

    '""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
    ' Fields Tab: Frame4 '
    '""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

    lastAcol = ThisWorkbook.Worksheets(CopyFromSheet).Cells(1, Columns.Count).End(xlToLeft).Column
    For I = 1 To lastAcol
    ReDim Preserve arrCont(I)
    arrCont(I) = ThisWorkbook.Worksheets(CopyFromSheet).Cells(1, I)
    Next I
    First = LBound(arrCont)
    Last = UBound(arrCont)
    For k = First To Last - 1
    For j = k + 1 To Last
    If arrCont(k) arrCont(j) Then
    Temp = arrCont(j)
    arrCont(j) = arrCont(k)
    arrCont(k) = Temp
    End If
    Next j
    Next k
    For Each Ctrl In Frame4.Controls
    For k = 1 To UBound(arrCont)
    If TypeOf Ctrl Is MSForms.ListBox Then Ctrl.AddItem arrCont(k)
    Next
    Next Ctrl
    CopyFromField = ListBox1.Value

    End Select

    End If
    Next

    End Sub

    VBA CODE: MODULE
    (DECLARATIONS):
    Option Explicit
    Public CopyToSheet As String, CopyFromSheet As String
    Public CopyToID As String, CopyFromID As String
    Public CopyFromField As String
    MergeSheets MODULE:
    Sub MergeSheets()

    UserForm10.Show vbModeless
    End Sub

  • RELEVANCY SCORE 2.45

    DB:2.45:What Does Additem() Do? d1


    got this code snippet from the Java tutorial.

    import java.awt.Event;
    . . .
    public boolean mouseDown(Event event, int x, int y) {
    addItem("click!... ");
    return true;
    }

    what does the addItem method do? and what object (or class) is calling it here?

    DB:2.45:What Does Additem() Do? d1

    just located the complete source code. you were right. thnx!

  • RELEVANCY SCORE 2.45

    DB:2.45:How To Create Two Columns Lookup Combobox In Excel Vba Userform 83


    Can you please let me know how I can create a Two columns Look up combobox in Excel VBA UserForm? I am looking tocreatesome thing like this:

    I know we can add Items to combobox using a method like this:
    PrivateSubUserForm_Initialize()
    WithMe.ComboBox1
    .AddItem 215
    .AddItem 316
    .AddItem 485
    EndWith
    EndSub
    but I need to generate a associated value with 215,316,485 and so on valyes like hammer,...

    DB:2.45:How To Create Two Columns Lookup Combobox In Excel Vba Userform 83

    O make like this one:

    code:
    Private Sub UserForm_Initialize()
    Call kolumny(ComboBox1, pozycja1, -podpowiedz do pierwszeo wiersza)
    Call kolumny(ComboBox1, pozycja2, -inna podpowiedz)
    Call kolumny(ComboBox1, pozycja3, -coś tam nastepnego)
    With ComboBox1
    .ColumnWidths = 43 pt;80 pt
    .ListIndex = 0
    End With
    End Sub

    Sub kolumny(combo As Object, pozycja$, Optional podspowiedz$)
    With combo
    .ColumnCount = 2
    .AddItem
    .Column(0, .ListCount - 1) = pozycja
    .Column(1, .ListCount - 1) = podspowiedz
    End With
    End Sub

    Oskar Shon, Office System
    MVP
    Press if Helpful; Answer when a problem solved

  • RELEVANCY SCORE 2.45

    DB:2.45:Settooltiptext In A Jcombobox k9


    ex:
    JComboBox Scombo31 = new JComboBox();
    Scombo31.addItem("S"); Scombo31.addItem("P");
    Scombo31.setToolTipText("S=steel P=paper");

    the addItem is OK but the ToolTipText don't appear.

    DB:2.45:Settooltiptext In A Jcombobox k9

    JTextField textfield83 = new JTextField(" ",1);
    textfield83.setToolTipText("AAAA-MM-DD");
    System.out.println("ToolTip10"+ textfield83.getToolTipText().toString() ); //To see if it's assign

    Works well, there

    Scombo21.addItem("Y"); Scombo21.addItem("N");
    Scombo21.setToolTipText("Y=RFP N=No");
    System.out.println("ToolTip11"+ Scombo21.getToolTipText().toString() ); //To see if it's assign

    Not works,
    .addItem ok
    ToolTiptext not appear
    System.out. ... ok

  • RELEVANCY SCORE 2.43

    DB:2.43:Netscape 6.2.2 On Macintosh Can't Display Java.Awt.Choice Correctly px


    I created a very simple applet which has 3 choice box(java.awt.Choice). When applet runs in netscape 6.2.2 on Macintosh (OS 8.6), the list in each choice box is same as first list. but in IE and on Windows(IE or Netscape), it works fine. any idea about this?

    Thanks for your help!

    this is the code:

    ***********
    import java.awt.*;

    public class MacTest extends java.applet.Applet {

    private Choice box1,box2,box3;
    private Panel p;

    public MacTest(){
    p=new Panel(new GridLayout(3,1,0,0));
    box1=new Choice();
    box2=new Choice();
    box3=new Choice();
    p.add(box1);
    p.add(box2);
    p.add(box3);

    }
    public void init () {
    setLayout(null);

    add(p);
    p.setBounds(10,15,180,120);
    box1.addItem("List1-1");
    box1.addItem("List1-2");

    box2.addItem("OtherList2-1");
    box2.addItem("OtherList2-2");
    box2.addItem("OtherList2-3");

    box3.addItem("OtherList3-1");
    box3.addItem("OtherList3-2");
    box3.addItem("OtherList3-3");
    box3.addItem("OtherList3-4");
    }

    }
    **********

    DB:2.43:Netscape 6.2.2 On Macintosh Can't Display Java.Awt.Choice Correctly px

    So, you mean there is no way to make it displaying correctly on Mac, if I don't write special code for Mac?

  • RELEVANCY SCORE 2.42

    DB:2.42:Outlook Toolbar Cannot Create Multiple Instance s1


    Hi, I created a toolbar in the mail item inspector in outlook. However, whenever I click on new mail inspector, the old toolbar in the first inspector will be removed and will appear in the second inspector. Also the loading of the toolbar is slow (loads only after all items are loaded). I want each toolbar to be created as its own instances. Below is my code
    Public Class ThisAddIn

    Dim activeItems As Outlook.Inspectors
    Dim mailItemInspector As Outlook.MailItem

    WithEvents inspectors As Outlook.Inspectors

    Private Sub ThisAddIn_Startup(ByVal sender As Object, _
    ByVal e As System.EventArgs) Handles Me.Startup
    activeItems = Application.Inspectors
    inspectors = CType(Application.Inspectors, Outlook.Inspectors)

    'AddHandler selectInspectors.NewInspector, AddressOf Me.NewInspector_Event
    End Sub

    Private Sub ThisAddIn_Shutdown(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Shutdown
    'clear dim
    activeItems = Nothing
    mailItemInspector = Nothing
    End Sub

    Private Sub NewInspector_Event(ByVal new_Inspector As Outlook.Inspector) Handles inspectors.NewInspector
    'new_Inspector.Activate()

    'check if inspector is the mail composer
    If TypeOf new_Inspector.CurrentItem Is Outlook.MailItem Then
    ' Call Me.AddToolbarInComposer(new_Inspector)
    Dim mailItem As MailItem
    mailItem = New MailItem
    mailItem.Initialize(new_Inspector.CurrentItem)
    End If

    End Sub

    End Class


    'This Delegate is used to inform the Collections that a Item has closed
    'so we can release it from Memory
    Public Delegate Sub CloseEventHandler(ByVal id As String)

    Public Class MailItem
    ' the Outlook Item, the data
    WithEvents _Item As Outlook.MailItem
    WithEvents _Inspector As Outlook.Inspector

    ' Create the command bar variables at the class level.
    WithEvents cboClassification As Office.CommandBarComboBox

    'we raise an event when we are closed
    Public Event Close(ByVal id As String)

    Dim _ID As String

    'our unique id
    Public ReadOnly Property ID() As String
    Get
    ID = _ID
    End Get
    End Property

    Public Sub Initialize(ByVal item As Object)
    _Item = CType(item, Outlook.MailItem)
    _ID = _Item.GetHashCode.ToString
    End Sub

    'event is raised when item has opened
    'here we have the Inspector ready for use
    Private Sub _Item_ItemEvents_Event_Open(ByRef Cancel As Boolean) Handles _Item.Open
    _Inspector = CType(_Item.GetInspector, Outlook.Inspector)
    'create the toolbar
    '_Inspector = CType(_Item.GetInspector, Outlook.Inspector)
    AddToolbarInComposer()

    'remove MS Word menu bar
    CheckIfMenuBarExists(DocClass)
    End Sub

    'event comes when the Inspector is closed
    'Private Sub _Inspector_InspectorEvents_10_Event_Close() Handles _Inspector.InspectorEvents_10_Event_Close
    ' _Inspector.CommandBars(Document Classification).Delete()
    ' _Inspector = Nothing
    ' RaiseEvent Close(_ID)
    'End Sub

    Private Sub AddToolbarInComposer()

    'Toolbar items
    'Dim cmdBars As Office.CommandBars = _Inspector.CommandBars
    Dim toolBar As Office.CommandBar = Nothing
    Dim comboBox_1 As Office.CommandBarComboBox = Nothing

    'check if toolbar already exists
    For Each bar As Office.CommandBar In _Inspector.CommandBars
    If bar.Name = CToolBar Then
    bar.Delete()
    End If
    Next

    'add toolbar
    If toolBar Is Nothing Then
    toolBar = _Inspector.CommandBars.Add(CToolBar, Office.MsoBarPosition.msoBarTop, False, True)
    End If
    Try
    comboBox_1 = CType(toolBar.Controls.Add(Microsoft.Office.Core.MsoControlType.msoControlComboBox), _
    Office.CommandBarComboBox)
    With comboBox_1
    .Style = Office.MsoComboStyle.msoComboLabel
    .Caption = Class
    .Tag = _ID
    .AddItem(Item1, 1)
    .AddItem(Item2, 2)
    .AddItem(Item3, 3)
    .Width = 250
    End With
    If Me.cboClassification Is Nothing Then
    Me.cboClassification = comboBox_1
    AddHandler cboClassification.Change, AddressOf CBOClassificationChange
    End If

    toolBar.Visible = True

    Catch ex As Exception
    MessageBox.Show(ex.Message)
    End Try

    End Sub

    Private Sub CBOClassificationChange(ByVal ctrl As Office.CommandBarComboBox)

    'append text to mail message
    Dim msg As String =

    'append new text after body
    'msg = ctrl.Text

    'msg = mailItemInspector.Body
    If _Inspector.IsWordMail = True Then

    'check if combo box has valid selection
    If cboClassification.Text Then
    MsgBox(We have something)
    End If

    End If

    End Sub

    ' If the menu already exists, remove it.
    Private Sub CheckIfMenuBarExists(ByVal menuTag As String)
    Try
    Dim foundMenu As Office.CommandBarPopup = _
    _Inspector.CommandBars.ActiveMenuBar.FindControl( _
    Office.MsoControlType.msoControlPopup, System.Type.Missing, menuTag, True, True)

    If foundMenu IsNot Nothing Then
    foundMenu.Delete(True)
    End If

    Catch ex As Exception
    MessageBox.Show(ex.Message)
    End Try
    End Sub

    'capture the send event
    Private Sub Application_ItemSend(ByVal Item As Object, ByRef Cancel As Boolean)

    If Item.class = Outlook.OlObjectClass.olMail Then

    'check if classification combo box is selected
    If cboClassification.Text = Then
    Cancel = True
    MessageBox.Show(Please select classification, Email Classification, MessageBoxButtons.OK, MessageBoxIcon.Warning)
    End If

    End If

    End Sub
    End Class

    I am not lost. Please advice.

    DB:2.42:Outlook Toolbar Cannot Create Multiple Instance s1

    Hi,About add a command bar to Inspector, we can achieve this by using a InspectorWrapper template. You could refer to a same issue. Programmatically add a button or toolbar to a MailItem: http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/42707d07-b098-47e9-a4c5-e38ba51a5015/There are also same resources in the following linking.Use a toolbar in multiple Outlook 2003 inspectors with VSTO: http://kjellsj.blogspot.com/2005/08/use-toolbar-in-multiple-outlook-2003.html.Multiple Inspector Instances Add-in: http://www.eggheadcafe.com/aspnet_answers/officedevelopercomadd_ins/May2006/post26872027.asp.There is a good resource about an updated InspectorWrapper/ExplorerWrapper template by Helmut Obertanner: http://www.outlookcode.com/codedetail.aspx?id=1734.Hope this helps,
    Bessie

    Please remember to mark the replies as answers if they help and unmark them if they provide no help. Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.

  • RELEVANCY SCORE 2.42

    DB:2.42:Additem() Function Simply Won't Execute? cz


    if (inventoryArray [j] = null)
    {
    inventoryArray [j] = i;
    break;
    }



    should be

    if (inventoryArray [j] == null)

    DB:2.42:Additem() Function Simply Won't Execute? cz

    if (inventoryArray [j] = null)
    {
    inventoryArray [j] = i;
    break;
    }



    should be

    if (inventoryArray [j] == null)

  • RELEVANCY SCORE 2.41

    DB:2.41:Ms Word 2010 - Convert To Pdf - Ctrl F Find A Word Doesnt Work In The Converted Pdf File. s3


    Hello. I had earlier posted this issue, but answer wasn't quite solving this problem.

    I guess my question was not clear enough, so I'm re-uploading this issue with visual aids.

    1) make a .txt file in MS word.

    2) Save as PDF

    3) Open thePDF and try to find a word through CTRL+F (Doesn't work)

    I hope thiswould be easy enough to understand.

    As it's seen, After converting .txt file into .pdf file through 'MS 2010Word' and opening the .pdf filethrough 'Adobe Reader', CTRL + F doesn't work.

    Some ofyoucan think thismight becaused by 'Adobe Reader',but this issueoccurs only in MS 2010Word.

    It means it does work when we use MS 2007 Word for conversion with same 'Adobe Reader'. (CTRL +F works fine)

    Yoursupport would be highly appreciated.

    Thank you

    DB:2.41:Ms Word 2010 - Convert To Pdf - Ctrl F Find A Word Doesnt Work In The Converted Pdf File. s3

    Following your instructions I cannot recreate this problem in Word 2010 with either Adobe Reader or Adobe Acrobat.

    What PDF options are you using? It may have something to do with the language used in your system and the possibility of bit mapped fonts affecting the output. Change the option to PDF/A and see if you fare any better.

  • RELEVANCY SCORE 2.41

    DB:2.41:Mgb[I].Ivar=I cz


    This is the code for the array of comboboxes. mgBW[this.ivar]=currentlySelectedX.label is not functioning...var mgB:Array = [ab1, ab2, ab3]; // combo boxesvar mgBW:Array = [_root.xy1.text, _root.xy2.text, _root.xy3.text]; // text fieldsfor (i=0; imgB.length; i++) { mgB[i].addItem("Please Select");mgB[i].addItem({data:1, label:"Item"});mgB[i].addItem({data:2, label:"Quantity"});}for (i=0; imgB.length; i++) { mgB[i].ivar=i; mgB[i].addEventListener("change", cbListenerX); var cbListenerX:Object = new Object(); cbListenerX.change = function(evt_objX:Object):Void{ var currentlySelectedX:Object = evt_objX.target.selectedItem; mgBW[this.ivar]=currentlySelectedX.label;//trace (mgBW[this.ivar]);}};

  • RELEVANCY SCORE 2.41

    DB:2.41:Combo Box Coding pc


    Hi

    I am using the following code on a combo box:
    Private Sub cboClass_Enter()

    Me!cboClass.DropDown
    cboClass.Clear

    If cboService.Value = "Tracked" Then
    With cboClass
    .AddItem "Contract"
    .AddItem "Intl Signed For EU"
    .AddItem "Intl Signed For ROW"
    End With
    Else
    With cboClass
    .AddItem "First"
    .AddItem "Second"
    .AddItem "EU"
    .AddItem "ROW"
    .AddItem "Special Delivery"
    End With
    End If

    End Sub

    I am having problems in that a) when i tab into the field, the drop down is not displaying automatically and b0 if I click on the down arrow button on the box, I and just seeing one row at a time, not the complete list. In the properties List Rows it is
    showing as 8

    Any help much appreciated

    DB:2.41:Combo Box Coding pc

    There is no work around that I know about.

  • RELEVANCY SCORE 2.40

    DB:2.40:Re: Simple Jdialog Constructor Doesn't Work 97


    "He's trying to instantiate AddItem, not JDialog. "

    But AddItem extends JDialog, shouldn't it inherit all JDialog constructors?

    DB:2.40:Re: Simple Jdialog Constructor Doesn't Work 97

    I got it now :)
    JDialog is just a member of AddItem class, which extends nothing.
    As for passing Auction to JDialog, I casted it :)AddItem ai = new AddItem(userId, (Frame)this);end everything works fine.
    Thank you all for help.

  • RELEVANCY SCORE 2.40

    DB:2.40:How To Iterate All The Items In A Treeview In Wpf 3z



    I have a treeview and this is my xaml code for this:
    TreeView x:Name=tree Margin=0 SelectedItemChanged=tree_SelectedItemChanged
    TreeViewItem Name=Category Header=Category Tag=Category/
    /TreeView

    I fill this treeview with this code.
    So far this my code in addItem is working ...
    void addItem(String newItem);
    addItem(Wallpaper\\Animals\\Lions\\);
    addItem(Wallpaper\\Animals\\Tigers\\)
    addItem(Photos\\Family\\Speacial Occassion\\Birthday\\)
    The output of this will be
    Category
    Photos
    Family
    Speacial Occasion
    Birthday
    Wallpaper
    Animals
    Lions
    Tiger

    My problem is how to iterate this items in my treeview.
    The returned value would be a single array of string.
    This items will be stored in a text file, so that when
    I open the text file i could create my treeview.

    DB:2.40:How To Iterate All The Items In A Treeview In Wpf 3z

    Chrigas,
    Thanks for the reply. I have already a working code on addItem, anyway I will also try that code. On getItem, I will try this code. Sorry I haven't replied right away because I offline for 2 days.

    mjra

  • RELEVANCY SCORE 2.40

    DB:2.40:Signed Applet Error : Java.Security.Accesscontrolexception cd


    I have a signed applet that used the FtpBean package to read a file from the users computer and FTP it to my server.

    I am getting the following error:

    java.security.AccessControlException: access denied (java.io.FilePermission)

    Before I switched to using FtpBean my applet worked fine but now it can't seem to read files. It works fine from applet viewer.
    Any help would be greatly appreciated, thanks.

    - - - FtpBean Link - - -

    http://www.geocities.com/SiliconValley/Code/9129/javabean/ftpbean/

    - - - My Applet - - - -

    import java.applet.*;
    import ftp.*;

    public class filexfer extends Applet
    {

    public String serverName, userName, userPass, localFile, remoteFile, ftpStatus;
    FtpBean ftp;
    StringBuffer buffer;

    // Get Applet Parameters and Setup Other Vars
    public void init()
    {
    ftp = new FtpBean();
    ftpStatus = "starting";
    buffer = new StringBuffer();
    addItem("Starting upload engine");
    serverName = getParameter("server");
    userName = getParameter("username");
    userPass = getParameter("password");
    localFile = getParameter("localfile");
    remoteFile = getParameter("remotefile");
    addItem("Uploading file "+localFile);
    }

    // Start File Transfer
    public void start ()
    {

    // Try To Establish Connection
    try
    {
    ftp.ftpConnect(serverName, userName, userPass, "wonderfile");
    String ftpOk = ftp.getSystemType();

    // If Connection Is Ok Try To Send File
    if(ftpOk!=null)
    {

    ftpStatus = "starting transfer";
    addItem("starting transfer");

    try
    {
    ftp.putBinaryFile(localFile, remoteFile);
    ftp.close();
    ftpStatus = "complete";
    addItem("FTP transfer complete");
    }
    catch(Exception e)
    {
    ftpStatus = "failed";
    addItem("FTP transfer failed");
    System.out.println(e);
    ftp.close();
    }
    }
    }
    catch (Exception e)
    {
    ftpStatus = "failed";
    addItem("Could not contact ftp server");
    System.out.println(e);
    }

    }

    public void stop ()
    {
    }

    public String uploadStatus()
    {
    return ftpStatus;
    }

    void addItem(String newMsg)
    {
    System.out.println(newMsg);
    buffer.append(newMsg);
    }

    }

    DB:2.40:Signed Applet Error : Java.Security.Accesscontrolexception cd

    I was compiling and jaring my files different than your example. This time I did
    exactly what you did only with my code and it works.
    It still does not work in the browser but I am much further along.

    Now I am getting timeout errors or no route to host errors both in the browser and in applet viewer. However, it has actually worked several times in applet viewer but not once from the browser. When I use FileZilla FTP client I never have any problems using the same server / user / pass.

    Here is how I ran it (with a stack trace):

    Trace level set to 4: basic, net, security, ext ... completed.
    Registered modality listener
    Referencing classloader: sun.plugin.ClassLoaderInfo@1bb5c09, refcount=1
    Loading applet ...
    Initializing applet ...
    Starting applet ...
    Connecting http://206.191.224.59/includes/filexfer.jar with no proxy
    Connecting http://206.191.224.59/includes/filexfer.jar with cookie "CFID=1501; CFTOKEN=31606988; JSESSIONID=2230672c9f5c5$C3$9D$"
    Loading http://206.191.224.59/includes/filexfer.jar from cache
    Certificates for http://206.191.224.59/includes/filexfer.jar is read from JAR cache
    Loading Root CA certificates from C:\PROGRA~1\Java\J2RE14~1.2_0\lib\security\cacerts
    Loaded Root CA certificates from C:\PROGRA~1\Java\J2RE14~1.2_0\lib\security\cacerts
    Loading JPI certificates from C:\Documents and Settings\Vincent\Application Data\Sun\Java\Deployment\security\deployment.certs
    Loaded JPI certificates from C:\Documents and Settings\Vincent\Application Data\Sun\Java\Deployment\security\deployment.certs
    Loading certificates from JPI session certificate store
    Loaded certificates from JPI session certificate store
    Checking if certificate is in JPI permanent certificate store
    Checking if certificate is in JPI session certificate store
    Obtain key store object of Root CA certificate store
    Checking if certificate is in Root CA certificate store
    Check if certificate can be verified using certificates in Root CA certificate store

    Certificate to be verified:

    ********** SKIPING ALL THE CERT JUNK ***************************

    Certificate has failed the verification with the Root CA certificates
    Modality pushed
    Modality popped
    User selected: 0
    User has granted the priviledges to the code for this session only
    Adding certificate in JPI session certificate store
    Added certificate in JPI session certificate store
    Saving certificates in JPI session certificate store
    Saved certificates in JPI session certificate store
    Connecting http://206.191.224.59/includes/ftpbean.jar with no proxy
    Connecting http://206.191.224.59/includes/ftpbean.jar with cookie "CFID=1501; CFTOKEN=31606988; JSESSIONID=2230672c9f5c5$C3$9D$"
    Loading http://206.191.224.59/includes/ftpbean.jar from cache
    Certificates for http://206.191.224.59/includes/ftpbean.jar is read from JAR cache
    Loading Root CA certificates from C:\PROGRA~1\Java\J2RE14~1.2_0\lib\security\cacerts
    Loaded Root CA certificates from C:\PROGRA~1\Java\J2RE14~1.2_0\lib\security\cacerts
    Loading JPI certificates from C:\Documents and Settings\Vincent\Application Data\Sun\Java\Deployment\security\deployment.certs
    Loaded JPI certificates from C:\Documents and Settings\Vincent\Application Data\Sun\Java\Deployment\security\deployment.certs
    Loading certificates from JPI session certificate store
    Loaded certificates from JPI session certificate store
    Checking if certificate is in JPI permanent certificate store
    Checking if certificate is in JPI session certificate store
    Starting upload engine
    Uploading file E:/temp/ActivEdit 4.zip
    starting transfer
    FTP transfer failed
    java.net.NoRouteToHostException: No route to host: connect

    Dump thread stack ...
    ----------------------------------------------------
    Full thread dump Java HotSpot(TM) Client VM (1.4.2_04-b05 mixed mode):

    "AWT-EventQueue-2" prio=4 tid=0x05fbf910 nid=0x13b0 in Object.wait() [330f000..330fd88]
    at java.lang.Object.wait(Native Method)
    - waiting on 0x108c14a8 (a java.awt.EventQueue)
    at java.lang.Object.wait(Unknown Source)
    at java.awt.EventQueue.getNextEvent(Unknown Source)
    - locked 0x108c14a8 (a java.awt.EventQueue)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

    "thread applet-filexfer.class" prio=4 tid=0x038a13e8 nid=0xfc0 in Object.wait() [797f000..797fd88]
    at java.lang.Object.wait(Native Method)
    - waiting on 0x108c2060 (a sun.plugin.AppletViewer)
    at java.lang.Object.wait(Unknown Source)
    at sun.applet.AppletPanel.getNextEvent(Unknown Source)
    - locked 0x108c2060 (a sun.plugin.AppletViewer)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

    "Java2D Disposer" daemon prio=10 tid=0x05f6b378 nid=0x1164 in Object.wait() [6c3f000..6c3fd88]
    at java.lang.Object.wait(Native Method)
    - waiting on 0x10889818 (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(Unknown Source)
    - locked 0x10889818 (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(Unknown Source)
    at sun.java2d.Disposer.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

    "AWT-EventQueue-0" prio=7 tid=0x05f69c68 nid=0x800 in Object.wait() [6b3f000..6b3fd88]
    at java.lang.Object.wait(Native Method)
    - waiting on 0x10865300 (a java.awt.EventQueue)
    at java.lang.Object.wait(Unknown Source)
    at java.awt.EventQueue.getNextEvent(Unknown Source)
    - locked 0x10865300 (a java.awt.EventQueue)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

    "TimerQueue" daemon prio=5 tid=0x05f61758 nid=0x46c in Object.wait() [6a3f000..6a3fd88]
    at java.lang.Object.wait(Native Method)
    - waiting on 0x108898e8 (a javax.swing.TimerQueue)
    at javax.swing.TimerQueue.run(Unknown Source)
    - locked 0x108898e8 (a javax.swing.TimerQueue)
    at java.lang.Thread.run(Unknown Source)

    "AWT-EventQueue-1" prio=7 tid=0x05f231a0 nid=0x13d0 waiting on condition [693f000..693fd88]
    at sun.plugin.JavaRunTime.dumpAllStacks(Native Method)
    at sun.plugin.ConsoleWindow$1.actionPerformed(Unknown Source)
    at javax.swing.JComponent$ActionStandin.actionPerformed(Unknown Source)
    at javax.swing.SwingUtilities.notifyAction(Unknown Source)
    at javax.swing.JComponent.processKeyBinding(Unknown Source)
    at javax.swing.KeyboardManager.fireBinding(Unknown Source)
    at javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)
    at javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown Source)
    at javax.swing.JComponent.processKeyBindings(Unknown Source)
    at javax.swing.JComponent.processKeyEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

    "Cache Cleanup Thread" prio=4 tid=0x05f13360 nid=0x107c in Object.wait() [673f000..673fd88]
    at java.lang.Object.wait(Native Method)
    - waiting on 0x10868580 (a sun.plugin.cache.CleanupThread)
    at sun.plugin.cache.CleanupThread.run(Unknown Source)
    - locked 0x10868580 (a sun.plugin.cache.CleanupThread)

    "Main Console Writer" prio=7 tid=0x05f0d700 nid=0x1254 in Object.wait() [663f000..663fd88]
    at java.lang.Object.wait(Native Method)
    - waiting on 0x10868628 (a java.util.LinkedList)
    at java.lang.Object.wait(Unknown Source)
    at sun.plugin.MainConsoleWriter.run(Unknown Source)
    - locked 0x10868628 (a java.util.LinkedList)
    at java.lang.Thread.run(Unknown Source)

    "AWT-Windows" daemon prio=7 tid=0x05ef0208 nid=0xadc runnable [643f000..643fd88]
    at sun.awt.windows.WToolkit.eventLoop(Native Method)
    at sun.awt.windows.WToolkit.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

    "AWT-Shutdown" prio=5 tid=0x05eeffb0 nid=0x1448 in Object.wait() [633f000..633fd88]
    at java.lang.Object.wait(Native Method)
    - waiting on 0x10841608 (a java.lang.Object)
    at java.lang.Object.wait(Unknown Source)
    at sun.awt.AWTAutoShutdown.run(Unknown Source)
    - locked 0x10841608 (a java.lang.Object)
    at java.lang.Thread.run(Unknown Source)

    "Signal Dispatcher" daemon prio=10 tid=0x03871380 nid=0x1174 runnable [0..0]

    "Finalizer" daemon prio=9 tid=0x03832538 nid=0x318 in Object.wait() [5aaf000..5aafd88]
    at java.lang.Object.wait(Native Method)
    - waiting on 0x10841708 (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(Unknown Source)
    - locked 0x10841708 (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(Unknown Source)
    at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)

    "Reference Handler" daemon prio=10 tid=0x038318c8 nid=0xd9c in Object.wait() [1a37f000..1a37fd88]
    at java.lang.Object.wait(Native Method)
    - waiting on 0x10841770 (a java.lang.ref.Reference$Lock)
    at java.lang.Object.wait(Unknown Source)
    at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
    - locked 0x10841770 (a java.lang.ref.Reference$Lock)

    "main" prio=5 tid=0x002ffdf0 nid=0x1244 runnable [0..12e84c]

    "VM Thread" prio=5 tid=0x0386f2b8 nid=0x7cc runnable

    "VM Periodic Task Thread" prio=10 tid=0x03873aa0 nid=0xec0 waiting on condition
    "Suspend Checker Thread" prio=10 tid=0x03870820 nid=0x9a4 runnable
    ----------------------------------------------------
    Done.

  • RELEVANCY SCORE 2.40

    DB:2.40:Keyboard Shortcuts (Ctrl+Key) Are Not Working, Other Issues 71


    I can only guess all of these are related somehow. I downloaded and installed Expression Web for a trial.  I opened an existing FrontPage site and I was pleasantly surprised that it opened with some conversion.  I quickly noticed that keyboard shortcuts like Ctrl+F did not work.  Depending on which pane I was in I either received a you can't do that beep or nothing at all.  I browsed the menu for other (non-greyed out) shortcuts to try.  Alt+F1 (view folder list), Ctrl+O (open), etc did nothing.  They work fine if you select them from the menu however. Also, if I browse the folder list and click on any file (regardless of type) nothing happens.  I right click and selct open and nothing happens. When I go to Edit-Find and try and paste (Ctrl+V) a string to seach for, nothing happens.  If I right click, paste is greyed out.  If I type in text and highlight it, the cut and copy are greyed out also. Any idea what is wrong or how to fix it? There may be many other issues, but since I cannot do much it is hard to say.

    DB:2.40:Keyboard Shortcuts (Ctrl+Key) Are Not Working, Other Issues 71

    Heh, heh... OT for EW, but a bit germane, anyway...While working on a project this morning I discovered something unusual. Many of the apps in the Adobe CS4 Design Premium suite (and other apps, as well) use Ctrl-0 for View Full Page, and Ctrl-# for other sizing options. So does InDesign, but unlike the others, it doesn't recognize the bloody numeric keypad! I must've pounded that key combo a half-dozen times, to no effect, before it occurred to me to try Ctrl-(top row) zero. Bingo. Tried the others, and yep, that's the way it works, or rather, doesn't work. One can only wonder...  ;-)cheers,scott

  • RELEVANCY SCORE 2.40

    DB:2.40:Ctrl.Additem Conversion? kz


    I am trying to convert a VB6 program to compact framework. In VB6 you could pass a control to a routine and use the AddItem method. The routine in question will either receive a combobox or a listbox. Is there a way to do this in VB.NET? Thanks!

    DB:2.40:Ctrl.Additem Conversion? kz

    In VB.Net its items.add method to add items to the listbox or combobox
    Example
    Public Class Form1    Public Sub ButtonClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click        AddItemsInListorCombobox(ListBox1)    End Sub       Sub AddItemsInListorCombobox(ByRef x As Control)        If TypeOf (x) Is ListBox Then            CType(x, ListBox).Items.Clear()            CType(x, ListBox).Items.Add(Item1)            CType(x, ListBox).Items.Add(Item2)            CType(x, ListBox).Items.Add(Item3)        ElseIf TypeOf (x) Is ComboBox Then            CType(x, ComboBox).Items.Clear()            CType(x, ComboBox).Items.Add(Item1)            CType(x, ComboBox).Items.Add(Item2)            CType(x, ComboBox).Items.Add(Item3)        End If    End SubEnd Class

  • RELEVANCY SCORE 2.40

    DB:2.40:Converting Code c1


    Private Sub WebBrowser1_DocumentComplete (ByVal pDisp As Object, URL As Variant) Combo1.Text = URL Form1.Caption = WebBrowser1.LocationName Combo1.AddItem URL End Sub 

    DB:2.40:Converting Code c1

    Thankyou so much! This actually worked! I have been all over the internet looking for this! Thanks again.

  • RELEVANCY SCORE 2.40

    DB:2.40:Objeto Obrigatrio? ff


    Tenho o seguinte código:
    Private Sub CommandButton1_Click()
    OrdenarCombo (ComboBox1)
    End Sub

    Private Sub UserForm_Initialize()

    ComboBox1.AddItem (D)
    ComboBox1.AddItem (C)
    ComboBox1.AddItem (B)
    ComboBox1.AddItem (A)

    End Sub

    Public Sub OrdenarCombo(Combo As ComboBox)
    Dim contA As Integer
    Dim contP As Integer
    Dim menor As String
    Dim Elem As Integer

    Elem = Combo.ListCount
    For contA = 0 To Elem - 2
    For contP = contA 1 To Elem - 1
    If Combo.List(contA) Combo.List(contP) Then
    menor = Combo.List(contP)
    Combo.List(contP) = Combo.List(contA)
    Combo.List(contA) = menor
    End If
    Next contP
    Next contA
    End Sub

    Ao clicar no botão do formulário com a combobox, dá o erro objeto é obrigatório, referente à linha:
    OrdenarCombo (ComboBox1)

    DB:2.40:Objeto Obrigatrio? ff

    Remova os parênteses.
    Quando você usa o parênteses, você passa à função a propriedade padrão do objeto como parâmetro (caso tenha), que no caso do objeto ComboBox, é a propriedade Text (uma String).Felipe Costa Gualberto - http://www.ambienteoffice.com.br

  • RELEVANCY SCORE 2.40

    DB:2.40:Quantity Conversion pc



    What is Quantity conversion? What r different qty conversion types?

    DB:2.40:Quantity Conversion pc


    Hi,

    Refer following link;

    [Quantity Conversion Types|http://help.sap.com/saphelp_nw70/helpdata/EN/1c/1b5d427609c153e10000000a1550b0/content.htm]

  • RELEVANCY SCORE 2.40

    DB:2.40:Create A Form In Word Where The User Doesnt Get The Security Warning 3m


    I created a form in Word that needs to be sent to external customers. It has some text boxes, check boxes and combo boxes. We are getting complaints from the users that they either don't see or can't deal with answering the question about enabling
    the Active X controls. How do I create a form that they can use without having to deal with the security issue? Here's what the current code is behind the form.
    Private Sub ComboBox1_Change()

    End Sub

    Private Sub ComboBox2_Change()

    End Sub

    Private Sub Document_Open()

    With Me.ComboBox1
    .AddItem .edi
    .AddItem EDI no extension
    .AddItem Cxml/.xml
    .AddItem .csv
    .AddItem .txt
    .AddItem .xls
    .AddItem .xlsx
    End With

    With Me.ComboBox2
    .AddItem .edi
    .AddItem EDI no extension
    .AddItem Cxml/.xml
    .AddItem .csv
    .AddItem .txt
    .AddItem .xls
    .AddItem .xlsx
    End With
    With Me.ComboBox3
    .AddItem .edi
    .AddItem EDI no extension
    .AddItem Cxml/.xml
    .AddItem .csv
    .AddItem .txt
    .AddItem .xls
    .AddItem .xlsx
    End With
    With Me.ComboBox4
    .AddItem .csv
    .AddItem .txt
    .AddItem .xls
    .AddItem .xlsx
    End With
    With Me.ComboBox5
    .AddItem .edi
    .AddItem EDI no extension
    .AddItem Cxml/.xml
    .AddItem .csv
    .AddItem .txt
    .AddItem .xls
    .AddItem .xlsx
    End With
    With Me.ComboBox6
    .AddItem .edi
    .AddItem EDI no extension
    .AddItem Cxml/.xml
    .AddItem .csv
    .AddItem .txt
    .AddItem .xls
    .AddItem .xlsx
    End With
    End Sub

    Private Sub CheckBox1_Click()

    End Sub

    Private Sub CheckBox2_Click()

    End Sub

    Private Sub CheckBox3_Click()

    End Sub

    Private Sub CheckBox4_Click()

    End Sub

    Private Sub CheckBox5_Click()

    End Sub

    Private Sub CheckBox6_Click()

    End Sub

    Private Sub CheckBox7_Click()

    End Sub

    Private Sub CheckBox8_Click()

    End Sub

    Private Sub CheckBox9_Click()

    End Sub

    Private Sub CheckBox10_Click()

    End Sub
    Private Sub ListBox1_Click()
    Load

    End Sub

    Private Sub DTPicker21_CallbackKeyDown(ByVal KeyCode As Integer, ByVal Shift As Integer, ByVal CallbackField As String, CallbackDate As Date)

    End Sub

    DB:2.40:Create A Form In Word Where The User Doesnt Get The Security Warning 3m

    Hi,
    Did you get the security warning in Outlook or Word?
    Could you please provide a screenshot about the warning to help us understand the problem?
    In addition, pleasehave a look atthis link and check if it applies to the issue:
    http://www.slipstick.com/how-to-outlook/disable-unsafe-hyperlink-warning-opening-attachments/
    If this is the case, please try to use the following registry value to disable the security warning:
    HKEY_CURRENT_USER\Software\Microsoft\Office\xx.0\Common\Security
    DWORD: DisableHyperlinkWarning
    Value: 1
    xx.0 is the version of your Outlook. 12.0 is Outlook 2007; 14.0 is Outlook 2010; 15.0 is Outlook 2013.
    Please let me know the result.
    Regards,

    Steve Fan
    TechNet Community Support

    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • RELEVANCY SCORE 2.40

    DB:2.40:[Fla8]Superposicion Combobox 3p


    Hola a todos!!

    Tengo un problemilla con los combobox creados dinamicamente.
    Estoy creando
    un swf para crear formularios dinamicamente leidos de un
    archivo xml.Y los
    datos me los lee bien, los crea bien, pero el problema con el
    que me he
    topado
    es a la hora de crear los combobox, cuando despliego uno de
    ellos el
    contenido se
    queda por debajo de todo.

    Ejemplo de cdigo:

    this.createClassObject(mx.controls.ComboBox,"cmb2",this.getNextHighestDepth());
    cmb2.addItem({label:1,data:1});
    cmb2.addItem({label:2,data:2});
    cmb2.move(0,25);

    this.createClassObject(mx.controls.ComboBox,"cmb1",this.getNextHighestDepth());
    cmb1.addItem({label:1,data:1});
    cmb1.addItem({label:2,data:2});

    En este caso el cmb1 cuando se despliega no veo los items.
    Alguien puede
    echarme una mano.
    Gracias por adelantado.
    Un Saludo, Delfn.

    DB:2.40:[Fla8]Superposicion Combobox 3p

    Hola a todos!!

    Tengo un problemilla con los combobox creados dinamicamente.
    Estoy creando
    un swf para crear formularios dinamicamente leidos de un
    archivo xml.Y los
    datos me los lee bien, los crea bien, pero el problema con el
    que me he
    topado
    es a la hora de crear los combobox, cuando despliego uno de
    ellos el
    contenido se
    queda por debajo de todo.

    Ejemplo de cdigo:

    this.createClassObject(mx.controls.ComboBox,"cmb2",this.getNextHighestDepth());
    cmb2.addItem({label:1,data:1});
    cmb2.addItem({label:2,data:2});
    cmb2.move(0,25);

    this.createClassObject(mx.controls.ComboBox,"cmb1",this.getNextHighestDepth());
    cmb1.addItem({label:1,data:1});
    cmb1.addItem({label:2,data:2});

    En este caso el cmb1 cuando se despliega no veo los items.
    Alguien puede
    echarme una mano.
    Gracias por adelantado.
    Un Saludo, Delfn.

  • RELEVANCY SCORE 2.40

    DB:2.40:Re: Making Array's 1s


    Hi!
    I’m trying to make a tool which can help me open a specific drawing (.dwg). In this tool I use 2 ComboBoxes and 2 Yes/No-questions (OptionButtons).

    I don't know how to make an Array and how I can translate this Array to a code, which can help open the dwg-file. I think making the code match with the drawing name is the best way, because I then only have to put .dwg after the code to open the specific drawing.

    I’ll put my text over here so you can see what I made (what a mess…)
    ---------------------------------------------------------------------------

    Private Sub UserForm_Initialize()

    Label1.Caption = "things"

    ComboBox1.AddItem "Fruit" 'ListIndex = 0
    ComboBox1.AddItem "Vegetables" 'ListIndex = 1
    ComboBox1.AddItem "Furniture" 'ListIndex = 2
    ComboBox1.AddItem "Vehicles" 'ListIndex = 3

    End Sub

    Private Sub ComboBox1_Click()

    Select Case ComboBox1.Value

    Case 0 'Fruit
    ComboBox2.Clear
    ComboBox2.AddItem "Apples"
    ComboBox2.AddItem "Cherries"
    ComboBox2.AddItem "Bananas"

    Case 1 ‘Vegetables
    ComboBox2.Clear
    ComboBox2.AddItem "Beans"
    ComboBox2.AddItem "Carrots"
    ComboBox2.AddItem "Broccoli"

    Case 2 ‘Furniture
    ComboBox2.Clear
    ComboBox2.AddItem "Bank"
    ComboBox2.AddItem "Bed"
    ComboBox2.AddItem "Table"

    Case 3 'Vehicles
    ComboBox2.Clear
    ComboBox2.AddItem "Van"
    ComboBox2.AddItem "Car"
    ComboBox2.AddItem "Bike"

    End Select

    Dim Fruit, Vegetables, Furniture, Vehicles
    Fruit = Array("Apples", "Cherries", "Bananas")
    Vegetables = Array("Beans", "Carrots", "Broccoli")
    Furniture = Array("Bank", "Bed", "Table")
    Vehicles = Array("Van", "Car", "Bike")

    End Sub

    Private Sub ComboBox2_Click()

    End Sub

    ---------------------------------------------------------------------------

    I’ve got no idea how I can make the Array in the best way.
    I’ve never made an Array before…

    Is there anyone who can help me of can give me an example??

    Thanks in advance!!

    DB:2.40:Re: Making Array's 1s

    maybe something like

    Dim Selections As String
    Dim Path As String

    Selections = "AERYN"

    Path = "C:\Documents and Settings\\Drawings\" Selections

    wrote in message news:5217152@discussion.autodesk.com...
    That's right!

    Ok, I just have to make some sort of a string!
    I'll give it a try!

    Thank you!!

  • RELEVANCY SCORE 2.39

    DB:2.39:Arrays jm



    I've got my_list1, my_list2, my_list3, up to my_list8. each my_list holds similar fonts ("fnt1", "fnt2"), etc.... How to code this using arrays?

    my_list1.addItem("fnt1", "fnt1");

    my_list1.addItem("fnt2", "fnt2");

    my_list1.addItem("fnt3", "fnt3");

    my_list1.addItem("fnt4", "fnt4");

    my_list1.addItem("fnt5", "fnt5");

    var my_fmt:TextFormat = new TextFormat();

    my_fmt.font = "fnt5";

    var my_listener:Object = new Object();

    my_listener.change = function() {

    my_fmt.font = my_list1.selectedItem.data;

    my_Dyn_Txt1.setTextFormat(my_fmt);

    my_Dyn_Txt1.embedFonts = true;

    };

    my_list1.addEventListener("change", my_listener);

    my_Dyn_Txt1.setNewTextFormat(my_fmt);

  • RELEVANCY SCORE 2.39

    DB:2.39:Xp Conversion Process Has Stopped px


    I have followed all the steps up to .... Remove the Rescue and Recovery disc when prompted and your computer will restart.. At the prompt I removed the RandR disc but the "Rescue and Recovery 4 screen just hangs there and after waiting half an hour I tried manual restart Ctrl+Alt+Del and even the on off button but it will not respondHELP what is the next step please?







    Solved!
    Go to Solution.

    DB:2.39:Xp Conversion Process Has Stopped px

    Thanks for your help - holding the button down for a long time worked! The installation is moving on with XP installed (and Norton IS) I am now updating via Thinkvantage and then it will be Microsoft's turn for updates - then install MS office,Outlook and Photoshop, Firefox etc. Then all their updates and THEN I can actually use my new laptop.Again thanks for very prompt responseJohn

  • RELEVANCY SCORE 2.38

    DB:2.38:Reproduire La Mise En Forme Conditionnelle Dune Cellule Dans Un Texbox 1p


    Bonjour le forum, je ne sais pas comment faire pour que le texbox d'un userform reproduise la mise en forme conditionnelle de la cellule de la feuille de calcul : si la valeur de la cellule est comprise entre la date d'aujourd'hui - 365*5 et la date d'aujourd'hui
    - 365*5-30,lorsque la condition est vrai, le format couleur est orange, et si la valeur de la cellule estinférieur ou égal àla date d'aujourd'hui - 365*5-31,lorsque la condition est vrai, le format couleur est rouge.

    Nom

    Ctrl Annuel
    Ctrl 5Ans

    APMC
    0013
    03/05/2010
    15/05/2006

    APMC
    0014
    18/05/2010
    16/05/2008

    APMC
    0015
    03/05/2011
    18/04/2006

    Ci-dessous le code de mon userform
    Merci pour votre aide.
    Option Explicit
    Private Sub ComboBox1_Click()
    Dim i As Byte
    With ComboBox1
    For i = 1 To 4
    Controls("TextBox" i) = Sheets("feuil2").Cells(.List(.ListIndex, 1), i)
    Next i
    End With
    End Sub
    Private Sub CommandButton1_Click()
    Dim Dl As Long
    Dim x As Byte
    With Sheets("Feuil2")
    .Activate
    Dl = .Range("A65536").End(xlUp).Row + 1
    For x = 1 To 4
    .Cells(Dl, x).Value = Me.Controls("TextBox" x).Value
    Next x
    Unload Me
    'tri selon le nom
    .Range("A1").CurrentRegion.Sort Key1:=Range("A1"), Order1:=xlAscending, Header:= _
    xlYes, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
    DataOption1:=xlSortNormal
    End With
    End Sub
    Private Sub CommandButton2_Click()
    Unload Me
    End Sub
    Private Sub UserForm_Initialize()
    initialisecombo
    End Sub
    Public Sub initialisecombo()
    Dim i As Integer
    With ComboBox1
    .Clear
    .ColumnCount = 2
    .ColumnWidths = "50;0"
    End With
    With Sheets("feuil2")
    For i = 2 To .Range("a65536").End(xlUp).Row
    ComboBox1.AddItem
    ComboBox1.List(ComboBox1.ListCount - 1, 0) = .Cells(i, 1) " " .Cells(i, 2)
    ComboBox1.List(ComboBox1.ListCount - 1, 1) = i
    Next i
    End With
    End Sub

    DB:2.38:Reproduire La Mise En Forme Conditionnelle Dune Cellule Dans Un Texbox 1p

    Dansla procédure suivante, il y a une petite erreur.
    à l'avant dernière ligne, au lieu de lire : TextBox3.BackColor = HFFFFFF
    on devrait avoir : TextBox4.BackColor = HFFFFFF
    J'espère que tu as corrigé.
    '----------------------------------------------
    Private Sub TextBox4_Change()
    If TextBox4.Value = "" Then
    TextBox4.BackColor = HFFFFFF
    ElseIf CDate(Label38) CDate(TextBox4.Value) Then
    TextBox4.BackColor = HFFFFFF
    ElseIf CDate(Label39) CDate(TextBox4.Value) And CDate(Label40) CDate(TextBox4.Value) Then
    TextBox4.BackColor = H80FF
    ElseIf CDate(Label41) = CDate(TextBox4.Value) Then
    TextBox4.BackColor = HFF
    Else
    TextBox3.BackColor = HFFFFFF
    End If
    End Sub
    '------------------------------------------------------------

  • RELEVANCY SCORE 2.37

    DB:2.37:Resolve Library Conflict j7


    Is there a Boolean or function to set "resolve library conflict" to automatically replace? I've searched addItem and Paste, but I'm still given the prompt[ discussion moved to Flash Pro General Forum ]

    DB:2.37:Resolve Library Conflict j7

    Is there a Boolean or function to set "resolve library conflict" to automatically replace? I've searched addItem and Paste, but I'm still given the prompt[ discussion moved to Flash Pro General Forum ]

  • RELEVANCY SCORE 2.37

    DB:2.37:Add Element To String[]? 9c



    Please prefer List when you want to add items to a collection. (MSDN provides API docs for List).


    To use it, you need to import System.Collection.Generic.


    It's simple to switch.



    var myVectors : Vector3[];


    var myVectors : List. Vector3 ;


    var myStrings : String[];


    var myStrings : List. String ;



    And so on...

    #pragma strict

    import System.Collections.Generic;

    var names : List. String ;

    function Start() {
    AddItem(Adding);
    AddItem(to);
    AddItem(List);
    }

    function AddItem(name : String) {
    names.Add(name);
    }

    function OnGUI() {
    for (var i = 0; i names.Count; i++) {
    GUI.Label(Rect(0, 0+(i*30), 200, 30), names[i]);
    }
    }

    DB:2.37:Add Element To String[]? 9c


    Take that, just copy-paste it ;)

    var names = new ArrayList();

    function Start(){
    AddItem(name1);
    AddItem(name2);
    AddItem(name3);
    }
    function AddItem(name:String) {
    names.Add(name);
    }

    function OnGUI() {
    for(var i=0;inames.Count;i++)
    {
    GUI.Label(Rect(0,0+(i*30),200,30),names[i].ToString());
    }
    }

  • RELEVANCY SCORE 2.37

    DB:2.37:Need Help In Getting Common Dom Api To Work ff


    Grettings, all -

    I'm up against the wall. I have spend a lot of time trying to get Common DOM API to work to no avial. So far I tried it with Netscape 6.2.3, Mozilla 1.0 and MSIE 6. My problem is that while I get non-null Document, all calls on it return null. Here is the code snippet I have:

    public class Foo extends Applet {
    Applet m_appletThis;
    StringBuffer m_sbuf;

    public void init() {
    m_appletThis = this;
    m_sbuf = new StringBuffer();

    addItem("initializing... ");

    try {
    JSObject jsWin = JSObject.getWindow(this);
    JSObject jsDoc = (JSObject)jsWin.getMember("document");

    String sName = (String)jsDoc.getMember("name");
    Object oLocation = (JSObject)jsDoc.getMember("location");
    addItem("location=" + oLocation);

    String sTitle = (String)jsDoc.getMember("title");
    addItem("title=" + sTitle);

    addItem("initialized! ");
    }
    catch (JSException e) {
    e.printStackTrace();
    }
    }

    public void start() {
    addItem("starting... ");

    DOMService ds = null;

    try {
    ds = DOMService.getService(this);
    String sTitle = (String)ds.invokeAndWait(new DOMAction() {
    public Object run(DOMAccessor da) {
    Document doc = da.getDocument(m_appletThis);
    return doc.getNodeValue();
    }
    });
    addItem(sTitle);

    // let's try again
    Document doc = (Document)ds.invokeAndWait(new DOMAction() {
    public Object run(DOMAccessor da) {
    Document doc;
    NamedNodeMap nnm;
    Node node;

    doc = (Document)da.getDocument(m_appletThis);
    nnm = doc.getAttributes();

    NodeList nl = doc.getChildNodes();
    if (null == nl)
    addItem("no children!");

    else
    for (int i = 0; i nl.getLength(); i++) {
    node = nl.item(i);
    addItem((null == node) ?
    ("no node" + i) : node.getNodeName());
    }

    if (null == nnm)
    addItem("no attribs!");

    else {
    node = nnm.getNamedItem("location");

    if (null == node)
    addItem("no node!");
    else
    addItem(node.getNodeValue());
    }
    return doc;
    }
    });
    }
    catch (DOMUnsupportedException e1) {
    e1.printStackTrace();
    }
    catch (DOMAccessException e2) {
    e2.printStackTrace();
    }

    addItem("started! ");
    }

    public void stop() {
    addItem("stopping... ");
    }

    public void destroy() {
    addItem("preparing for unloading...");
    }

    void addItem(String newWord) {
    System.out.println(newWord);
    m_sbuf.append(newWord + "\r\n");
    repaint();
    }

    public void paint(Graphics g) {
    Dimension dim = getSize();
    //Draw a Rectangle around the applet's display area.
    g.drawRect(0, 0, dim.width - 1, dim.height - 1);

    //Draw the current string inside the rectangle.
    g.drawString(m_sbuf.toString(), 5, 15);
    }
    }

    This produces the following output:

    initializing...
    location=file:///foo.bar.html
    title=
    initialized!

    starting...
    null
    no children!
    no attribs!
    started!

    As starting/started lines show all of my attempts to get access to browsers DOM fail.

    I will really appreciate any advice you can provide. Thanks in advance.
    - Andrew

    DB:2.37:Need Help In Getting Common Dom Api To Work ff

    hi,

    i desperately tried similar things and, after studying some forum entries, it seems to me that common dom DOES NOT WORK...

    sorry for us, but bugparade promises to fix that in 1.4.2 (somewhen in 2003 :-( )

    if you need dom-access try jsobject or the ibm directDOM-technology, that seems to work much better..

    greets,
    dirk

  • RELEVANCY SCORE 2.37

    DB:2.37:Additem Method Not Found f1



    Hello,

    I have this code

    --------

    user = entityload("Users", session.userid);

    item = entitynew("Items");

    item.setTitolo("Fables");

    item.setDescrizione("Great Book");

    entitysave(item);

    dump(item); // addItem method existing in the dump trace

    user.addItem(item);

    entitysave(user);
    --------

    DB:2.37:Additem Method Not Found f1


    Well I think I got it: in the second case, the object is a single record.

  • RELEVANCY SCORE 2.37

    DB:2.37:Float To String Conversion 7a


    import java.lang.String;
    import java.lang.Integer;
    import java.lang.Float;
    import java.util.Hashtable;
    import java.util.Enumeration;

    public class VenkatCart {

    protected Hashtable items = new Hashtable();

    public VenkatCart() {
    }

    public void addItem(String idk,int ic,int size,float rate,int qty) {
    String item[]={idk,Integer.toString(ic),Integer.toString(size),Float.toString(rate),Integer.toString(qty)};
    if (items.containsKey(idk)) {
    String tmpItem[] = (String[])items.get(idk);
    int tmpQuant = Integer.parseInt(tmpItem[4]);
    qty += tmpQuant;
    tmpItem[4] = Integer.toString(qty);
    }
    else {
    items.put(idk,item);
    }
    }

    // get an Enumeration to the list of items in the shopping cart
    public Enumeration getEnumeration() {
    return items.elements();
    }

    // get the total cost of all of the items currently in the shopping cart
    public float getCost() {
    Enumeration enum = items.elements();
    String tmpItem[];
    float totalCost = 0.0f;
    while (enum.hasMoreElements()) {
    tmpItem = (String[])enum.nextElement();
    totalCost += (Integer.parseInt(tmpItem[4]) * Float.parseFloat(tmpItem[3]));
    }
    return totalCost;
    }

    // get the total number of items currently in the shopping cart
    public int getNumOfItems() {
    Enumeration enum = items.elements();
    String tmpItem[];
    int numOfItems =0;
    while (enum.hasMoreElements()) {
    tmpItem = (String[])enum.nextElement();
    numOfItems += Integer.parseInt(tmpItem[4]);
    }
    return numOfItems;
    }
    }

    When I call the method "getCost()" from a jsp program, I get the error message

    Error: java.lang.Float: method parseFloat(Ljava/lang/String;)F not found has been reported.

    I think the mistake is in conversion.
    Please help me.
    My thanks in advance.

    DB:2.37:Float To String Conversion 7a

    Why don't you try the following:

    Float tmpFloat=new Float(tmpItem[3]);
    totalCost += (Integer.parseInt(tmpItem[4]) * tmpFloat.floatValue();

    Justyna

  • RELEVANCY SCORE 2.37

    DB:2.37:Default Value Of A Combobox From A Simple List 1f


    I have a user form created in Word 2010 with a combobox assigned, for the values I have inserted the following code under the userform_initalize event:
    With ComboBox1
    .AddItem "green"
    .AddItem "silver"
    .AddItem "gold"
    .AddItem "red"
    .AddItem "blue"
    End With
    Could some tell me how I go about making one of these values the default value when the form appears, at present the combobox is empy until you select an item, I wish to have one of these values as a default value?

    Thank you
    Jasper

  • RELEVANCY SCORE 2.37

    DB:2.37:Paste Problems In Excel 2010 xx


    When using a compatibility mode Workbook I can easily paste data to a new Workbook using regular Ctrl-C/Ctrl-V or with VBA. But I converted the Workbook to a full 2010 document (.xlsm) and now I can't even copy one cell to a new workbook: that action
    cannot be performed on multiple selections. But I am copying ONLY one cell!

    This file is part of a buisnedd process I conversion to 2010 is critical. So I need this issue resolved ASAP

    Thanks

    DB:2.37:Paste Problems In Excel 2010 xx

    Hi Pierre,
    How did you do the paste action? Use CtrlV or use VBA code?
    If you use VBA code, check to see whether there is any code to select multiple cells.
    And also, create a new workbook to check the issue.

    Jaynet Zhang
    TechNet Community Support

  • RELEVANCY SCORE 2.37

    DB:2.37:Having Trouble Moving Item From One List To Another! fs



    A variable used in a for loop is only valid in a scope of this loop. It is not visible outside.


    There are additional errors in your script as well:



    AddItem method is never called


    Your gui buttons are not tested for click



    You need to test for click, and if a button is clicked, call AddItem passing cnt value as parameter. Pseudocode:

    if(GUI.Button(...))
    {
    AddItem(cnt);
    }
    private void AddItem(int cnt)
    {
    inventorySystem.inventory.Add (lootItems [cnt]);
    }

    DB:2.37:Having Trouble Moving Item From One List To Another! fs


    A variable used in a for loop is only valid in a scope of this loop. It is not visible outside.


    There are additional errors in your script as well:



    AddItem method is never called


    Your gui buttons are not tested for click



    You need to test for click, and if a button is clicked, call AddItem passing cnt value as parameter. Pseudocode:

    if(GUI.Button(...))
    {
    AddItem(cnt);
    }
    private void AddItem(int cnt)
    {
    inventorySystem.inventory.Add (lootItems [cnt]);
    }

  • RELEVANCY SCORE 2.36

    DB:2.36:Can You Add An Item To A Value Object??? Error: 1069 a9



    hey guys... so i have a webservice which returns me ome datatypes called tagInfo, i was wondering if there is a way i can create a new property to a value object??

    ive tried something like

    var obj:Object = new Object(); obj.approved = false; tagArr[i].addItem(obj); displayTagArr.addItem(tagArr[i]);

    and it gives me an error on the line "tagArr[i].addItem(obj);"

    the error states

    Error #1069: Property addItem not found on valueObjects.TagInfo and there is no default value.

    thanks

    DB:2.36:Can You Add An Item To A Value Object??? Error: 1069 a9


    Hi,

    I presume you would like to add your own property to the object. In DCD, if you look at the generated valueobjects under the package named valueObjects, you will see for each entity, a set of three classes

    for your example it will be

    1 . _tagInfo_typeEntityMetadata

    2 . _Super_tagInfo_type

    3. tagInfo_type

    1 2 are regenerated from time to time. So hence do not make any changes to it. By default you cannot dynamically add properties to any class(except of type Object). The way to achieve this functionality is by adding the dynamic keyword like this

    public dynamic class tagInfo_type extends _Super_tagInfo_type

    Now, For how to add the property, all you need to do is this,

    tagInfo_type.approved = false;

    The addItem function is used to add a value to a collection. It cannot be used to add properties.

    Hope this helps.

    Nishad

  • RELEVANCY SCORE 2.36

    DB:2.36:How To Make Object? 3c



    var list1 = listDetail1.addItem(new sap.m.DisplayListItem({

    value : results.rows.item(i).value,

    label : "ID"

    }));

    How to make object of sap.m.DisplayListItem ??

    DB:2.36:How To Make Object? 3c


    Hi Kelvin,

    another example for using the sap.m.DisplayListItem can be found here OpenUI5 Explored.

    Regards, Frank

  • RELEVANCY SCORE 2.36

    DB:2.36:Algorithm Ctrl+Z And Ctrl+Y ds


    Has a implementation in javafx for algorithm ctrl+z and ctrl-y disponible ?thank's

    DB:2.36:Algorithm Ctrl+Z And Ctrl+Y ds

    Has a implementation in javafx for algorithm ctrl+z and ctrl-y disponible ?thank's

  • RELEVANCY SCORE 2.36

    DB:2.36:How To Add A Jmenubar And A Jtable In A Jframe In A Single Application dc


    Hi all,
    I require an urgent help from you.I am a beginer in programming Swing.I want to add a menu,combobox,and a table in a single application.I did coding as below:
    ----------------------------------------------------------------------------------------------------------------------------------------------
    package com.BSS;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import javax.swing.border.*;
    import javax.swing.event.*;
    public class newssa extends JFrame
    {
    public JMenuBar menuBar;
    public JToolBar toolBar;
    public JFrame frame;
    private JLabel jLabel1;
    private JLabel jLabel2;
    private JLabel jLabel3;
    private JLabel jLabel4;
    private JLabel jLabel5;
    private JLabel jLabel6;
    private JComboBox jComboBox1;
    private JComboBox jComboBox2;
    private JComboBox jComboBox3;
    private JComboBox jComboBox4;
    private JComboBox jComboBox5;
    private JComboBox jComboBox6;
    private JTable jTable1;
    private JScrollPane jScrollPane1;
    private JPanel contentPane;
    public newssa()
    {
    super();
    initializeComponent();
    this.setVisible(true);
    }

    private void initializeComponent()
    {
    jLabel1 = new JLabel();
    jLabel2 = new JLabel();
    jLabel3 = new JLabel();
    jLabel4 = new JLabel();
    jLabel5 = new JLabel();
    jLabel6 = new JLabel();
    jComboBox1 = new JComboBox();
    jComboBox2 = new JComboBox();
    jComboBox3 = new JComboBox();
    jComboBox4 = new JComboBox();
    jComboBox5 = new JComboBox();
    jComboBox6 = new JComboBox();
    frame=new JFrame();
    //Included here
    JMenuBar menuBar = new JMenuBar();
    JMenu general = new JMenu("General");
    menuBar.add(general);

    JMenu actions =new JMenu("Actions");
    menuBar.add(actions);

    JMenu view=new JMenu("View");
    menuBar.add(view);

    JMenu Timescale=new JMenu("TimeScale");
    menuBar.add(Timescale);
    Timescale.add("Today CTRL+D");
    Timescale.add("Current Week CTRL+W");
    Timescale.add("Current Month CTRL+M");
    Timescale.add("Current Quarter CTRL+Q");
    Timescale.add("Current Year CTRL+Y");
    Timescale.add("Custom TimeScale CTRL+U");

    JMenu start=new JMenu("Start");
    menuBar.add(start);

    JMenu options=new JMenu("Options");
    menuBar.add(options);

    JMenu help=new JMenu("Help");
    menuBar.add(help);

    JFrame.setDefaultLookAndFeelDecorated(true);
    frame.setJMenuBar(menuBar);
    frame.pack();
    frame.setVisible(true);

    toolBar = new JToolBar("Formatting");
    toolBar.addSeparator();

    //Before this included new
    String columnNames[] = { "ColorStatus", "Flash", "Service Order","Configuration","Configuration Description"};

    // Create some data
    String dataValues[][] =
    {
    { "blue", "flash", "ORT001" },
    { "AVCONF", "av configuration with warrenty"}
    };

    // Create a new table instance
    //jTable1 = new JTable( dataValues, columnNames );
    jTable1 = new JTable(dataValues,columnNames);

    jScrollPane1 = new JScrollPane(jTable1);
    contentPane = (JPanel)this.getContentPane();
    //scrollPane = new JScrollPane( table );
    //topPanel.add( scrollPane, BorderLayout.CENTER );

    //
    // jLabel1
    //
    jLabel1.setText("Service Centers");
    //
    // jLabel2
    //
    jLabel2.setText("Service Areas");
    //
    // jLabel4
    //
    jLabel3.setText("Skills");
    jLabel4.setText("Availablity Types");
    //
    // jLabel5
    //
    jLabel5.setText("From Date");
    //
    // jLabel6
    //
    jLabel6.setText("To");
    //
    // jComboBox1
    //
    jComboBox1.addItem("Coimbatore");
    jComboBox1.addItem("Chennai");
    jComboBox1.addItem("Mumbai");
    jComboBox1.addItem("New Delhi");
    jComboBox1.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e)
    {
    jComboBox1_actionPerformed(e);
    }

    });
    //
    // jComboBox2
    //
    jComboBox2.addItem("North Zone");
    jComboBox2.addItem("South Zone");
    jComboBox2.addItem("Central Zone");
    jComboBox2.addItem("Eastern Zone");
    jComboBox2.addItem("Western Zone");
    jComboBox2.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e)
    {
    jComboBox2_actionPerformed(e);
    }

    });
    //
    // jComboBox3
    //
    jComboBox3.addItem("Microsoft Components");
    jComboBox3.addItem("Java Technologies");
    jComboBox3.addItem("ERP");
    jComboBox3.addItem("Others");
    jComboBox3.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e)
    {
    jComboBox3_actionPerformed(e);
    }

    });
    //
    // jComboBox4
    //
    jComboBox4.addItem("One");
    jComboBox4.addItem("Two");
    jComboBox4.addItem("Three");
    jComboBox4.addItem("Four");
    jComboBox4.addItem("Five");
    jComboBox4.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e)
    {
    jComboBox4_actionPerformed(e);
    }

    });
    //
    // jComboBox5
    //
    jComboBox5.addItem("12/12/2004");
    jComboBox5.addItem("13/12/2004");
    jComboBox5.addItem("14/12/2004");
    jComboBox5.setEditable(true);
    jComboBox5.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e)
    {
    jComboBox5_actionPerformed(e);
    }

    });
    //
    // jComboBox6
    //
    jComboBox6.addItem("12/11/2004");
    jComboBox6.addItem("13/11/2004");
    jComboBox6.addItem("14/11/2004");
    jComboBox6.setEditable(true);
    jComboBox6.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e)
    {
    jComboBox6_actionPerformed(e);
    }

    });
    //
    // jTable1
    //
    jTable1.setModel(new DefaultTableModel(4, 4));
    //
    // jScrollPane1
    //
    jScrollPane1.setViewportView(jTable1);
    //
    // contentPane
    //
    contentPane.setLayout(null);
    addComponent(contentPane, jLabel1, 2,29,84,18);
    addComponent(contentPane, jLabel2, 201,33,76,18);
    addComponent(contentPane, jLabel3, 384,32,59,18);
    addComponent(contentPane, jLabel4, 2,77,85,18);
    addComponent(contentPane, jLabel5, 197,79,84,18);
    addComponent(contentPane, jLabel6, 384,80,60,18);
    addComponent(contentPane, jComboBox1, 85,32,100,22);
    addComponent(contentPane, jComboBox2, 276,32,100,22);
    addComponent(contentPane, jComboBox3, 419,30,100,22);
    addComponent(contentPane, jComboBox4, 88,76,100,22);
    addComponent(contentPane, jComboBox5, 276,79,100,22);
    addComponent(contentPane, jComboBox6, 421,78,100,22);
    addComponent(contentPane, jScrollPane1, 33,158,504,170);
    //
    // newssa
    //

    this.setTitle("SSA Service Scheduler");
    this.setLocation(new Point(0, 0));
    this.setSize(new Dimension(560, 485));
    }

    /** Add Component Without a Layout Manager (Absolute Positioning) */
    private void addComponent(Container container,Component c,int x,int y,int width,int height)
    {
    c.setBounds(x,y,width,height);
    container.add(c);
    }

    //
    // TODO: Add any appropriate code in the following Event Handling Methods
    //
    private void jComboBox1_actionPerformed(ActionEvent e)
    {
    int index = jComboBox1.getSelectedIndex();
    switch(index)
    {
    case 0: System.out.println("Area Coimbatore Selected "); break;
    case 1: System.out.println("Area Chennai selected"); break;
    case 2: System.out.println("Mumbai being selected"); break;
    case 3: System.out.println("New Delhi being selected"); break;
    }
    }

    private void jComboBox2_actionPerformed(ActionEvent e)
    {
    int index = jComboBox2.getSelectedIndex();
    switch(index)
    {
    case 0: System.out.println("North Zone Selcted "); break;
    case 1: System.out.println("South Zone being selected"); break;
    case 2: System.out.println("Central Zone being selected"); break;
    case 3: System.out.println("Eastern Zone being selected"); break;
    case 4: System.out.println("Western Zone being selected"); break;
    }
    }

    private void jComboBox3_actionPerformed(ActionEvent e)
    {
    int index = jComboBox3.getSelectedIndex();
    switch(index)
    {
    case 0: System.out.println("Microsoft Components being selected"); break;
    case 1: System.out.println("Java Technologies being selected"); break;
    case 2: System.out.println("ERP Tehnologies being selected"); break;
    case 3: System.out.println("Other's selected"); break;
    }
    }

    private void jComboBox4_actionPerformed(ActionEvent e)
    {
    int index = jComboBox4.getSelectedIndex();
    switch(index)
    {
    case 0: System.out.println("One selected"); break;
    case 1: System.out.println("Two selected"); break;
    case 2: System.out.println("Three selected"); break;
    case 3: System.out.println("Four selected"); break;
    case 4: System.out.println("Five selected"); break;
    }
    }

    private void jComboBox5_actionPerformed(ActionEvent e)
    {
    int index = jComboBox5.getSelectedIndex();
    switch(index)
    {
    case 0: System.out.println("12/12/2004 being selected"); break;
    case 1: System.out.println("13/12/2004 being selected"); break;
    case 2: System.out.println("14/12/2004 being selected"); break;
    }
    }

    private void jComboBox6_actionPerformed(ActionEvent e)
    {
    int index = jComboBox6.getSelectedIndex();
    switch(index)
    {
    case 0: System.out.println("12/11/2004 being selected"); break;
    case 1: System.out.println("13/11/2004 being selected"); break;
    case 2: System.out.println("14/11/2004 being selected"); break;
    }
    }
    public static void main(String[] args)
    {
    newssa ssa=new newssa();
    //JFrame.setDefaultLookAndFeelDecorated(true);
    //JDialog.setDefaultLookAndFeelDecorated(true);
    //JFrame frame = new JFrame("SSA Service Scheduler");
    //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //frame.setJMenuBar(ssa.menuBar);
    //frame.getContentPane( ).add(ssa.toolBar, BorderLayout.NORTH);
    //frame.getContentPane( ).add(ssa.pane, BorderLayout.CENTER);
    //frame.pack( );
    //frame.setVisible(true);
    try
    {
    //UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
    UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");
    }
    catch (Exception ex)
    {
    System.out.println("Failed loading LF: ");
    System.out.println(ex);
    }
    }

    }
    ----------------------------------------------------
    But as a O/P ,I am getting menu in a seperate windos and the rest of the combobox and jtable in a seperate window.Kindly help me to solve the application.
    VERY URGENT PLEASE..
    Thanks in advance
    with kind regds
    Satheesh.K

    DB:2.36:How To Add A Jmenubar And A Jtable In A Jframe In A Single Application dc

    But did u mean this as the next problem,Which I will come across..Yes, the second setVisible(true) seemed to be producing a smaller frame behind the main frame.

    And your JMenuBar is declared twice, but not sure if this will affect the code - haven't read it all.

  • RELEVANCY SCORE 2.36

    DB:2.36:Jcombobox 'S Additem Method Question 7x


    Hi:
    The API specification says: "Adds an item to the item list " for
    addItem(Object obj) method.
    The addItem takes type "Object", if my Object is an array, will the combobox treat the whole array as ONE item, or treat each item in the array as an individual item?
    thanx

  • RELEVANCY SCORE 2.35

    DB:2.35:Problem With Jcombo Box jd


    HI
    when i isert astring in jcombobox using additem method the followiing error appear
    non static variable can't be referenced by astatic context

    DB:2.35:Problem With Jcombo Box jd

    Multi-post, see answer here:

    http://forum.java.sun.com/thread.jspa?threadID=705293

  • RELEVANCY SCORE 2.34

    DB:2.34:How Can This Object Be Accessed From This Method? 9m


    How can the object 'field' be removed in the method **private void cleanUp?

    {noformat}import javax.swing.JApplet;
    import javax.swing.JTextField;
    import javax.swing.SwingUtilities;

    //Since we're adding a Swing component, we now need to
    //extend JApplet. We need to be careful to access
    //components only on the event-dispatching thread.
    public class ScrollingSimple extends JApplet {

    JTextField field;

    public void init() {
    //Execute a job on the event-dispatching thread:
    //creating this applet's GUI.
    try {
    SwingUtilities.invokeAndWait(new Runnable() {
    public void run() {
    createGUI();
    }
    });
    } catch (Exception e) {
    System.err.println("createGUI didn't successfully complete");
    }

    addItem(false, "initializing... ");
    }

    private void createGUI() {
    //Create the text field and make it uneditable.
    field = new JTextField();
    field.setEditable(false);

    //Set the layout manager so that the text field will be
    //as wide as possible.
    setLayout(new java.awt.GridLayout(1,0));

    //Add the text field to the applet.
    add(field);
    }

    public void start() {
    addItem(false, "starting... ");
    }

    public void stop() {
    addItem(false, "stopping... ");
    }

    public void destroy() {
    addItem(false, "preparing for unloading...");
    cleanUp();
    }

    *private void cleanUp() {
    //Execute a job on the event-dispatching thread:
    //taking the text field out of this applet.
    try {
    SwingUtilities.invokeAndWait(new Runnable() {
    public void run() {
    {color:#ff0000}remove(field);{color}
    }
    });
    } catch (Exception e) {
    System.err.println("cleanUp didn't successfully complete");
    }
    field = null;
    }*

    private void addItem(boolean alreadyInEDT, String newWord) {
    if (alreadyInEDT) {
    addItem(newWord);
    } else {
    final String word = newWord;
    //Execute a job on the event-dispatching thread:
    //invoking addItem(newWord).
    try {
    SwingUtilities.invokeAndWait(new Runnable() {
    public void run() {
    addItem(word);
    }
    });
    } catch (Exception e) {
    System.err.println("addItem didn't successfully complete");
    }
    }
    }

    //Invoke this method ONLY from the event-dispatching thread.
    private void addItem(String newWord) {
    String t = field.getText();
    System.out.println(newWord);
    field.setText(t + newWord);
    }
    }{noformat}

    DB:2.34:How Can This Object Be Accessed From This Method? 9m

    Hi,

    I haven't tried it, but how about something like the following:
    private void cleanUp() {
    //Execute a job on the event-dispatching thread:
    //taking the text field out of this applet.
    try {
    final JTextField currentField = this.field;
    SwingUtilities.invokeAndWait(new Runnable() {
    public void run() {
    Container parent = currentField.getParent();
    if(parent != null) {
    parent.remove(currentField);
    }
    }
    });
    } catch (Exception e) {
    System.err.println("cleanUp didn't successfully complete");
    }
    field = null;
    }Explanation:
    - prior to entering SwingUtilities you declare a final reference to the currently used field (necessary to be able to access it within your "new Runnable"
    - within "run()" you simply try to get the parent container of the TextField
    - for completeness sake, check that the returned container is not null
    - call container.remove(field)

    Bye.

  • RELEVANCY SCORE 2.34

    DB:2.34:Jcombobox And Colors Of Items? 8x


    Hi all

    I have one problem:
    In one JComboBox, font have to be black with "addItem("black text",true);" and with "addItem("red text",false);" red ?

    Thanks

    DB:2.34:Jcombobox And Colors Of Items? 8x

    You can write your own ListCellRenderer that changes colour based on the item it receives. I wouldn't suggest using text, though, 'cos you'll just have to parse it.
    Try something like this:
    public class ColorListCellRenderer extends JLabel implements ListCellRenderer
    {
    public Component getListCellRendererComponent(JList list, Object value, int idx, boolean isSelected, boolean hasFocus)
    {
    setBackground((Color)value);
    return this;
    }
    }You should then make your JComboBox use this to render and use colours rather than text as your items:
    comboBox.setRenderer(new ColorListCellRenderer());
    comboBox.addItem(Color.black);
    comboBox.addItem(Color.red);The ListCellRenderer is far from complete and needs to show whether it is selected, has focus etc. but it's a good start.
    Hope this helps.

  • RELEVANCY SCORE 2.34

    DB:2.34:Auto Url Encoding....Wls 5.1 Vs Wls 6.1 3c



    The below redirect use to work find in WLS 5.1. We are redirecting to login.jsp
    and login.jsp will redirect to the desitination page (PageXXX.jsp) and pass the
    paramter addItem to PageXXX.jsp. Therefore there are a total or 3 directs.

    redirect( http://127.0.0.1:443/account/login.jsp?appID=3formState=0destinationpage=http://127.0.0.1/my_organizer/PageXXX.jsp?addItem=2579
    )

    In WLS 5.1, the addItem parameter would make it to PageXXX.jsp. In WLS 6.1, login.jsp
    thinks the addItem paramter is for it and eats it. In WLS 5.1, it seems to automatically
    URLEncode everything for desitinationpage; which includes the addItem parameters.
    Is there a setting in WLS 6.1 for this?

    Thanks. Later...

    - Wayne

    DB:2.34:Auto Url Encoding....Wls 5.1 Vs Wls 6.1 3c


    The below redirect use to work find in WLS 5.1. We are redirecting to login.jsp
    and login.jsp will redirect to the desitination page (PageXXX.jsp) and pass the
    paramter addItem to PageXXX.jsp. Therefore there are a total or 3 directs.

    redirect( http://127.0.0.1:443/account/login.jsp?appID=3formState=0destinationpage=http://127.0.0.1/my_organizer/PageXXX.jsp?addItem=2579
    )

    In WLS 5.1, the addItem parameter would make it to PageXXX.jsp. In WLS 6.1, login.jsp
    thinks the addItem paramter is for it and eats it. In WLS 5.1, it seems to automatically
    URLEncode everything for desitinationpage; which includes the addItem parameters.
    Is there a setting in WLS 6.1 for this?

    Thanks. Later...

    - Wayne

  • RELEVANCY SCORE 2.34

    DB:2.34:Cant Pass Variable Between Imagebutton And C# Function 19


    Hi,
    I have the following code but for some (probably obvious) reason the value doesn't get entered into my list. If I replace additem[Title] = with manual text the list will update.
    ImageButton lnk = new ImageButton();
    //lnk.ID = title;
    lnk.Command = send_Click;
    lnk.CommandArgument = title;
    protected void send_Click(object sender, CommandEventArgs e)
    {
    SPWeb site = SPContext.Current.Web;
    var clicklist = site.Lists[ListName];
    string WPTitle = e.CommandArgument.ToString();
    SPListItem additem = ListName.AddItem();
    additem[Title] = WPTitle;
    additem.Update();
    Any help as to how to pass this variable to the c# function without using Javascript?
    Thanks

    DB:2.34:Cant Pass Variable Between Imagebutton And C# Function 19

    Hi Dennis,
    Thanks for your response.
    When I tried your solution it still didn't work and WPTittle was beinh populated.
    I then realised that I needed to use:
    string WPTitle = ((ImageButton)sender).CommandArgument;

    Thanks for your help

  • RELEVANCY SCORE 2.34

    DB:2.34:Access To Objects Using A String Variable 1x


     
    All,
     
    Here is my problem, I have a lot of combo box's in a form!  I need to add a number of items to the box's based on a number of cases.  At present I have had to hard code in every object to do this:
     
    combobox1.additem(1)
    combobox2.additem(1)
    combobox3.additem(1)
    combobox4.additem(1)
    .........
     
    What I really would like to do is re use the code to cut down on work. I had the idea of using a string to access the objects:
     
    dim box as string
    box = combobox 1
    box.additem(1)
     
    does anybody know if this is possible?
     
    Cheers,
    Chris
     

    DB:2.34:Access To Objects Using A String Variable 1x

    In much the same way, I'd create a method that takes the list of control names (in this case a string with the controlnames) and processes them. 
     
     

    Code Block

  • RELEVANCY SCORE 2.33

    DB:2.33:Generated Markup Is Quite Verbose js



    rich:menuItem generates the following inline script:

    script id="frmMenu:j_id9_menu_script" type="text/javascript"
    1new RichFaces.Menu.Layer('frmMenu:j_id9_menu',50,800).asDropDown('frmMenu:j_id9','frmMenu:j_id9_span','onmouseover','onmouseout',{'onitemselect':function(event){;return true;},'oncollapse':function(event){;return true;},'horizontalOffset':0,'verticalOffset':0,'direction':'auto','onexpand':function(event){;return true;},'ongroupactivate':function(event){;return true;},'disabled':false,'jointPoint':'auto'} ).addItem('frmMenu:j_id10',{'onmouseout':function(event){;return true;},'selectStyle':'','flagGroup':1,'selectClass':'','iconClass':'','closeOnClick':0,'disabled':false,'onmouseover':function(event){;return true;}} ).addItem('frmMenu:j_id14',{'selectStyle':'','flagGroup':0,'selectClass':'','iconClass':'','closeOnClick':1,'disabled':false} ).addItem('frmMenu:j_id15',{'selectStyle':'','flagGroup':0,'selectClass':'','iconClass':'','closeOnClick':1,'disabled':false} ).addItem('frmMenu:j_id16',{'selectStyle':'','flagGroup':0,'selectClass':'','iconClass':'','closeOnClick':1,'disabled':false} ).addItem('frmMenu:j_id17',{'selectStyle':'','flagGroup':0,'selectClass':'','iconClass':'','closeOnClick':1,'disabled':false} );
    /script

    DB:2.33:Generated Markup Is Quite Verbose js


    Hi, I voted for this issue, hope it will be included in V3.3, because our menu is over 65K ...Thanks!

  • RELEVANCY SCORE 2.33

    DB:2.33:Signed Applet Error : Java.Security.Accesscontrolexception kd


    I have a signed applet that used the FtpBean package to read a file from the users computer and FTP it to my server.

    I am getting the following error:

    java.security.AccessControlException: access denied (java.io.FilePermission)

    Before I switched to using FtpBean my applet worked fine but now it can't seem to read files. It works fine from applet viewer.
    Any help would be greatly appreciated, thanks.

    - - - FtpBean Link - - -

    http://www.geocities.com/SiliconValley/Code/9129/javabean/ftpbean/

    - - - My Applet - - - -

    import java.applet.*;
    import ftp.*;

    public class filexfer extends Applet
    {

    public String serverName, userName, userPass, localFile, remoteFile, ftpStatus;
    FtpBean ftp;
    StringBuffer buffer;

    // Get Applet Parameters and Setup Other Vars
    public void init()
    {
    ftp = new FtpBean();
    ftpStatus = "starting";
    buffer = new StringBuffer();
    addItem("Starting upload engine");
    serverName = getParameter("server");
    userName = getParameter("username");
    userPass = getParameter("password");
    localFile = getParameter("localfile");
    remoteFile = getParameter("remotefile");
    addItem("Uploading file "+localFile);
    }

    // Start File Transfer
    public void start ()
    {

    // Try To Establish Connection
    try
    {
    ftp.ftpConnect(serverName, userName, userPass, "wonderfile");
    String ftpOk = ftp.getSystemType();

    // If Connection Is Ok Try To Send File
    if(ftpOk!=null)
    {

    ftpStatus = "starting transfer";
    addItem("starting transfer");

    try
    {
    ftp.putBinaryFile(localFile, remoteFile);
    ftp.close();
    ftpStatus = "complete";
    addItem("FTP transfer complete");
    }
    catch(Exception e)
    {
    ftpStatus = "failed";
    addItem("FTP transfer failed");
    System.out.println(e);
    ftp.close();
    }
    }
    }
    catch (Exception e)
    {
    ftpStatus = "failed";
    addItem("Could not contact ftp server");
    System.out.println(e);
    }

    }

    public void stop ()
    {
    }

    public String uploadStatus()
    {
    return ftpStatus;
    }

    void addItem(String newMsg)
    {
    System.out.println(newMsg);
    buffer.append(newMsg);
    }

    }

    DB:2.33:Signed Applet Error : Java.Security.Accesscontrolexception kd

    I have a signed applet that used the FtpBean package to read a file from the users computer and FTP it to my server.

    I am getting the following error:

    java.security.AccessControlException: access denied (java.io.FilePermission)

    Before I switched to using FtpBean my applet worked fine but now it can't seem to read files. It works fine from applet viewer.
    Any help would be greatly appreciated, thanks.

    - - - FtpBean Link - - -

    http://www.geocities.com/SiliconValley/Code/9129/javabean/ftpbean/

    - - - My Applet - - - -

    import java.applet.*;
    import ftp.*;

    public class filexfer extends Applet
    {

    public String serverName, userName, userPass, localFile, remoteFile, ftpStatus;
    FtpBean ftp;
    StringBuffer buffer;

    // Get Applet Parameters and Setup Other Vars
    public void init()
    {
    ftp = new FtpBean();
    ftpStatus = "starting";
    buffer = new StringBuffer();
    addItem("Starting upload engine");
    serverName = getParameter("server");
    userName = getParameter("username");
    userPass = getParameter("password");
    localFile = getParameter("localfile");
    remoteFile = getParameter("remotefile");
    addItem("Uploading file "+localFile);
    }

    // Start File Transfer
    public void start ()
    {

    // Try To Establish Connection
    try
    {
    ftp.ftpConnect(serverName, userName, userPass, "wonderfile");
    String ftpOk = ftp.getSystemType();

    // If Connection Is Ok Try To Send File
    if(ftpOk!=null)
    {

    ftpStatus = "starting transfer";
    addItem("starting transfer");

    try
    {
    ftp.putBinaryFile(localFile, remoteFile);
    ftp.close();
    ftpStatus = "complete";
    addItem("FTP transfer complete");
    }
    catch(Exception e)
    {
    ftpStatus = "failed";
    addItem("FTP transfer failed");
    System.out.println(e);
    ftp.close();
    }
    }
    }
    catch (Exception e)
    {
    ftpStatus = "failed";
    addItem("Could not contact ftp server");
    System.out.println(e);
    }

    }

    public void stop ()
    {
    }

    public String uploadStatus()
    {
    return ftpStatus;
    }

    void addItem(String newMsg)
    {
    System.out.println(newMsg);
    buffer.append(newMsg);
    }

    }

  • RELEVANCY SCORE 2.33

    DB:2.33:Problem With Jcombo Box kj


    HI
    when i isert astring in jcombobox using additem method the followiing error appear
    non static variable can't be referenced from astatic context

    DB:2.33:Problem With Jcombo Box kj

    Multi-post, see answer here:

    http://forum.java.sun.com/thread.jspa?threadID=705293

  • RELEVANCY SCORE 2.33

    DB:2.33:Help Me!!! Struts Methods df


    Hi,

    in struts-config.xml
    ------------------------
    action path="/test"
    type="com.TestAction"name="TestActionForm"
    scope="request"
    parameter="action"
    forward name="success" path="/base/index.jsp"/
    /action

    In TestAction.java
    -----------------------
    i have 3 method, 1 is execute, 1 is addItem, 1 is deleteItem

    in my jsp
    ----------------------
    when i onchange, i need to call method addItem in TestAction,
    therefore, i do like this
    function changeToAddItem(form)
    {
    form.action = "/test.do?action=addItem";
    form.submit();
    }

    however, it still go to execute method and not addItem method which i suppose to call.

    may i know where i did wrong?? or how should i do...

    pls advice

    pls reply as soon as possible.

    thanks

    DB:2.33:Help Me!!! Struts Methods df

    Thanks radhabp

    i know where my mistake liao... i should not override the execute method.

    thanks

  • RELEVANCY SCORE 2.33

    DB:2.33:Ms Excel 2010 Disable Auto Convert Text To Date When Paste Data From Html File am


    Greetings,

    I'm using MS Excel 2010. I'm facing some data conversion problem.

    HereI start my working.I press Ctrl+A then Ctrl+C, in order to copy all the data in a HTML file, then paste it in my Excel Work Sheet. It automatically change the string "1-3" to "01-Mar". When i point to the cell, I can see the data had been changed to
    "01-03-2011" in formula bar.

    How am I going to maintain the format after paste it to Excel work sheet without changing the data from cell to cell.

    Thank you.

  • RELEVANCY SCORE 2.33

    DB:2.33:Problem With Jcombo Box a3


    HI
    when i isert astring in jcombobox using additem method the followiing error appear
    non static variable can't be referenced from astatic context

    DB:2.33:Problem With Jcombo Box a3

    an error messege tell me that
    non-static variable jComboBox1 cannot be referenced from a static context So obviously you are still doing something wrong.

    We can't help you since we are not mind readers and we don't know what your code looks like.

    You've been given a link to a working example, so read it!!!!

  • RELEVANCY SCORE 2.33

    DB:2.33:Generic Method And Wildcards aa


    Suppose I have this simplified code to do dynamic mapping between specific classes. My question is: the addItem and getItem functions
    are pretty similar however addItem compiles fine and getItem raises compilation error:

    Type mismatch: cannot convert from Classcapture#5-of ? extends List? extends Object to ClassP

    private MapClass? extends Object,
    Class? extends List? extends Object map =
    new HashMapClass? extends Object,
    Class? extends List? extends Object();

    public Test() {
    getItem(Object.class);
    }

    public T extends Object, P extends ListT void addItem(ClassT clz, ClassP list) {
    map.put(clz, list);
    }

    public T extends Object, P extends ListT ClassP getItem(ClassT clz) {
    return map.get(clz);
    }

    DB:2.33:Generic Method And Wildcards aa

    Thank you. I took Object just as example. It can be any other class there.
    The code works fine

    public T extends Object Class? extends List? getItem(ClassT clz) {
    return map.get(clz);
    }But if I have class MyList implements ListObject then the code below doesn't work

    Class? extends MyList param = getItem(Object.class);because we pass ClassObject but return ClassList?, not ClassListObject.
    I am asking about that because don't want to do unchecked conversion. And just wonder if it's ever possible
    in Java. That is very good case to use generics here.

  • RELEVANCY SCORE 2.33

    DB:2.33:Aiff To Aac jx


    All my music on my Mac and TV is in AIFF format. I'd like to put some albums on an iPod but need to convert back to AAC first to save space. But iTunes won't let me. Although the files are AIFF (confirmed by ctrl click info, and by cmd I, and by the file size) the advanced tab in iTunes has all conversion options greyed out except for "convert to AIFF". Any ideas?Thanks

    DB:2.33:Aiff To Aac jx

    Thanks, that worked. But as soon as I saw a response from "Jolly Giant" I knew it would be good. Used to enjoy your contributions to the TV forum but don't go there since they introduced the black version

  • RELEVANCY SCORE 2.32

    DB:2.32:Need Help With A Birthday Program 3f


    hey all!
    i'm trying to make a program where the user types in the day their birthday is the current year and which year they were born in. then the program tells the user which day they were born in. however, my program mucks up with the day it comes up with, so, could anyone help?
    import javax.swing.*;
    import java.util.Scanner ;
    import java.util.Random;
    import java.awt.FlowLayout;
    import javax.swing.event.DocumentListener;
    import javax.swing.event.DocumentEvent;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.*;
    class dateofbirth extends JFrame implements ActionListener, ItemListener {
    public static void main(String args[]){
    new dateofbirth();
    }
    int day;
    int leap;
    int sig = 0;
    int y1;
    int y2;
    String dob;
    JComboBox b1 = new JComboBox();
    JComboBox b3 = new JComboBox();
    JComboBox b4 = new JComboBox();
    JComboBox b5 = new JComboBox();
    JComboBox b6 = new JComboBox();
    JButton glo = new JButton("go!");
    JLabel result = new JLabel();
    JLabel j1 = new JLabel("press which day you'r birthday this year is");
    JLabel j2 = new JLabel("click on the current year");
    JLabel j3 = new JLabel("then year of birth, in 3 catagories(1000's, 10's units)");
    public dateofbirth(){
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) ;
    setTitle("which day were you born on?");
    setLayout(new FlowLayout());
    add(result);
    add(j1);
    add(b1);
    b1.addItem("");
    b1.addItem("monday");
    b1.addItem("tuesday");
    b1.addItem("wednesday");
    b1.addItem("thursday");
    b1.addItem("friday");
    b1.addItem("saturday");
    b1.addItem("sunday");
    b1.addItemListener(this);
    add(j2);
    add(b3);
    b3.addItem("");
    b3.addItem("2008");
    b3.addItemListener(this);
    add(j3);
    add(b4);
    b4.addItem("");
    b4.addItem("20");
    b4.addItem("19");
    b4.addItemListener(this);
    add(b5);
    b5.addItem("");
    b5.addItem("0");
    b5.addItem("9");
    b5.addItem("8");
    b5.addItem("7");
    b5.addItem("6");
    b5.addItem("5");
    b5.addItem("4");
    b5.addItem("3");
    b5.addItem("2");
    b5.addItem("1");
    b5.addItemListener(this);
    add(b6);
    b6.addItem("");
    b6.addItem("0");
    b6.addItem("9");
    b6.addItem("8");
    b6.addItem("7");
    b6.addItem("6");
    b6.addItem("5");
    b6.addItem("4");
    b6.addItem("3");
    b6.addItem("2");
    b6.addItem("1");
    b6.addItemListener(this);
    add(glo);
    glo.addActionListener(this);
    pack();
    setVisible(true);
    }
    public void itemStateChanged(ItemEvent e){
    if(b1.getSelectedItem().equals("monday")){
    day = 7;
    }
    if(b1.getSelectedItem().equals("tuesday")){
    day = 6;
    }
    if(b1.getSelectedItem().equals("wednesday")){
    day = 5;
    }
    if(b1.getSelectedItem().equals("thursday")){
    day = 4;
    }
    if(b1.getSelectedItem().equals("friday")){
    day = 3;
    }
    if(b1.getSelectedItem().equals("saturday")){
    day = 2;
    }
    if(b1.getSelectedItem().equals("sunday")){
    day = 1;
    }
    if(b3.getSelectedItem().equals("2008")){
    y1 = 2008;
    }
    if(b4.getSelectedItem().equals("20")){
    y2 = y2 + 2000;
    b4.setEnabled(false);
    }
    if(b4.getSelectedItem().equals("19")){
    y2 = y2 + 1900;
    b4.setEnabled(false);
    }
    if(b5.getSelectedItem().equals("0")){
    y2 = y2 + 00;
    b5.setEnabled(false);
    }
    if(b5.getSelectedItem().equals("1")){
    y2 = y2 + 10 ;
    b5.setEnabled(false);
    }
    if(b5.getSelectedItem().equals("2")){
    y2 = y2 + 20;
    b5.setEnabled(false);
    }
    if(b5.getSelectedItem().equals("3")){
    y2 = y2 + 30;
    b5.setEnabled(false);
    }
    if(b5.getSelectedItem().equals("4")){
    y2 = y2 + 40;
    b5.setEnabled(false);
    }
    if(b5.getSelectedItem().equals("5")){
    y2 = y2 + 50;
    b5.setEnabled(false);
    }
    if(b5.getSelectedItem().equals("6")){
    y2 = y2 + 60;
    b5.setEnabled(false);
    }
    if(b5.getSelectedItem().equals("7")){
    y2 = y2 + 70;
    b5.setEnabled(false);
    }
    if(b5.getSelectedItem().equals("8")){
    y2 = y2 + 80;
    b5.setEnabled(false);
    }
    if(b5.getSelectedItem().equals("9")){
    y2 = y2 + 90;
    b5.setEnabled(false);
    }
    if(b6.getSelectedItem().equals("0")){
    y2 = y2 + 0;
    b6.setEnabled(false);
    }
    if(b6.getSelectedItem().equals("1")){
    y2 = y2 + 1;
    b6.setEnabled(false);
    }
    if(b6.getSelectedItem().equals("2")){
    y2 = y2 + 2;
    b6.setEnabled(false);
    }
    if(b6.getSelectedItem().equals("3")){
    y2 = y2 + 3;
    b6.setEnabled(false);
    }
    if(b6.getSelectedItem().equals("4")){
    y2 = y2 + 4;
    b6.setEnabled(false);
    }
    if(b6.getSelectedItem().equals("5")){
    y2 = y2 + 5;
    b6.setEnabled(false);
    }
    if(b6.getSelectedItem().equals("6")){
    y2 = y2 + 6;
    b6.setEnabled(false);
    }
    if(b6.getSelectedItem().equals("7")){
    y2 = y2 + 7;
    b6.setEnabled(false);
    }
    if(b6.getSelectedItem().equals("8")){
    y2 = y2 + 8;
    b6.setEnabled(false);
    }
    if(b6.getSelectedItem().equals("9")){
    y2 = y2 + 9;
    b6.setEnabled(false);
    }
    }
    public void actionPerformed(ActionEvent e){
    day ++;
    while(y2 y1){
    y2 --;
    day ++;
    leap ++;
    if(leap == 4){
    leap = 0;
    day ++;
    }
    if(day == 8){
    day = 1;
    }
    if(day == 9){
    day = 2;
    }
    }
    if(y2 == y1){
    day ++;
    if(day == 1){
    dob = "sunday";
    }
    if(day == 2){
    dob = "saturday";
    }
    if(day == 3){
    dob = "friday";
    }
    if(day == 4){
    dob = "thursday";
    }
    if(day == 5){
    dob = "wednesday";
    }
    if(day == 6){
    dob = "tuesday";
    }
    if(day == 7){
    dob = "monday";
    }
    result.setText(dob);
    }
    }
    }thanks

    DB:2.32:Need Help With A Birthday Program 3f

    sorry about response dalay, there have been a few difficulties.
    its homework, but i still have time. there's only one problem with it and i'm not sure what it is

  • RELEVANCY SCORE 2.32

    DB:2.32:Flat File Conversion fx


    when creating a flat file through oracle report builder 6i. i am using form like wizard.
    and saving this file output as delemited by 'return' and save file in txt format.
    it shows 3 lines for 3 columns.
    e.g sailing.txt
    sailingrptF
    30460509200717092007
    END-sailingrpt

    after sending this sailing.txt to unix server. it gets extra characters like ctrl m in the end of each line. how to remove this extra character like ctrl m.

    can any one solve my problem? please reply as soon as possible. its very very urgent.

    thanks and regards.
    sangita sorathia
    goon_sjs@yahoo.co.in

    DB:2.32:Flat File Conversion fx

    hi thanks for responding...

    i am using oracle report builder 6i. in this i am using form like report wizard.
    my query is like :

    SELECT lpad('sailingrpt' ||MESSAGE_TYPE,13),
    lpad(ROTN_NO||chr(29)||
    to_char(ROTN_DATE,'ddmmrrrr')||chr(29)
    ||to_char(SAILING_DATE,'ddmmrrrr')||chr(29),23),lpad('END-sailingrpt',16)
    FROM CUS_SAILINGRPT_T
    where ROTN_NO=:rotationno

    and i got output like:
    sailingrptF 30390309200717092007 END-sailingrpt

    after that i generated file to Delimited (delimiter : return ) then i got out put in .txt file
    like :
    sailingrptF
    30390309200717092007
    END-sailingrpt

    then this 3 lines flat file has to transfer to custom. they are using unix o.s. in their vi editor
    they got error while transfering. because they got ^M after first and second line.
    so please help me what i have to do.

    Is there any way to generate flat file from database in this 3 lines format??

    Format is like
    sailingrptF
    30390309200717092007
    END-sailingrpt

    thanks and regards,
    Sangita

  • RELEVANCY SCORE 2.32

    DB:2.32:Conversion Of An Actuate Report To Bi Publisher Fails d8


    Hi all,

    After I started an conversion of an actuate report to BIP using the conversion tool (version 2), the batch process just stops. It writes successfully to the logfile that some of the elements have been converted,

    i.e.

    "2010/02/09 04:02:462 Element "Extended_Price" converted with value
    "?value-of:psfn:Format(psfn:CDbl(ssNAIExtendedLineTotal),"#,###.00","pt_BR") + gCurrencyCode?"."

    However the process never stops, so the batch window just sits there. I have to cancel the job with Ctrl+c.

    Has anyone else experienced this behavior and found a root cause for it?

    Thanks,
    Babu

    DB:2.32:Conversion Of An Actuate Report To Bi Publisher Fails d8

    Hi all,

    After I started an conversion of an actuate report to BIP using the conversion tool (version 2), the batch process just stops. It writes successfully to the logfile that some of the elements have been converted,

    i.e.

    "2010/02/09 04:02:462 Element "Extended_Price" converted with value
    "?value-of:psfn:Format(psfn:CDbl(ssNAIExtendedLineTotal),"#,###.00","pt_BR") + gCurrencyCode?"."

    However the process never stops, so the batch window just sits there. I have to cancel the job with Ctrl+c.

    Has anyone else experienced this behavior and found a root cause for it?

    Thanks,
    Babu

  • RELEVANCY SCORE 2.32

    DB:2.32:Turn Off Open Browser After Export As Html Possible? 3c



    Hi - every time I do a CTRL+E to export my Muse to HTML, then click OK to begin, it generates then automatically opens IE browser. This is really annoying. Is there a way to just tell Muse to NOT open a browser after HTML conversion is finished?

    Thanks.

    DB:2.32:Turn Off Open Browser After Export As Html Possible? 3c


    Hello

    It is the default functionality in Muse that it opens the site in the default browser to show you how the site looks. This functionality can't be changed. When you make changes to the site and then export, you get this prompt, where you can choose to view site or not: http://prntscr.com/373xr3

    Cheers

    Parikshit

  • RELEVANCY SCORE 2.32

    DB:2.32:Multipage Combobox Excel 2007 On Multipage2, Additem ck


    The ComboBox on the second page of my MultiPage UserForm is not populating. I am a beginner with VBA and manage well with the 1st page, it is the subsequent pages that I can't navigate too well. I need help getting my Code correct, please see what I am
    attempting to do with a ComboBox on the second page Name MultiPage2as copied below. Thanks in advance!
    Private Sub UserForm_MultiPage2_Initialize()
    txtFirstName.Value = ""
    txtLastName.Value = ""

    txtStreetAddress.Value = ""

    txtCity.Value = ""

    txtZip.Value = ""

    cboState.Value = ""

    With cboState
    .AddItem ALABAMA
    .AddItem ALASKA
    .AddItemEtc
    End With

    txtFirstName.SetFocus

    End Sub

    DB:2.32:Multipage Combobox Excel 2007 On Multipage2, Additem ck

    This:
    Private Sub UserForm_MultiPage2_Initialize()
    isn't a built in event.
    If you're calling that procedure from another subroutine, then that's not the
    problem.
    But if you're thinking that this event will be called like userform_initialize
    will, then that's the problem.
    You could either merge your code into userform_initialize procedure (or some
    other procedure???) or have that procedure call yours.
    Private Sub UserForm_Initialize()
    Call UserForm_MultiPage2_Initialize
    End Sub
    ======
    Just a note...
    If you're looking for those built-in procedures, you can use the dropdowns at
    the top of the code window in the VBE. The combobox at the top left will show
    you the controls/objects/categories and the combobox on the right will show you
    the options that are built into excel. (And stuff you've created--so be
    careful!)
    Val, Lisa wrote:

    Thank you Andreas. I did notice the missing quotes after I copied and fixed it, however, the states were still not populating in the dropdown list. I tried a couple of changes to the Sub and put it back with all the MultiPage1 statements and its working now.

    Thanks again!

    --
    Dave Peterson

  • RELEVANCY SCORE 2.32

    DB:2.32:Button Output, Using Multilined Textbox pj


    Hey guys I've recently asked help on Multilined Textboxes. And from that i came up with this:
    Dim Str() As String = New String() {String.Empty, String.Empty, String.Empty, String.Empty, String.Empty}
    '0 = First Line
    Str(0) = (if (command.equalsIgnoreCase( + TextBox1.Text + ) playerRights = ) + playerrights1.Text + () {)
    Str(1) = (// addItem( + TextBox2.Text + , + TextBox10.Text + );)
    Str(2) = ( addItem( + TextBox6.Text + , + TextBox7.Text + );)
    Str(3) = ( addItem( + TextBox5.Text + , + TextBox8.Text + );)
    Str(4) = ( addItem( + TextBox4.Text + , + TextBox9.Text + );)
    Str(5) = ( sendMessage( + TextBox4.Text + ()) + ();)
    Str(6) = ( })
    equation1.Lines = Str
    I get an error on Str(5) I've used this before on another Form And it worked fine, you guys got any suggestions?by the way Str(5) is supposed to in NORMAL ENGLISH give me this: sendMessage( TEXTBOX4.TEXT );Hope you guys can help

    DB:2.32:Button Output, Using Multilined Textbox pj

    I dont understand what your blabbing about can you be more helpful? give an example
    Nice language very disrespectful . I will give you an answer anyway . You have this lineDim Str() As String = New String() {String.Empty, String.Empty, String.Empty, String.Empty, String.Empty}Dim Str() as string declares a memory reference to hold an array of type string but as yet does not contain anything . You initialize the array by setting the 5 values {String.Empty, String.Empty, String.Empty, String.Empty, String.Empty} now you no longer have an empty memory reference you have anarray , you have an array of 5 empty strings you have set it's size by giving it values .Str(0) , Str(1), Str(2) , Str(3) , and Str(4) hold your 5 empty strings . You can not assign a value to Str(5) because that is larger than the array . If you want to create another two elements and make the array larger you must useRedim Str(6) or Redim Preserve Str(6) . The Preserve keyword resizes the array and keeps it's values without the Preserve keyword the array will resize but it will also erase all of it's values . Either that or do as ra_smith said and add two more String.Empty to the line that you initialize the array and make it 7 elements in size to fit your code Str(6) is the 7th element of the array . Arrays in VB are zero based which means they start thier index numbers from 0 .

    Coding4fun Be a good forum member mark posts that contain the answers to your questions or those that are helpful Please format the code in your posts with the button . Makes it easier to read . Or use the Forum Code Formatter by JohnWein http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/bf977a14-d9d4-4e84-9784-bf76b9e23261

  • RELEVANCY SCORE 2.32

    DB:2.32:One Line Multi Column Listbox Mouse Click Or Mouse Dwon Events Not Responding In Windows 7 mp


    'Windows 7 Bug
    'One Line Multi Column ListBox : Mouse Click Or Mouse Dwon Events Not Responding in Windows 7
    'Responding Only keyboard. (Mouse Not Responding)

    'vb.net Sample
    With ListBox1
    .Width = 170
    .Height = 16
    .MultiColumn = True
    .ColumnWidth = 50

    .Items.Add (1)
    .Items.Add (2)
    .Items.Add (3)
    .Items.Add (4)
    .Items.Add (5)
    End With

    'vb6 Sample
    With ListBox1
    '.Columns = 3 '//design time setting
    .Height = 300 '//Form ScaleMode Twip
    .Width = 2000

    .AddItem "1"
    .AddItem "2"
    .AddItem "3"
    .AddItem "4"
    .AddItem "5"
    .ListIndex = 0
    End With

    DB:2.32:One Line Multi Column Listbox Mouse Click Or Mouse Dwon Events Not Responding In Windows 7 mp

    Hello joajoa,

    Thank you for posting in the Microsoft Answers Forum.

    The Microsoft Answers Forum is for consumers with issues in Windows 7, Windows Vista and Windows XP.
    Since your issue only deals with Visual Basic, it would be best to post in the Visual Basic Forum.
    Click
    here to post in that forum.

    Sincerely

    Marilyn
    Microsoft Answers Support Engineer
    Visit our
    Microsoft Answers Feedback Forum and let us know what you think

  • RELEVANCY SCORE 2.32

    DB:2.32:Issue With Concantenating Statements kf



    I have aline of code

    .AddItem ((rs![APPT] rs![DESIGNATION]))

    it works fine. however, when i put a comma inside the .additem statement
    .AddItem ((rs![APPT] , rs![DESIGNATION]))
    the results are only rs![APPT] without the concantenation of rs![DESIGNATION]
    Does the , somehow signify the end of the .additem statement?

    Thanks.

    DB:2.32:Issue With Concantenating Statements kf


    The comma is used to separate the entries for multiple columns, if your list box or combo box has multiple columns.

    I think it's necessary to add that it depends on Windows settings. Thus not only a comma but a semicolon, as an example, may be used as the list separator.
    Control Panel - Region and Language - Formats - Additional settings - Numbers - List separator.

    It's really important because while readingthis question I don't even think about such a simple and obvious answer. We have a semicolon by default.
    Andrey V Artemyev | Saint-Petersburg, Russia
    Russian blog artemyev.biztoolbox.ru

  • RELEVANCY SCORE 2.32

    DB:2.32:Excel Building A Combo Box List c3


    Hi
    I have used VBA to build a combo box list (see Below) Ihave other combo boxes on the same userform that use the same list Comshift1 to 16. I am aware that i can use the rowsource function for the combo box. I would prefer to build the list
    in VBA. Is it possible to amend the code to display the list in several combo boxes eg Comshift1 Comshift 2
    Private Sub UserForm_Initialize()

    With Me.Comshift
    .AddItem Rest
    .AddItem Early
    .AddItem Late
    .AddItem Nights
    End With

    Thanks for help in advance,
    Gerry

    DB:2.32:Excel Building A Combo Box List c3


    Thanks Hans

    Works Perfect as usual.

    Belated Happy New Year to you and yours.

    Thanks Again.

    Gerry

  • RELEVANCY SCORE 2.32

    DB:2.32:Signed Applet Error : Java.Security.Accesscontrolexception 37


    I have a signed applet that used the FtpBean package to read a file from the users computer and FTP it to my server.

    I am getting the following error:

    java.security.AccessControlException: access denied (java.io.FilePermission)

    Before I switched to using FtpBean my applet worked fine but now it can't seem to read files. It works fine from applet viewer.
    Any help would be greatly appreciated, thanks.

    - - - FtpBean Link - - -

    http://www.geocities.com/SiliconValley/Code/9129/javabean/ftpbean/

    - - - My Applet - - - -

    import java.applet.*;
    import ftp.*;

    public class filexfer extends Applet
    {

    public String serverName, userName, userPass, localFile, remoteFile, ftpStatus;
    FtpBean ftp;
    StringBuffer buffer;

    // Get Applet Parameters and Setup Other Vars
    public void init()
    {
    ftp = new FtpBean();
    ftpStatus = "starting";
    buffer = new StringBuffer();
    addItem("Starting upload engine");
    serverName = getParameter("server");
    userName = getParameter("username");
    userPass = getParameter("password");
    localFile = getParameter("localfile");
    remoteFile = getParameter("remotefile");
    addItem("Uploading file "+localFile);
    }

    // Start File Transfer
    public void start ()
    {

    // Try To Establish Connection
    try
    {
    ftp.ftpConnect(serverName, userName, userPass, "wonderfile");
    String ftpOk = ftp.getSystemType();

    // If Connection Is Ok Try To Send File
    if(ftpOk!=null)
    {

    ftpStatus = "starting transfer";
    addItem("starting transfer");

    try
    {
    ftp.putBinaryFile(localFile, remoteFile);
    ftp.close();
    ftpStatus = "complete";
    addItem("FTP transfer complete");
    }
    catch(Exception e)
    {
    ftpStatus = "failed";
    addItem("FTP transfer failed");
    System.out.println(e);
    ftp.close();
    }
    }
    }
    catch (Exception e)
    {
    ftpStatus = "failed";
    addItem("Could not contact ftp server");
    System.out.println(e);
    }

    }

    public void stop ()
    {
    }

    public String uploadStatus()
    {
    return ftpStatus;
    }

    void addItem(String newMsg)
    {
    System.out.println(newMsg);
    buffer.append(newMsg);
    }

    }

    DB:2.32:Signed Applet Error : Java.Security.Accesscontrolexception 37

    I have a signed applet that used the FtpBean package to read a file from the users computer and FTP it to my server.

    I am getting the following error:

    java.security.AccessControlException: access denied (java.io.FilePermission)

    Before I switched to using FtpBean my applet worked fine but now it can't seem to read files. It works fine from applet viewer.
    Any help would be greatly appreciated, thanks.

    - - - FtpBean Link - - -

    http://www.geocities.com/SiliconValley/Code/9129/javabean/ftpbean/

    - - - My Applet - - - -

    import java.applet.*;
    import ftp.*;

    public class filexfer extends Applet
    {

    public String serverName, userName, userPass, localFile, remoteFile, ftpStatus;
    FtpBean ftp;
    StringBuffer buffer;

    // Get Applet Parameters and Setup Other Vars
    public void init()
    {
    ftp = new FtpBean();
    ftpStatus = "starting";
    buffer = new StringBuffer();
    addItem("Starting upload engine");
    serverName = getParameter("server");
    userName = getParameter("username");
    userPass = getParameter("password");
    localFile = getParameter("localfile");
    remoteFile = getParameter("remotefile");
    addItem("Uploading file "+localFile);
    }

    // Start File Transfer
    public void start ()
    {

    // Try To Establish Connection
    try
    {
    ftp.ftpConnect(serverName, userName, userPass, "wonderfile");
    String ftpOk = ftp.getSystemType();

    // If Connection Is Ok Try To Send File
    if(ftpOk!=null)
    {

    ftpStatus = "starting transfer";
    addItem("starting transfer");

    try
    {
    ftp.putBinaryFile(localFile, remoteFile);
    ftp.close();
    ftpStatus = "complete";
    addItem("FTP transfer complete");
    }
    catch(Exception e)
    {
    ftpStatus = "failed";
    addItem("FTP transfer failed");
    System.out.println(e);
    ftp.close();
    }
    }
    }
    catch (Exception e)
    {
    ftpStatus = "failed";
    addItem("Could not contact ftp server");
    System.out.println(e);
    }

    }

    public void stop ()
    {
    }

    public String uploadStatus()
    {
    return ftpStatus;
    }

    void addItem(String newMsg)
    {
    System.out.println(newMsg);
    buffer.append(newMsg);
    }

    }

  • RELEVANCY SCORE 2.32

    DB:2.32:Supressing Actionlistener mp


    I have an ActionListener running on a JComboBox
    how do i prevent it from firing ActionPerformed when i do a addItem();

    DB:2.32:Supressing Actionlistener mp

    Another way is to use a boolean

    ignoreEvent = true;
    addItem...
    ignoreEvent = false;

    Then in actionPerformed(...) check the boolean

    if (!ignoreEvent)
    doSomething(...);

  • RELEVANCY SCORE 2.32

    DB:2.32:Control Order Getting Chnaged When Adding Control To Tablelayoutpanel 7j



    private void AddItem(Control ctrl)
    {
    ListControl controlCollection = new ListControl();
    int inc = 0;
    foreach (Control control in tbl.Controls)
    {
    controlCollection.Add(control);
    }
    controlCollection.Add(ctrl);
    tbl.RowStyles.Clear();
    tbl.Controls.Clear();
    foreach (Control ctl in controlCollection)
    {
    tbl.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F));
    tbl.RowStyles.Add(new RowStyle(SizeType.Percent, 100F / controlCollection.Count - 1));
    tbl.Controls.Add(ctl, 0, tbl.RowCount - 1);
    }
    }
    private void AddText_Click(object sender, EventArgs e)
    {
    TextBox txt = new TextBox();
    txt.Multiline = true;
    txt.Dock = DockStyle.Fill;
    AddItem(txt);
    }I clicked the AddText button and i entered 1 in the TextBox
    For Second Time click i entered 2 and so on.
     
    The Problem is Upto three its added as
    3
    2
    1for the fourth click34 --- new control for this click21and after its randomlly choosing its place.I want in this order1 -- First click2 -- Second Click3.....New Control should be added at end
    One more problem is,Some times the last control appears bigger than the rest of controls. what is the solution 

    Mohanavel

    DB:2.32:Control Order Getting Chnaged When Adding Control To Tablelayoutpanel 7j

    The reason is that you are not adding any rows (by setting TableLayoutPanel.RowCount), so tbl.RowCount is always 1.You can fix this easily by changing AddItem like this:
    private void AddItem(Control ctrl)
    {

    ListControl controlCollection = new ListControl();

    foreach (Control control in tbl.Controls)
    controlCollection.Add(control);

    controlCollection.Add(ctrl);
    tbl.RowStyles.Clear();
    tbl.Controls.Clear();

    // Set RowCount to the number of rows we need (one for each control)
    tbl.RowCount = controlCollection.Count;
    int insertRow = 0;

    foreach (Control ctl in controlCollection)
    {
    tbl.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F));
    tbl.RowStyles.Add(new RowStyle(SizeType.Percent, 100F / controlCollection.Count - 1));
    tbl.Controls.Add(ctl, 0, insertRow++);
    }
    }

    This whole business could be done a lot simpler, but maybe now that you understand you have to set the row count to the number of rows you want in a TableLayoutPanel, you'll see the simpler solution.

  • RELEVANCY SCORE 2.32

    DB:2.32:How To Include Space Between Radio Buttons? mj



    Hi

    I would like to know how to include space between radio buttons while using classlib.

    Below is my code snippet:-

    RadioButtonGroup rbg1 = new RadioButtonGroup("rbg0"+i);

    rbg1.setColumnCount(3);

    rbg1.addItem("3","");

    rbg1.addItem("2","");

    rbg1.addItem("1","");

    I tried including text and setting encode to false but I got an exception:-

    rbg1.addItem(3,"include Space");

    rbg1.setEncode(false);

    setEncode throws exception-symbol cannot be resolved.Do I have to include some imports to resolve this error?

    DB:2.32:How To Include Space Between Radio Buttons? mj


    Hi,

    The method setEncode is for format the html text it does not help to include space between your texts.

    Tell me what exactly you want to do? Place your code here.

    Regards

    Suresh

  • RELEVANCY SCORE 2.32

    DB:2.32:Problem With Additem p9


    error

    Message was edited by:
    user586686

    DB:2.32:Problem With Additem p9

    error

    Message was edited by:
    user586686

  • RELEVANCY SCORE 2.32

    DB:2.32:How To Stop The List From Dropdown List From Getting Longer When Refreshing? za


    Hello!
    I have problem fixing only 7 additems on the dropdown list instead of seeing longer additems.
    Combo.GotFocus event (in VFP 6.0)
    with thisform.pf1.page2
    select actcfadd
    set order to ctcfadd
    seek thisform.pf1.page1.bkg_cgnee.value
    .combo12.additem('')
    .combo12.additem(ctc_ttruc1)
    .combo12.additem(ctc_ttruc2)
    .combo12.additem(ctc_ttruc3)
    select actcfadd
    set order to ctcfadd
    seek 'MERL'
    .combo12.additem(ctc_ttruc1)
    .combo12.additem(ctc_ttruc2)
    .combo12.additem(ctc_ttruc3)
    endwith
    The result should be
    (blank)
    CHEM
    HEUN
    KEMI
    ERAW
    REJO
    YULG
    instead of
    (blank)
    (blank)
    CHEM
    CHEM
    HEUN
    HEUN
    KEMI
    KEMI
    ERAW
    ERAW
    REJO
    REJO
    YULG
    YULG when refreshing the combo.Just a VPF version 6 Beginner!