DataBinding for a JLIST

I'm looking for a simple databinding for a JList that will allow it to show the values of a ViewObject. My specific problem is that I have a many to many relationship and my user wants to be able to
1)Select many values from one JList (Available List)
2)Click a ">" move over button
3) and populate another JList (Selected List)
When the user clicks the ">" button I want to insert rows into the Intersection table. My main problem is in the refreshing of the JList to show these new values that should be in the Selected List.
I have a simple work around to use a single column JTable instead of the JLists.
Are there no simple databindings for a JList? I've looked at the LOV, Enumeration, and Navigation bindings but none suite my specific need.
thanks
Jeff Hillier

I'm looking for a simple databinding for a JList that will allow it to show the values of a ViewObject. My specific problem is that I have a many to many relationship and my user wants to be able to
1)Select many values from one JList (Available List)
2)Click a ">" move over button
3) and populate another JList (Selected List)
When the user clicks the ">" button I want to insert rows into the Intersection table. My main problem is in the refreshing of the JList to show these new values that should be in the Selected List.
I have a simple work around to use a single column JTable instead of the JLists.
Are there no simple databindings for a JList? I've looked at the LOV, Enumeration, and Navigation bindings but none suite my specific need. There's no support for multiple selection list binding. However if you do not want any targets to be updated you could use lov binding with 'no attributes selected in the source/target attribute mappings". Only select the display attributes. In affect you're saying use this Attribute(s) from this VO to fill in this list. You'd then have to modify the list selection model to allow multiple selection and then perform your own manipulation on the arrow button. On the selected side however, your list is filled in with data from selection and Swing allows you to insert such data into listbox. However there's no support built-in to take that and create 'rows' in a VO. You'd have to program such an implementation using basic Swing/JList/ListModel functionality.
thanks
Jeff Hillier

Similar Messages

  • Not able to set databinding for dropdown with another list datasource

    Hi
    I have created one dataviewwebpart on the basis of list1.
    Now I want to add one dropdown in one of the column which will display the values of another list.
    So I added link datasource as list2 for another datasource.
    I want to display versionID's  from another list for the item present in the row to this dropdown and when user click on icon I will pass selected version ID and ItemID(available in the row). So the user will able to see the selected version of the
    seleted item in another list.
    But I am not able to select versionID form list2 in "Change databinding" for the dropdown.
    In select a datasource dropdown its not showing the linked datasource of List2.
    What can I do ?
    Is there any other solution ? Am I missing anything?

    Hi,
    I recommend to edit the dropdown control with the code below:
    <SharePoint:DVDropDownList runat="server" id="ff5{$Pos}" DataSourceID="FilteredLookup" DataTextField="Title" DataValueField="Title" SelectedValue="{@MathTeachers}" __designer:bind="{ddwrt:DataBind('u',concat('ff5',$Pos),'SelectedValue','SelectedIndexChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@MathTeachers')}"/>
    Please remember to change the id, DataSourceID, DataTextField, DataValueField and SelectedValue to the value in your page code.
    More reference:
    https://www.mriwm.com/Public/PamBlog/Lists/Posts/Post.aspx?ID=39
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Arrows in a text field / Common scroll for a jlist and a graphic field

    I am developing a software which requires me to dynamically add arrows from one list entry to another(depending on the users respone) in a jlist.
    Is there any method to do that directly or by means of two parralel fields(one for the list and other for the arrows) controlled by a single scroll????
    Cheers!!!

    I don't understand the question, but read the Swing tutorial on "How to Use Lists" which shows the proper way to add and remove items from a JList:
    http://java.sun.com/docs/books/tutorial/uiswing/components/list.html
    If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)", that demonstrates the incorrect behaviour.
    http://homepage1.nifty.com/algafield/sscce.html
    Don't forget to use the "Code Formatting Tags", so the posted code retains its original formatting.
    http://forum.java.sun.com/help.jspa?sec=formatting

  • File Filter for a Jlist

    I'm new to filtereing, ive been looking on site and this one, but can't quite get round the filtering process.
    Most filter examples I've seen are for Filechooser, but this program is a Jlist.
    I wish to show only one file type, namely an AVI format.
    Can anyone help
    import javax.swing.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.io.File;
    import java.io.FileFilter;
    class Test2 extends JFrame
      DefaultListModel dim = new DefaultListModel();
      JList list = new JList(dim);
      private FileFilter fileFilter;
      public Test2()
        setLocation(200,100);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        JScrollPane sp = new JScrollPane(list);
        sp.setPreferredSize(new Dimension(150,200));
        FNameFilter filter = new FNameFilter();
        File directory = new File(".");
        File[] files = directory.listFiles(filter);
        for(int x = 0; x < files.length; x++)
            if(files[x].isFile()) dim.addElement(files[x].getName().toLowerCase().endsWith("txt"));
        JPanel panel = new JPanel();
        JButton btn = new JButton("Delete File");
        panel.add(btn);
        getContentPane().add(sp,BorderLayout.CENTER);
        getContentPane().add(panel,BorderLayout.SOUTH);
        pack();
        btn.addActionListener(new ActionListener(){
          public void actionPerformed(ActionEvent ae){
            int selectedIndex = list.getSelectedIndex();
            if(selectedIndex < 0)
              JOptionPane.showMessageDialog(null,"Please select file to delete");
            else
              File fileToDelete = new File((String)list.getSelectedValue());
              if(fileToDelete.delete()) dim.removeElementAt(selectedIndex);
       public static void main(String[] args){new Test().setVisible(true);}
    }

    I tried FileFilter, but the system wouldn'y excpt
    that.
    Would it be directly related to the file only.Just how did you try "FileFilter"? You know that you have to implement one first, don't you?

  • Changin the model for a JList

    I have a JCombo,
    and on the basis of the item selected in the combo my list is set with the appropriate ListModel. (using setModel)
    now if i select an item out of the ones displayed in the list when Item1 is selected in combo.
    and then i select item2 in the combo, what happens to the selection in the other model ???(i.e. when item1 in the combo was selected.)
    I actually wanted to respond to the selection events in the JList.............but as the selection is changed in the combo and the list is set with the appropriate model, i wanted to trap a deselect event (valueChanged Event) for the items previously selected in the list.......
    any idea what can be done about this????

    After wrapping setModel with SwingUtilities.invokeLater() (as Darryl sugested), it seems to work fine.
    I haven't received those random errors up to now (it's been two days). Hope they won't appear anymore.
    Thanks, Darryl.

  • ListSelectionListener for a jList

    Hi,
    I'm a student and need to code a simple applet retrieving e-mail on a pop server.
    Everything is doing fine, but to display the e-mails, i'm using a splitPane, with the list of e-mail at the top and the mail body at the bottom.
    The problem is that when i select a mail in the Jlist, it should display the body, but nothing happen. It seems it doesn't even go in the Event handler...
    Please help as i have to close this project for tomorow!
    Thanks anyway,
    nico
    here is the code :
    public void afficherListeMail(Folder folder)
            try
                // Check les messages du dossier et les stock dans un array
                final Message[] message = folder.getMessages();
                DefaultListModel model = new DefaultListModel();
                final JList jList1 = new JList(model);
                jList1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
                JScrollPane scrollingList = new JScrollPane(jList1);
                final JLabel mail = new JLabel("S�lectionnez un mail");
                mail.setVerticalAlignment(SwingConstants.TOP);
                JScrollPane mailbody = new JScrollPane(mail);
                JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, scrollingList, mailbody);
                splitPane.setDividerLocation(180);
                splitPane.setPreferredSize(new Dimension(800, 380));
                getContentPane().add(splitPane, new org.netbeans.lib.awtextra.AbsoluteConstraints(8, 75, 700, -1));
                String attributmessage = "n� //   From   //   Subject   //   Date";
                model.add(0, attributmessage);
                for (int i=0; i<=message.length; i++)
                    attributmessage = message.getMessageNumber() + " // " + message[i].getFrom()[0] + " // " +message[i].getSubject() + " // " + message[i].getSentDate();
    model.add(i+1, attributmessage);
    jList1.addListSelectionListener(new ListSelectionListener() {
    public void valueChanged(ListSelectionEvent evt) {
    int i = jList1.getSelectedIndex();
    try
    jLabel5.setText("r�cuperation du mail " + i + "...!");
    mail.setText(message[i].getContent().toString());
    repaint();
    catch (IOException ioe)
    jLabel5.setText("Impossible de lire le contenu du message!");
    catch (MessagingException me)
    jLabel5.setText("impossible de r�cuperer le mail d�sir�!");
    catch (MessagingException me)
    jLabel5.setText("impossible de r�cuperer les mails!");

    OK, but my code is a 810 lines, so i'll post this and let me know if you need more.
    here is my listselectionlistener
    //<editor-fold defaultstate="collapsed" desc="  updateFrontList SELECTION LISTER" >
        class FrontListSelectionListener implements ListSelectionListener {
            public Object[] frontListTempObj = new Object[myData.size()];
            public void valueChanged(ListSelectionEvent evt) {
                if (!evt.getValueIsAdjusting()) {
                    JList list = (JList)evt.getSource();
                    frontListTempObj = list.getSelectedValues();
                    for (int i = 0; i < frontListTempObj.length; i++) {
                        Object singleSelect = frontListTempObj;
    ImageIcon previewIcon = new ImageIcon(frontListTempObj[i].toString(), null);
    previewLabel.setIcon(previewIcon);
    //previewLabel.validate();
    }//</editor-fold>
    here is the button listen thingy
        class MyRemoveButtonActionListener implements ActionListener {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ArrayList<String> removeArray = new ArrayList<String>();
                //adds the selected file for deletion to an removeArray after the user confirmed
                for (int i = 0; i < frontListTempObj.length; i++) {
           ///-----it continues for a while, my error comes where i want to use frontlistempobj in the above.

  • Is it possible for a JList to have multiple columns..

    And also at the same time have its header also.
    Thanks in advance.

    Try this
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import java.text.*;
    public class SOSTester extends JFrame {
         public SOSTester() {
              JFrame thisFrame = new JFrame("Testing");
              Container thisCont = thisFrame.getContentPane();
              thisCont.setLayout(new BorderLayout(5,5));
              //// Start Testing
              String[] testList1 = new String[]{"AB","CD","EF"};
              JComboBox jcb = new JComboBox(testList1);
              jcb.setRenderer(new myRen());
              thisCont.add(jcb);
              //// End Testing
              thisFrame.pack();
              thisFrame.setBounds(200,200,400,50);
              thisFrame.setVisible(true);          
         public static void main(String args[]) { new SOSTester();}
    class myRen extends JPanel implements ListCellRenderer
         JPanel testPanel = null;
         //JPanel thisPanel = null;
         JLabel text1 = null;
         JLabel text2 = null;
         myRen()
              text1 = new JLabel("",10);
              text2 = new JLabel("",10);
              testPanel = new JPanel();
              testPanel.setLayout(new GridLayout(1,2));
              //testPanel.setLayout(null);
              testPanel.add(text1);
              testPanel.add(text2);
              //thisPanel = new JPanel(new BorderLayout(0,0));
              //thisPanel.add(testPanel, BorderLayout.CENTER);
         public Component getListCellRendererComponent(JList list, Object value, int idx, boolean isSel, boolean hasFocus)
              if (value!=null)
                   text1.setText(((String)value).substring(0,1));
                   text2.setText(((String)value).substring(1,2));
                   //text1.setBounds(5,0,20,25);
                   //text2.setBounds(25,0,20,25);
              testPanel.setBackground((isSel)?list.getSelectionBackground():list.getBackground());
              testPanel.setForeground((isSel)?list.getSelectionForeground():list.getForeground());
              //testPanel.setSize(30,30);
              return testPanel;
    }

  • "ADF Databinding for TopLink" - only one record?

    I went through this tutorial <http://otn.oracle.com/products/jdev/collateral/tutorials/9050/toplinkdatabinding_tut.html> and have successfully run it in the IDE, however, it only ever displays one record -- the paging buttuns don't seem to do anything.
    The only step where I think I might have introduced some error was in the renaming of the 'untitled.uix' file -- so for a while I would up with two uix files, and perhaps my struts flow page is not right.
    Should the 'browseDepartmentsDataAction' be pointing at itself?

    Ben,
    We are now successfully deploying from JDev 10g preview to OC4J 9.0.4. We /don't/ do the 'install runtimes' from JDev, and our WEB-INF\lib looks like this:
    03/17/2004  06:30p             235,178 bc4j_jclient_common.jar
    03/17/2004  06:30p             780,340 bc4jct.jar
    03/17/2004  06:30p             300,697 bc4jhtml.jar
    03/17/2004  06:30p           1,556,232 bc4jmt.jar
    03/17/2004  06:30p              40,883 bc4juixtags.jar
    03/17/2004  06:30p             259,265 collections.jar
    03/17/2004  06:30p             118,726 commons-beanutils.jar
    03/17/2004  06:30p             165,119 commons-collections.jar
    03/17/2004  06:30p             109,096 commons-digester.jar
    03/17/2004  06:30p             112,307 commons-el.jar
    03/17/2004  06:30p              22,379 commons-fileupload.jar
    03/17/2004  06:30p              63,980 commons-lang.jar
    03/17/2004  06:30p              31,605 commons-logging.jar
    03/17/2004  06:30p              46,865 commons-validator.jar
    03/17/2004  06:30p             133,694 datatags.jar
    03/17/2004  06:30p              16,982 graphtags.jar
    03/17/2004  06:30p              65,368 jakarta-oro.jar
    03/17/2004  06:30p               3,086 jsp-el-api.jar
    03/17/2004  06:30p           5,676,773 oc4j.jar
    03/17/2004  06:30p             815,637 ojc.jar
    03/17/2004  06:30p               3,503 oracle-el.jar
    03/17/2004  06:30p              29,871 regexp.jar
    03/17/2004  06:30p              53,389 servlet.jar
    03/17/2004  06:30p              55,994 share.jar
    03/17/2004  06:30p             498,051 struts.jar
    03/17/2004  06:30p           3,539,611 toplink.jar
    03/17/2004  06:30p           2,752,707 uix2.jar
    03/17/2004  06:30p               2,147 uixadfrt.jar
    03/17/2004  06:30p             974,690 xercesImpl.jar
    03/17/2004  06:30p             186,926 xmlcomp.jar
    03/17/2004  06:30p             687,065 xmlparserv2.jarIt sounds to me like something in your workspace is not in synch for the taglibs you're using. Note that JDeveloper automatically ads tld files to your project when you select taglibs, but if you're keeping your project in CVS and didn't add those files, then they may not be present if you check out your project on another machine.
    Also, we still have to copy the sessions.xml from classes/META-INF to classes/ in order for TopLink to find it.
    The sealing violation is probably from either a duplication of jars on your path, or JDeveloper opened up a jar into your WEB-INF/classes directory and the class is complaining that it's not in its original jar (or something like that.)
    Hope that helps...

  • DataBinding for source attribute of SWFLoader

    Instead of specifying an inline string parameter for the
    SOURCE field of an
    SWFLoader:
    <mx:SWFLoader id="map" width="100%" height="100%"
    source="file:///C|/FlexWork/flex maps/FlashMap/flashMap.swf"
    autoLoad="true"
    x="1" y="1" scaleContent="true"/>
    I would like to do something like data binding to reference a
    bindable
    attribute:
    <mx:SWFLoader id="map" width="100%" height="100%"
    source={sourceFile} autoLoad="true"
    x="1" y="1" scaleContent="true"/>
    <mx:String id="sourceFile">file:///C|/FlexWork/flex
    maps/FlahMap/flashMap.swf</mx:String>
    Is there something like this possible in Flex? (This example
    does not
    compile, since it says it is expected a quoted string for the
    value of
    SOURCE.

    Thank you,
    This works great. (I had thought that the quotes would have
    made the system
    think that this is a string literal, and kept the {} from
    being interpreted.
    Peter, my understanding is that the [Bindable] attribute
    (decoration) is
    basically, the same as declaring a type in MXML
    <mx:String>whatever</mx:String>
    Is there someting more? (other than it makes the property
    public?)
    "inlineblue" <[email protected]> wrote in
    message
    news:ecevob$iut$[email protected]..
    > Your code didn't compile because you forgot the quotes.
    You need them
    > around binding expressions too:
    >
    > source="{sourceFile}"

  • MultiLine tooltip for the JList item

    Hi,
    I did the search for the multiline tooltip in this forum and
    I found the following link which is kind of what I am looking for
    http://www.codeguru.com/java/articles/122.shtml
    Since the item tooltip string could be very long (no limit), I would like to truncate it. The line sepearator cannot be based on the \n of
    the tooltip text. I am thinking to fix size the JTextArea to: row 4
    and columan 40, and put the tooltip text into it (igoring the \n)
    with the setLineWrap(true) and setWrapStyleWord(true).
    If the JTextArea line goes more than 3, the tooltip text should only
    display the first 3 lines of the JTextArea and append "..." at the end
    of the 3rd line. Is is possible? Or someone has better idea? Or if
    there is sample code out there doing similar thing?
    Thanks,
    Pin

    why not just use html?
    return "<html> sometext<br>line2<br>line3</html>";
    Of course you'll have to manually break the line up but it's not all
    that hard to write.
    Mark

  • JTree as cell renderer for JList

    I have an application that requires to display a list of tree-structured data.
    So I've used JTree a the cell renderer for the JList, and I can see a list of trees with that data in.
    However, the Jtree doesn't respond to Mouse messages, even if I dispatch the to it manually. So the tree is essentially dead.
    Does anybody know how to fix this?

    I'm not sure if they have the same thing for lists though.Yes, it is so - a cellrenderer or celleditor is a component, that is only there during it is used - a cellrenderer is there as long as it needs to paint the contents, a celleditor is there, if an edit-process is invoked and it will get messages as long as the editing process continues - after finishing editing, the component is no longer there - normally the renderer is called after that, to render the new contents into the rectangle of that cell, because the contents in its non-editing state may look other than that from the editor during the editing-state.
    greetings Marsian

  • Item listener for JList

    Hi ,
    I have a doubt regarding how to add an ItemListener for a JList in
    java1.4.
    I wud be thankful if someone helps me out with a sample program.
    If it is not possible , wtz the reason .

    Here's a very basic JList, with a ListSelectionListener
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    class JListDemo extends JFrame implements ListSelectionListener
      DefaultListModel listModel = new DefaultListModel();
      JList list = new JList(listModel);
      public JListDemo()
        super("JList Demo");
        setSize(300,400);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        Container window = getContentPane();
        list.addListSelectionListener(this);
        list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        window.add(list);
        setLocation(400,300);
        setVisible(true);
        listModel.addElement("abc");
        listModel.addElement("Hello World");
        listModel.addElement("123");
      public void valueChanged(ListSelectionEvent lse)
        JOptionPane.showMessageDialog(null,list.getSelectedValue().toString());
      public static void main(String args[])
        new JListDemo();
    }

  • Already defined scrollPane for JList..but duzen appear...plzz elp..real thx

    I already defined JScrollPane for my JList...but it juz duzen wanna appear...i cant see anything wrong wid the code...plzz elp me solve this....i'd be really grateful...thanks alot ppl...da code is below:
    import java.awt.*;
    import javax.swing.*;
    class DrawGUI extends JFrame {
         String [] names = {"Jasima Bte Syed Syed Sulaiman",
                                  "Yang Shulei",
                                  "Nur Farina",
                                  "Lee Chee Chong",
                                  "Wang Ding Yu",
                                  "Sanjeev Singh",
                                  "Testing please",
                                  "wrk"};
         JList contactList = new JList(names);
         JScrollPane scrollPane = new JScrollPane(contactList);
         JButton btnAddContact = new JButton("Add Contact");
         JButton btnDeleteContact = new JButton("Delete Contact");
         JButton btnEditContact = new JButton("Edit Contact");
         JButton btnSearchContact = new JButton("Search");
         JLabel lblCurrentList = new JLabel("Current List of Contacts",JLabel.CENTER);
         JLabel lblSearch = new JLabel("Type in the Name of the Contact",JLabel.LEFT);
         JLabel lblProfile = new JLabel("Profile of Contact",JLabel.LEFT);
         JLabel lblPhoto = new JLabel(new ImageIcon("jasima.jpg"));
         JLabel lblName = new JLabel("Name: Jasima Bte Syed Sulaiman",JLabel.LEFT);
         JLabel lblNickname = new JLabel("Nickname: DJk|ddGA|",JLabel.LEFT);
         JLabel lblEmail = new JLabel("E-Mail Address: [email protected]",JLabel.LEFT);
         JLabel lblAddress = new JLabel("Address: Blk 123 Kuching Street #11-222",JLabel.LEFT);
         JLabel lblPostalCode = new JLabel("Postal Code: Singapore 650346");
         JLabel lblContactNoHome = new JLabel("Contact No(Home): 652123",JLabel.LEFT);
         JLabel lblContactNoMobile = new JLabel("Contact No(Mobile): 90029856",JLabel.LEFT);
         JTextField txtSearch = new JTextField();
         AddContactButtonListener addContactButtonListener = new AddContactButtonListener();
         EditContactButtonListener editContactButtonListener = new EditContactButtonListener();
         SearchContactButtonListener findContactButtonListener = new SearchContactButtonListener();
         public DrawGUI() {
              Container c = getContentPane();
              c.setLayout(null);
              c.add(contactList);
              c.add(scrollPane);
              c.add(btnAddContact);
              c.add(btnDeleteContact);
              c.add(btnEditContact);
              c.add(btnSearchContact);
              c.add(lblCurrentList);
              c.add(lblSearch);
              c.add(lblProfile);
              c.add(lblPhoto);
              c.add(lblName);
              c.add(lblNickname);
              c.add(lblEmail);
              c.add(lblAddress);
              c.add(lblPostalCode);
              c.add(lblContactNoHome);
              c.add(lblContactNoMobile);
              c.add(txtSearch);
              btnAddContact.addActionListener(addContactButtonListener);
              btnEditContact.addActionListener(editContactButtonListener);
              btnSearchContact.addActionListener(findContactButtonListener);
              contactList.setBounds(200,100,270,110);
              btnAddContact.setBounds(10,100,150,40);
              btnDeleteContact.setBounds(10,150,150,40);
              btnEditContact.setBounds(10,200,150,40);
              btnSearchContact.setBounds(380,335,90,30);
              lblCurrentList.setBounds(200,55,140,40);
              lblSearch.setBounds(200,250,200,40);
              lblProfile.setBounds(510,55,200,40);
              lblPhoto.setBounds(510,100,100,98);
              lblName.setBounds(510,250,300,20);
              lblNickname.setBounds(510,270,300,20);
              lblEmail.setBounds(510,290,300,20);
              lblAddress.setBounds(510,310,300,20);
              lblPostalCode.setBounds(510,330,300,20);
              lblContactNoHome.setBounds(510,350,300,20);
              lblContactNoMobile.setBounds(510,370,300,20);
              txtSearch.setBounds(200,295,270,30);
              setSize(800,500);
              setTitle("Contact Book");
              setVisible(true);
              setResizable(false);
              

    you should only be adding the scrollPane to the container not the list itself.

  • How to clear a  JList correctly.

    Hello,
    I haven't found yet how to clear a JList whitout raising an exception.
    I have defined a JList, that I initialize with a Vector. For example :
       JList mylist = new JList();
       Vector v =  new Vector(5);
       for (init i = 0; i<5; i++ )  v.add("Line " + i);
       mylist.setListData(v);
          .When the user needs to erase all lines, he has to click on a JButton. In the actionPerformed method, I'm doing the following
       Vector v = new  Vector();
       mylist.setListData(v);It works, but I got an ArrayOutBoundException. I tried many other things such as
    v.clear();
    mylist.setListData(v);
    but I got the same exception. So I was obliged to embed my instructions in a
    try-catch block:
       try
            Vector v = new  Vector();
            mylist.setListData(v);
      catch (Exception ex){}In fact , I do not like what I did , and I'm pretty sure it exists a much better way .
    Thanks in advance for any suggestion
    Gege

    This link has answer...
    http://forum.java.sun.com/thread.jspa?threadID=718897&messageID=4149627

  • How to do the multiple-line String at JList?

    hey everyone,
    i want to create a JList have to display multiple-line string.
    i have use String a="text1"+"\n"+"text2" inside my JList...
    the "\n" change to a sequare box...
    how cum like that.................??
    i need ur kindly helping...

    Because the default renderer for a JList element is a
    JLabel, and that is how JLabel behaves. The question
    "how to do a multiple-line JLabel" has been asked
    hundreds of times in this forum, search for that.i have search for it already but i no get it..anything!
    so, can u give me the url for me? thank you!

Maybe you are looking for

  • Cant Use Distiller  - OffendingCommand Error [9.3.317 Win]

    Every document i try to use distiller with i get the following:- %%[ Error: undefined; OffendingCommand: ÐÏ à¡± á ]%% %%[ Flushing: rest of job (to end-of-file) will be ignored ]%% %%[ Warning: PostScript error. No PDF file produced. ] %% Any clues o

  • Problem in proxy?

    hi all, i am generating INBOUND proxy and my structure in IR are..............datatype name:Empcards  and message type:Empcards so my quetion is were will i get the data and how can i declare it .....i have to pass all records into work area and i wa

  • Formating in Report 10G

    I am getting the following output. SNO GR BOOK SCNO BILLNO RCTNO RCTDATE RCT-AMT SNO GR BOOK SCNO BILLNO RCTNO RCTDATE RCT-AMT 1 592 E258 073688 9 291182 101108 6400 2 592 E256 085375 9 291183 101108 24900 3 592 E256 020404 9 291185 101108 97600 4 59

  • Low bandwidth with E3000 router

    Hello. I just purchased an E3000 router to replace my old d-link. We have Telia ADSL (8 Mbit) and I've had little or no problems using a router before. When my computer connects directly to the modem I get 7 Mbit out of the connection but with the E3

  • Belle update for Nokia C6-00

    Why Nokia is not giving Symbian Belle update for nokia C6-00 while Nokia 500 is running on same platform which is much cheaper than C6-00. I am using C6-00 from around 16 months and the software is really slow and it hangs multiple times in a day. Be