JList(Vector) inside JScrollPane vanishes!

Hi all, I have a problem thats driving me crazy, Im really stumped on this one;
Im trying to update the GUI on a packet sniffer I wrote a while ago,
I have a GUI class below as part of a larger program, this class containes a JList(Vector) inside a JScrollPane inside a JPanel inside a JFrame, I want this JList to be on the screen all the time, and grow dynamically as new elements are added to the Vector.
Elements are added via an accessor method addPacket(Capture), you can assume the other classes in my program work fine.
The problem is, the JFrame periodically goes blank, sometimes the scrollbars are present, sometimes not. After a while (sometimes) the JList reappears, containing the list of packets as it should, but it never lasts very long. Often it will disappear permanently.
The class below is pretty short and simple, I really hope this is a simple and obvious mistake Ive made that someone can spot.
Thanks,
Soothsayer
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import java.io.InputStream;
public class GUI extends JFrame
     Dimension screenResolution = Toolkit.getDefaultToolkit().getScreenSize();
     private InputStream fontStream = this.getClass().getResourceAsStream("console.ttf");
     Font outputFont;
     static final Color FIELD_COLOR = new Color(20, 20, 60);
     static final Color FONT_COLOR = new Color(150, 190, 255);
     private static JPanel superPanel = new JPanel();
     private static Vector<Capture> packetList = new Vector<Capture>(1000, 500);
     private static JList listObject = new JList(packetList);
     private static JScrollPane scrollPane = new JScrollPane(listObject);
     public GUI()
          super("LineLight v2.1 - Edd Burgess");
          this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          this.setLocation(50, 10);
          try { outputFont = Font.createFont(Font.TRUETYPE_FONT, fontStream); }
          catch(Exception e) { System.err.println("Error Loading Font:\n" + e); }
          outputFont = outputFont.deriveFont((float)10);
          listObject.setFont(outputFont);
          superPanel.setPreferredSize(new Dimension(screenResolution.width - 100, screenResolution.height - 100));
          superPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));
          scrollPane.setPreferredSize(new Dimension(screenResolution.width - 100, screenResolution.height - 100));
          scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
          scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
          scrollPane.setWheelScrollingEnabled(true);
          superPanel.add(scrollPane);
          this.add(superPanel);
          this.pack();
     public void addPacket(Capture c)
          this.packetList.add(c);
          this.listObject.setListData(packetList);
          this.superPanel.repaint();
}

I'm having basically the same problem, And how is your code different than the example in the tutorial???
You can also read the tutorial section on "Concurrency".
If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.
Start your own posting if you need further help.

Similar Messages

  • JList performance in JScrollPane

    Hi!
    I've got a really odd problem with JList handling inside a JScrollPane.
    What happens is that I populate the JList with elements from a vector, and it displays them allright, but when I add or remove any element after creating the jList for first time, the CPU usage goes crazy until I move the scrollbar knob of the ScrollPane it's in. After moving the knob, the elements display ok, and cpu usage goes down to normality.. I can reproduce this phenomenon every time.
    At first I thought it was a performance issue, but after implementing a custom minimal cell renderer (which I actually don't use anymore) and adjusting the prototypecell and fixed size properties, this kept happening... Any ideas are welcome!
    Thanks!
    P.S:The code is a little large, but I'll post it if it helps!

    Seems to work for meimport java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    public class Test2 extends JFrame {
      Vector data = new Vector(10000);
      DefaultListModel dlm = new DefaultListModel();
      JList jl = new JList();
      public Test2() {
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        Container content = getContentPane();
        for (int i=0; i<10000; i++) dlm.addElement("Stuff-"+i);
        jl.setModel(dlm);
        JButton jb = new JButton("Remove");
        content.add(jb, BorderLayout.SOUTH);
        jb.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent ae) {
            int index = jl.getSelectedIndex();
            if (index>=0) dlm.remove(index);
        content.add(new JScrollPane(jl), BorderLayout.CENTER);
        setSize(300,300);
      public static void main(String[] args) { new Test2().setVisible(true); }
    }

  • Problem in refreshing JTree inside Jscrollpane on Button click

    hi sir,
    i have problem in refreshing JTree on Button click inside JscrollPane
    Actually I am removing scrollPane from panel and then again creating tree inside scrollpane and adding it to Jpanel but the tree is not shown inside scrollpane. here is the dummy code.
    please help me.
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.tree.*;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.awt.event.WindowListener;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    public class Test
    public static void main(String[] args)
         JFrame jf=new TestTreeRefresh();
         jf.addWindowListener( new
         WindowAdapter()
         public void windowClosing(WindowEvent e )
         System.exit(0);
         jf.setVisible(true);
    class TestTreeRefresh extends JFrame
         DefaultMutableTreeNode top;
    JTree tree;
         JScrollPane treeView;
         JPanel jp=new JPanel();
         JButton jb= new JButton("Refresh");
    TestTreeRefresh()
    setTitle("TestTree");
    setSize(500,500);
    getContentPane().setLayout(null);
    jp.setBounds(new Rectangle(1,1,490,490));
    jp.setLayout(null);
    top =new DefaultMutableTreeNode("The Java Series");
    createNodes(top);
    tree = new JTree(top);
    treeView = new JScrollPane(tree);
    treeView.setBounds(new Rectangle(50,50,200,200));
    jb.setBounds(new Rectangle(50,300,100,50));
    jb.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
              jp.remove(treeView);
              top =new DefaultMutableTreeNode("The Java ");
    createNodes(top);
              tree = new JTree(top);
                   treeView = new JScrollPane(tree);
                   treeView.setBounds(new Rectangle(50,50,200,200));
                   jp.add(treeView);     
                   jp.repaint();     
    jp.add(jb);     
    jp.add(treeView);
    getContentPane().add(jp);
    private void createNodes(DefaultMutableTreeNode top) {
    DefaultMutableTreeNode category = null;
    DefaultMutableTreeNode book = null;
    category = new DefaultMutableTreeNode("Books for Java Programmers");
    top.add(category);
    book = new DefaultMutableTreeNode("The Java Tutorial: A Short Course on the Basics");
    category.add(book);
    book = new DefaultMutableTreeNode("The Java Tutorial Continued: The Rest of the JDK");
    category.add(book);
    book = new DefaultMutableTreeNode("The JFC Swing Tutorial: A Guide to Constructing GUIs");
    category.add(book);
    book = new DefaultMutableTreeNode("Effective Java Programming Language Guide");
    category.add(book);
    book = new DefaultMutableTreeNode("The Java Programming Language");
    category.add(book);
    book = new DefaultMutableTreeNode("The Java Developers Almanac");
    category.add(book);
    category = new DefaultMutableTreeNode("Books for Java Implementers");
    top.add(category);
    book = new DefaultMutableTreeNode("The Java Virtual Machine Specification");
    category.add(book);
    book = new DefaultMutableTreeNode("The Java Language Specification");
    category.add(book);
    }

    hi sir ,
    thaks for u'r suggession.Its working fine but the
    properties of the previous tree were not working
    after setModel() property .like action at leaf node
    is not working,I'm sorry but I don't understand. I think you are saying that the problem is solved but I can read it to mean that you still have a problem.
    If you still have a problem then please post some code (using the [code] tags of course).

  • How can we serialize a c++ structure with an vector inside it in coherence using PofWriter?

    How can we serialize a c++ structure with an vector inside it in coherence using PofWriter?
    Any help is appreciated.
    Thanks.

    The link you gave was the same link that had already been given, and that points to an article about AIR 3.6.
    I’m not sure if AIR 3.9 has changed fundamentally with regard to this problem though, but here’s a work around someone used, to make the subsequent loads seem like a new file:
    https://gist.github.com/sportebois/6969008
    Would it be possible to just keep a reference to the loaded swf, after the first load? Then you can removechild it when you’re not needing it, and addchild it back when you do need it.

  • JTextPane inside JScrollPane

    Hi,
    I've seen a lot of possibilities to get a JTextPane into JScrollPane without wraping the text in the forum. None worked for me..
    My situation:
    JTextPane(editable=false) with given text(DefaultStyledDocument) is inside JScrollPane.
    I replace (by pressing a button) some text parts with longer text AND JTextPane wraps it!..
    I tried to set the size of the textPane to the computed line width of the longst line, but nothing happened.. (I expected the JScrollPane to show off horizontal scrollbar, because the width of JTextPane is getting bigger than the width of JScrollPane).
    Anyone knows how to put formatted text into text- or scrollpane without wraping it?
    And who allowed JTextPane to wrap my lines anyway?!
    (it's called StyledDocument and not ChaosDocument :)
    Thanks in advance!
    Raman.

    Not sure that JTextPane is the best place to start. The wrapping is controlled by ParagraphView and its underlying structure. Try looking at implementing extensions to the standard EditorKit/ViewFactory to tweak this behaviour

  • How can I get the selected row's index of a Jlist wrapped with JScrollpane?

    the problem is that I can use getSelectedIndex() only if the JList is not wrapped in a JScrollPane.
    but in my program the JList IS wrapped in a JScrollPane.
    when I select one item of the jscrollpane I can't catch the event.
    please F1 me.
    Lior.

    What difference does it make if the list is inside a scroll pane or not? If you have a member varialbe that references the list you can call getSelectedIndex when ever you need.
        myList = new JList (...)
        someComponent.add (new JScrollPane (myList));
        //  Then later
        int sel = myList.getSelectedIndex ();And you can always be up on any selection chagnes in the list by supplying it with a ListSelecitonListener.

  • Adding a JList to a JScrollPane

    Searching through the archives, this appears to be a pretty frequent question, but so far, none of the answers have worked for me. Behold, what I have:
    Filelist = new JList(Filelistmodel);
    FilePane = new JScrollPane();
    FilePane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
    FilePane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    FilePane.setMaximumSize(new Dimension(650,150));
    FilePane.setMinimumSize(new Dimension(650,150));
    FilePane.setPreferredSize(new Dimension(650,150));
    FilePane.setBounds(150, 0, 650, 150);
    FilePane.setViewportView(Filelist);
    panel.add(FilePane);     Message was edited by:
    break_the_chain

    Ok, here's the context. It's not exactly simple, but it should compile and the rest of the code is more or less outside of the problem.
    package formshow;
    //import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.border.*;
    import java.io.*;
    import java.util.*;
    public class Sync extends JApplet
         JButton bttn1;
         JComboBox Cbox_drives, Cbox_folders;
         JPanel panel;
         JFrame aframe;
         JScrollPane FilePane;
         DefaultListModel Filelistmodel;
         JList Filelist;
         class OnlyPRE implements FilenameFilter
           Vector PRE;
           public OnlyPRE(Vector PRE)
           {this.PRE = PRE;}
           public boolean accept(File dir, String name)
                              boolean accept = false;
              for (int i=0; i<PRE.size(); i++)
              if (name.startsWith((String)PRE.get(i)))
              accept = true;
           return accept;
         public void init()
              //applet listener
              this.addFocusListener( new FocusListener()
                public void focusGained(FocusEvent evt)
                                   getContentPane().invalidate();
                   getContentPane().validate();
              public void focusLost(FocusEvent evt)
                 getContentPane().invalidate();
                 getContentPane().validate();
                             //this applet
              this.setSize(800,150);
              //jpanel
              panel = new JPanel(null);
              //Button init stuff
              bttn1 = new JButton("Get Files");
              bttn1.setSize(150,50);
              bttn1.setLocation(0,100);
              bttn1.addActionListener( new ActionListener()
                 public void actionPerformed(ActionEvent evt)
                 {PopList();}
              panel.add(bttn1);
              //Cbox_drives init stuff
              int offset = 'a';                    
              Cbox_drives = new JComboBox();
              for (int i=0; i<26; i++)
              Cbox_drives.addItem((char)(offset+i)+":\\");               
              Cbox_drives.setSize(150,50);
              Cbox_drives.setLocation(0,0);
                              Cbox_drives.addActionListener( new ActionListener()
                public void actionPerformed(ActionEvent evt)
                   try                                  {
                    getPatFolders();
                  catch (Exception e)Cbox_drives.setBackground(Color.RED);}
              panel.add(Cbox_drives);
              //Cbox_folders init stuff
              Cbox_folders = new JComboBox();
              Cbox_folders.setLocation(0,50);
              Cbox_folders.setSize(150,50);
              Cbox_folders.addItem("Pick the drive letter you have mapped to 1416_a");
              panel.add(Cbox_folders);
              //Filelist init stuff
              Filelist = new JList();
              Filelist.setVisibleRowCount(5);
              //FilePane init stuff
              FilePane = new JScrollPane(Filelist);
              FilePane.setLocation(150,0);
              FilePane.setSize(650,150);
              panel.add(FilePane);
              getContentPane().add(panel);                              
              private int getPatFolders () throws Exception
                   String drive = (String) Cbox_drives.getSelectedItem();
                   String files[];
                   Vector prelist = new Vector();
                   prelist.addElement("PAT");
                   prelist.addElement("REL");
                   prelist.addElement("EME");
                   FilenameFilter onlyget = new OnlyPRE(prelist);
                   Cbox_folders.removeAllItems();
                   try{
                   File rootFolder = new File(drive);
                   files = rootFolder.list();
                   catch (Exception E)
                   files = new String[]{"Error Here"};
                   for (int i=0; i<files.length; i++)
                        Cbox_folders.addItem((String)files);               
                   return (1);
              private int PopList()
                   File StartFolder = new File(((String)Cbox_drives.getSelectedItem())+
    (String)Cbox_folders.getSelectedItem()));
                   PopList(getFiles(StartFolder));
                   Filelist.removeAll();
                   Filelist = new JList(Filelistmodel);
                   FilePane = new JScrollPane();
                   FilePane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
                   FilePane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
                   FilePane.setMaximumSize(new Dimension(650,150));
                   FilePane.setMinimumSize(new Dimension(650,150));
                   FilePane.setPreferredSize(new Dimension(650,150));
                   FilePane.setBounds(150, 0, 650, 150);
                   FilePane.setViewportView(Filelist);
                   panel.add(FilePane);     
                   getContentPane().invalidate();
                   getContentPane().validate();
                   return(1);
              private int PopList(Vector transmute)
                   Filelistmodel = new DefaultListModel();
                   for (int i=0; i<transmute.size(); i++)
                        Filelistmodel.addElement(transmute.elementAt(i));
                   return(1);
              private Vector getFiles(File ThisPath)
                   Vector ThisLevel = new Vector();               
                   String FileList[] = ThisPath.list();
                   for (int i=0; i<FileList.length; i++)
                             File afile = new File(ThisPath.getAbsolutePath()+"\\"+FileList[i]);
                             if (afile.isFile())
                                  ThisLevel.addElement(afile.getAbsolutePath());
                             else
                                  append(ThisLevel,getFiles(afile));                              
                   return ThisLevel;
              private Vector append(Vector Left, Vector Right)
                   for (int i=0; i<Right.size();i++)
                        Left.addElement(Right.get(i));
                   return Left;
    Ok, basically this is for windows users. Pick a drive letter, then pick a folder from the next combo box.
    Hit the button and a list of all of the files in the folders and subfolders shows up in the JList on the right.
    DO NOT try this when the second list box is pointing to something like windows or program files.
    I'd recommend creating your own folder that goes maybe one or two levels deep with just a bunch of empty text files.
    I will <3 anyone that can help me with this forever and bestow upon them rediculous numbers of dukestars.
    Message was edited by:
    break_the_chain

  • Install Application - TextArea inside JScrollPane

    I've been working on an install application to install another one of my programs (next/accept/next/ finish type of thing) and had a couple questions and would appreciate any help anyone can give.
    Some Background info:
    I made images and have them display as image icons through jlabels for the buttons and background. The labels have classes applying various mouselisteners (Mousepressed, MouseEntered, MouseExited, etc) changing the images and moving from screen to screen. I have my layout set to null, not for any particular reason, but because I have no formal education in layout managers.
    1) Is there a conical solution to moving through various windows? That is, right now I move through the various 'screens' with a check on an int called state, that gets incremented and decremented through forward and back buttons. I looked at some code given to us on a test by our teacher (we had to find bugs) and saw that he had implemented a fake "state" interface, with constants like "Account_State" to control where you were in the program. This seems a bit easier to read than ints, but is there a correct built in version of his states?
    2) On the second screen I have a license agreement (actually required for the application that gets installed), and a checkbox. The license is held inside of a JTextArea(scroll) inside a JScrollPane(textscroll). The JScrollPane is extending in weird ways. The following is a stripped down version of my code (it runs and demonstrates the problem):
    InstalleApp
    import javax.swing.*;
    import java.awt.*;
    public class InstalleApp {
        public static void main(String args[]) {
            InstalleFrame m = new InstalleFrame();
               Container content = m.getContentPane();
            m.setDefaultCloseOperation(3);
            m.setSize(550, 400);
            m.setUndecorated(true);
            m.setVisible(true);
            m.setTitle("Install");
    }InstalleFrame
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.JFrame;
    import java.awt.event.*;
    import java.awt.Rectangle;
    import java.awt.Font;
    import java.awt.BorderLayout;
    import java.util.*;
    import javax.swing.event.DocumentEvent;
    import javax.swing.event.DocumentListener;
    import java.awt.event.ActionEvent;
    import javax.swing.text.BadLocationException;
    import javax.swing.JSlider;
    import java.awt.Dimension;
    public class InstalleFrame
        extends JFrame implements ActionListener {
      public InstalleFrame() {
        try {
          jbInit();
        catch (Exception ex) {
          ex.printStackTrace();
      public void actionPerformed(ActionEvent e) {
      JScrollPane textscroll;
      private void jbInit() throws Exception {
        this.getContentPane().setLayout(null);
        this.getContentPane().setBackground(UIManager.getColor("window"));
        background.setBounds(new Rectangle(0, 0, 550, 400));
        readcheck.setOpaque(false);
        readcheck.setText("I have read and accept the license agreement");
        readcheck.setBounds(new Rectangle(31, 357, 319, 32));
        scroll.setWrapStyleWord(true);
        scroll.setLineWrap(true);
        scroll.setText(
            "Copyright ? 2006-2007 GonZor228.com \n\nBy using or distributing this " +
            "software (or any work based on the software) you shall be deemed " +
            "to have accepted the terms and conditions set out below.\n\nGonZor228.com " +
            "(\"GonZor\") is making this software freely available on the basis " +
            "that it is accepted as found and that the user checks its fitness " +
            "for purpose prior to use.\n\nThis software is provided \'as-is\', without " +
            "any express or implied warranties whatsoever. In no event will the " +
            "authors, partners or contributors be held liable for any damages, " +
            "claims or other liabilities direct or indirect, arising from the " +
            "use of this software.\n\nGonZor will from time to time make software " +
            "updates available.  However, GonZor accepts no obligation to provide " +
            "any support to free license holders.\n\nGonZor grants you a limited " +
            "non-exclusive license to use this software for any purpose that does " +
            "not violate any laws that apply to your person in your current jurisdiction, " +
            "subject to the following restrictions: \n\n1. The origin of this software " +
            "must not be misrepresented; you must not claim that you wrote the " +
            "original software.\n2. You must not alter the software, user license " +
            "or installer in any way unless given permission to do so.\n3. This " +
            "notice may not be removed or altered from any distribution.\n4. You " +
            "may not resell or charge for the software.\n5. You may not reverse " +
            "engineer, decompile, disassemble, derive the source code of or modify " +
            "[or create derivative work from] the program without the express " +
            "permission of GonZor.\n6. You must not use this software to engage " +
            "in or allow others to engage in any illegal activity.\n7. You may " +
            "not claim any sponsorship by, endorsement by, or affiliation with " +
            "GonZor228.com\n8. You acknowledge that GonZor owns the copyright and " +
            "all associated intellectual property rights relating to the software.\n\n" +
            " This software license is governed by and construed in accordance " +
            "with the laws of Australia and you agree to submit to the exclusive " +
            "jurisdiction of the Australian courts.\n\nBy clicking the \"I agree\" " +
            "button below, you agree to these software license terms. If you disagree " +
            "with any of the terms below, GonZor does not grant you a license " +
            "to use the software ? exit the window.\n\nYou agree that by your installation " +
            "of the GonZor?s software, you acknowledge that you are at least 18 " +
            "years old, have read this software license, understand it, and agree " +
            "to be bound by its terms.\n\nGonZor reserves the right to update and " +
            "change, from time to time, this software license and all documents " +
            "incorporated by reference. You can always find the most recent version " +
            "of this software license at GonZor228.com.  GonZor may change this " +
            "software license by posting a new version without notice to you. " +
            "Use of the GonZor?s software after such change constitutes acceptance " +
            "of such changes.\n\n1.\tOwnership and Relationship of Parties.\n\nThe " +
            "software is protected by copyrights, trademarks, service marks, international " +
            "treaties, and/or other proprietary rights and laws of the U.S. and " +
            "other countries. You agree to abide by all applicable proprietary " +
            "rights laws and other laws, as well as any additional copyright notices " +
            "or restrictions contained in this software license. GonZor owns all " +
            "rights, titles, and interests in and to the applicable contributions " +
            "to the software. This software license grants you no right, title, " +
            "or interest in any intellectual property owned or licensed by GonZor, " +
            "including (but not limited to) the software, and creates no relationship " +
            "between yourself and GonZor other than that of GonZor to licensee.\n\n" +
            "The software and its components contain software licensed from " +
            "GonZor. The licensor software enables the software to perform certain " +
            "functions including, without limitation, access proprietary data " +
            "on third-party data servers as well as GonZor?s own server. You agree " +
            "that you will use the software, and any data accessed through the " +
            "software, for your own personal non-commercial use only. You agree " +
            "not to assign, copy, transfer, or transmit the software, or any data " +
            "obtained through the software, to any third party. Your license to " +
            "use the software, its components, and any third-party data, will " +
            "terminate if you violate these restrictions. If your license terminates, " +
            "you agree to cease any and all use of the software, its components, " +
            "and any third-party data. All rights in any third-party data, any " +
            "third-party software, and any third-party data servers, including " +
            "all ownership rights are reserved and remain with the respective " +
            "third parties. You agree that these third parties may enforce their " +
            "rights under this Agreement against you directly in their own name.\n\n" +
            "2.\tSupport and Software Updates.\n\nGonZor may elect to provide " +
            "you with customer support and/or software upgrades, enhancements, " +
            "or modifications for the software (collectively, \"Support\"), in its " +
            "sole discretion, and may terminate such Support at any time without " +
            "notice to you. GonZor may change, suspend, or discontinue any aspect " +
            "of the software at any time, including the availability of any software " +
            "feature, database, or content. GonZor may also impose limits on certain " +
            "features and services or restrict your access to parts or all of " +
            "the software or the GonZor228.com web site without notice or liability.\n\n" +
            "3.  \tFees and Payments.\n\nGonZor reserves the right to charge fees " +
            "for future use of or access to the software in GonZor?s sole discretion. " +
            "If GonZor decides to charge for the software, such charges will be " +
            "disclosed to you 28 days before they are applied if such fees will " +
            "affect your use of the product.\n\n4.\tDisclaimer of Warranties by " +
            "GonZor.\n\nUse of the software and any data accessed through the software " +
            "is at your sole risk. They are provided \"as is.\"  Any material or " +
            "service downloaded or otherwise obtained through the use of the software " +
            "(such as the \"plug-in\" feature) is done at your own discretion and " +
            "risk, and you will be solely responsible for any damage to your computer " +
            "system or loss of data that results from the download and/or use " +
            "of any such material or service.  GonZor, its officers, directors, " +
            "employees, contractors, agents, affiliates, assigns, and GonZor?s " +
            "licensors (collectively ?Associates?) do not represent that the software " +
            "or any data accessed there from is appropriate or available for use " +
            "outside the Australia.\n\nThe Associates expressly disclaim all warranties " +
            "of any kind, whether express or implied, relating to the software " +
            "and any data accessed there from, or the accuracy, timeliness, completeness, " +
            "or adequacy of the software and any data accessed there from, including " +
            "the implied warranties of title, merchantability, satisfactory quality, " +
            "fitness for a particular purpose, and non-infringement.\n\nIf the " +
            "software or any data accessed there from proves defective, you (and " +
            "not the Associates) assume the entire cost of all repairs or injury " +
            "of any kind, even if the Associates have been advised of the possibility " +
            "of such a defect or damages. Some jurisdictions do not allow restrictions " +
            "on implied warranties so some of these limitations may not apply " +
            "to you.\n\n5. \tLimitation of liability.\n\nThe Associates will not " +
            "be liable to you for claims and liabilities of any kind arising out " +
            "of or in any way related to the use of the software by yourself or " +
            "by third parties, to the use or non-use of any brokerage firm or " +
            "dealer, or to the sale or purchase of any security, whether such " +
            "claims and liabilities are based on any legal or equitable theory." +
            "\n\nThe Associates are not liable to you for any and all direct, incidental, " +
            "special, indirect, or consequential damages arising out of or related " +
            "to any third-party software, any data accessed through the software, " +
            "your use or inability to use or access the software, or any data " +
            "provided through the software, whether such damage claims are brought " +
            "under any theory of law or equity. Damages excluded by this clause " +
            "include, without limitation, those for loss of business profits, " +
            "injury to person or property, business interruption, loss of business " +
            "or personal information. Some jurisdictions do not allow limitation " +
            "of incidental or consequential damages so this restriction may not " +
            "apply to you.\n\nInformation provided through the software may be " +
            "delayed, inaccurate, or contain errors or omissions, and the Associates " +
            "will have no liability with respect thereto. GonZor may change or " +
            "discontinue any aspect or feature of the software or the use of all " +
            "or any features or technology in the software at any time without " +
            "prior notice to you, including, but not limited to, content, hours " +
            "of availability.\n\n6.  \tControlling Law.\n\nThis software license " +
            "and the relationship between you and GonZor is governed by the laws " +
            "of Australia without regard to its conflict of law provisions. You " +
            "and GonZor agree to submit to the personal and exclusive jurisdiction " +
            "of the courts located within Australia. The United Nations Convention " +
            "on the International Sale of Goods does not apply to this software " +
            "license.\n\n7.\tPrecedence.\n\nThis software license constitutes the " +
            "entire understanding between the parties respecting use of the software, " +
            "superseding all prior agreements between you and GonZor.\n\n8.\tSurviving " +
            "Provisions.\n\nSections 1, and 3 through 5, will survive any termination " +
            "of this Agreement.\n\n---------------------------------------------------------------------------------" +
            "---\nIf you accept the terms of the agreements, click I Agree to continue. " +
            " You must accept the agreement to download and use the software. ");
        scroll.setBounds(new Rectangle(36, 36, 478, 305));
        this.getContentPane().add(readcheck);
        readcheck.setVisible(false);
       this.getContentPane().add(scroll);
       textscroll = new JScrollPane (scroll, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
                                                JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
        textscroll.setBounds(36,36,400,400);
          getContentPane().add( textscroll );
        this.getContentPane().add(background);
      JLabel background = new JLabel();
      JCheckBox readcheck = new JCheckBox();
      JTextArea scroll = new JTextArea();
    }Sorry about all the text for the agreement. I've tried a number of different things I got from searching the forums at different points in the code (setting the number of rows/columns, setting max and min sizes, etc etc) The code above that wraps the text I could have sworn I tried 3 times before it magically worked... I also tried using the awt component for textareas that had the scrollbars built in, but scrapped it after having even more difficulties with that one. I'm trying to get the textbox to only go down about 300 px and 300 px to the right. Using the graphical editor to change it produces a null pointer error at compile time(?!?). Can anyone help me to get the textbox to render as I want it to?
    Edited by: rpk5000 on Jan 27, 2008 9:43 AM

    for instance, boxlayout would work nicely with the installer frame (or dialog)
    import java.awt.Dimension;
    import java.awt.EventQueue;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.BorderFactory;
    import javax.swing.BoxLayout;
    import javax.swing.JButton;
    import javax.swing.JCheckBox;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import javax.swing.SwingUtilities;
    import javax.swing.UIManager;
    public class InstalleFrame
        public InstalleFrame()
            try
                jbInit();
            catch (Exception ex)
                ex.printStackTrace();
        private JScrollPane textscroll;
        private JPanel contentPane = new JPanel();
        private JLabel background = new JLabel();
        private JCheckBox readcheck = new JCheckBox();
        private JTextArea scroll = new JTextArea();
        private void jbInit() throws Exception
            contentPane.setLayout(new BoxLayout(contentPane, BoxLayout.PAGE_AXIS));
            contentPane.setBackground(UIManager.getColor("window"));
            contentPane.setBorder(BorderFactory.createEmptyBorder(15, 15, 15, 15));
            scroll.setWrapStyleWord(true);
            scroll.setLineWrap(true);
            String text = "Copyright ? 2006-2007 GonZor228.com \n\nBy using or distributing this "
                            + "software (or any work based on the software) you shall be deemed "
                            + "to have accepted the terms and conditions set out below.\n\nGonZor228.com "
                            + "(\"GonZor\") is making this software freely available on the basis "
                            + "that it is accepted as found and that the user checks its fitness "
                            + "for purpose prior to use.\n\nThis software is provided \'as-is\', without "
                            + "any express or implied warranties whatsoever. In no event will the "
                            + "authors, partners or contributors be held liable for any damages, "
                            + "claims or other liabilities direct or indirect, arising from the "
                            + "use of this software.\n\nGonZor will from time to time make software "
                            + "updates available.  However, GonZor accepts no obligation to provide "
                            + "any support to free license holders.\n\nGonZor grants you a limited "
                            + "non-exclusive license to use this software for any purpose that does "
                            + "not violate any laws that apply to your person in your current jurisdiction, "
                            + "subject to the following restrictions: \n\n\nblah, blah, blah,..."
                            + "\n\n";
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < 5; i++)
                sb.append(text);
            scroll.setText(sb.toString());
            contentPane.add(readcheck);
            contentPane.add(scroll);
            textscroll = new JScrollPane(scroll,
                    JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
                    JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
            textscroll.setPreferredSize(new Dimension(400, 400));
            contentPane.add(textscroll);
            JPanel bottomPane = new JPanel();
            bottomPane.setOpaque(false);
            final JButton okButton = new JButton("OK");
            final JButton cancelButton = new JButton("Cancel");
            okButton.setEnabled(false);
            readcheck.setOpaque(false);
            readcheck.setText("I have read and accept the license agreement");
            readcheck.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    JCheckBox radioBtn = (JCheckBox)e.getSource();
                    if (radioBtn.isSelected())
                        okButton.setEnabled(true);                   
                    else
                        okButton.setEnabled(false);
            okButton.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    // TODO: whatever needs to be done here
            cancelButton.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    SwingUtilities.getWindowAncestor(contentPane).dispose();
            bottomPane.add(readcheck);
            bottomPane.add(okButton);
            bottomPane.add(cancelButton);
            contentPane.add(bottomPane);
            //readcheck.setVisible(false);
            contentPane.add(background);
        public JPanel getContentPane()
            return contentPane;
        public static void main(String[] args)
            EventQueue.invokeLater(new Runnable()
                public void run()
                    InstalleFrame install = new InstalleFrame();
                    JFrame frame = new JFrame("Install");
                    frame.getContentPane().add(install.getContentPane());
                    frame.setDefaultCloseOperation(3);
                    frame.setSize(550, 400);
                    frame.setUndecorated(false);  //**
                    frame.pack();  //**
                    frame.setLocationRelativeTo(null); //**
                    frame.setVisible(true);
    }

  • Drag/drop into JTable inside JScrollPane

    Hello,
    I have a table inside a JScrollPane. I can set the table as the DropTarget by the command:
    new DropTarget(table,fileDropTargetListener);
    but I cannot set the JScrollPane be the DropTarget by the same command.
    the problem is that: I cannot set the table to fit the JScrollPane by the command setsize(scrollPane.getSize() ), setPreferedSize(scrollPane.getPreferedSize()), (don't know for what reason, they don't work to fit the scrollpane), therefore when user drags an item to the JScrollPane but outside the table, the drag gesture doesnot display.
    Please anyone help me how to solve this problem. Thank you,
    fantabk

    Yes, I use custom cell renderer and cell editor for ParentTable, which returns NestedTable.
    DnD turned on for the ParentTable, so when the NestedTable is active (some cells selected in it) it receives DnD events, which are turned off for it, and DnD doesn't work.
    Possible solution is to turn DnD for NestedTable (not for ParentTable), and i'll do this if it is impossible to make it work in current configuration.
    So the question is � is this possible do not pass DnD event to NestedTable ?

  • FlowLayout fails to wrap inside JScrollPane

    I have a JPanel with FlowLayout inside a JScrollPane with the horizontal scrollbar disabled. I expect the FlowLayout to wrap the buttons in the example below but it doesn't.
    Could someone plase confirm this as a Swing bugg and perhaps suggest a workaround.
    Many Thanks!
    Patrik
    import java.awt.*;
    import javax.swing.*;
    public class WrapTest
       public static void main(String [] args)
          JFrame frame = new JFrame();
          JPanel panel = new JPanel(new FlowLayout(FlowLayout.LEFT));
          panel.add(new JButton("xxxxxxxxxx"));
          panel.add(new JButton("xxxxxxxxxx"));
          panel.add(new JButton("xxxxxxxxxx"));
          panel.add(new JButton("xxxxxxxxxx"));
          frame.getContentPane().setLayout(new BorderLayout());
          frame.getContentPane().add(new JScrollPane(panel, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
             JScrollPane.HORIZONTAL_SCROLLBAR_NEVER), BorderLayout.CENTER);
          frame.setSize(400,300);
          frame.setVisible(true);
    }

    I think the policies controll whether the scrollbars are shown and not whether the JScrollPane is "scrollable". It's still a JScrollPane, whether you choose to display the scrollbars. If you don't want scrolling, I suggest useing a different component.
    I could be wrong on this. Someone please chime in if you disagree.

  • JLayeredPane inside JScrollPane - please help!!

    Hi everyone!
    i'm having the following problem: I need to add a JLayeredPane to a JScrollPane. this JLayeredPane contains a JGraph and this is what I'm doing:
      jlayeredPane = new JLayeredPane();
        jlayeredPane.add(graph, JLayeredPane.DEFAULT_LAYER);
        jlayeredPane.setPreferredSize(new Dimension(1000,1000));
        jlayeredPane.setMinimumSize(new Dimension(1000,1000));
        jsp = new JScrollPane(jlayeredPane);
       add(jsp);
    [/code
      but the graph doesn't show up at all. can anyone help me please. i have a deadline today and really need to figure this out. thanx a lot

    here's some of my code:
    inside the construtor of a panel
    graph = new Graph(new DefaultGraphModel(), new GraphLayoutCache());
        // JLayeredPane
        jlayeredPane = new JLayeredPane();
        // jlayeredPane.setMinimumSize(new Dimension(400,400));
        jlayeredPane.setPreferredSize(new Dimension(400, 400));
        jlayeredPane.add(graph, JLayeredPane.DEFAULT_LAYER);
        jsp= new JScrollPane(jlayeredPane); 
        jsp.addComponentListener(this);
        add(jsp, BorderLayout.CENTER);
    public void componentResized(ComponentEvent e) {
        int layeredPaneWidth = jlayeredPane.getWidth();
        int layeredPaneHeight = jlayeredPane.getHeight();
        int viewportwidth = jspLayered.getViewport().getWidth();
        int viewportheight = jspLayered.getViewport().getHeight();
        int width = Math.max(layeredPaneWidth, viewportwidth);
        int height = Math.max(layeredPaneHeight, viewportheight);
        jspLayered.getViewport().setSize(new Dimension(width, height));
        graph.setSize(width, height);
        graph.setPreferredSize(new Dimension(width, height));   
      }

  • Java Turduckin: JScrollPane in a JList in a JScrollPane

    Probably a quick answer for someone: I have a JScrollPane containing a JList. The JList has a custom renderer that returns a subclass of JScrollPane: the idea is a scrollable list of individual panels of scrollable text.
    Is this possible? When I run it, it looks ok (the inner scroll bar hilights correctly, etc), but, even after a fair amount of investigation, I can't get the inner scrollbar to respond to the mouse. Can I get JList to forward clicks?
    Many thanks,
    -bmeike

    Renderers return a picture, not something you can interact with.
    Try setting your inner JScrollPane as the editor.

  • JTextPane inside JScrollPane resizing when updated

    Hiya all,
    I've been struggling with this problem and checking the forums, but didn't find a solution, so I hope someone can help...at least help me for the nice picture :) It has to do with JTextPane's automatically resizing to their content on a GUI update, rather than scrollbars appearing (the desired result).
    Basically, I have a scenario where I am creating a series of multiple choice answers for a question. Each answer consists of a JTextPane inside a JScrollPane, and a JRadioButton, which are all contained in a JPanel (called singleAnswerPanel). So for 2 answers, I would have 2 of these singleAnswerPanels. There is a one large JPanel that contains all the singleAnswerPanels (called allAnswersPanel). This allAnswersPanel is contained in a JScrollPane. Graphically, this looks like:
       |       JPanel (allAnswersPanel) inside a JScrollPane            |
       |                                                                |
       |  ------------------------------------------------------------  |
       | |     JPanel (singleAnswerPanel)                             | |
       | |    ----------------------------------                      | |
       | |   |  JTextPane inside a JScrollPane  |     * JRadioButton  | |
       | |    ----------------------------------                      | |
       | |                                                            | |
       |  ------------------------------------------------------------  |
       |                                                                |
       |                                                                |
       |  ------------------------------------------------------------  |
       | |     JPanel (singleAnswerPanel)                             | |
       | |    ----------------------------------                      | |
       | |   |  JTextPane inside a JScrollPane  |     * JRadioButton  | |
       | |    ----------------------------------                      | |
       | |                                                            | |
       |  ------------------------------------------------------------  |
       |                                                                |
        ----------------------------------------------------------------So above, I show 2 answers that can be filled in with text. So assuming both answer JTextPanes are filled with text beyond their current border (scrollbars appear as expected) and the user wishes to add more answers. I have a button to add another singleAnswerPanel to the containing JPanel (allAnswersPanel), and then I validate the main JScrollPane that contains the allAnswersPanel as it's view. The problem that occurs is the existing single answer JTextPanes resize to the size of their text and the vertical scrollbars (only vertical ones setup) of the JTextPanes dissappear! My intent is to keep the existing JScrollPanes the same size (with their scrollbars) when a new answer is added.
    The code snippet below shows what gets done when a new answer is added:
    private void createAnswer()
        // The panel that will hold the new single answer JTextPane pane
        // (inside a JScrollPane) and radio button.
        JPanel singleAnswerPanel = new JPanel();
        // Create the text pane for the single answer.
        JTextPane singleAnswerTextPane = new JTextPane();
        Dimension dimensions = new Dimension(200, 30);
        singleAnswerTextPane.setPreferredSize(dimensions);
        singleAnswerTextPane.setMaximumSize(dimensions);
        // Create a scroll pane and add the single answer text pane.
        JScrollPane singleAnswerScrollPane =
         new JScrollPane(singleAnswerTextPane);
        // Create a radio button that is associated with the single
        // answer text pane above.
        JRadioButton singleAnswerRadioButton = new JRadioButton();
        // Add the scroll pane and radio button to the panel (for a single
        // answer).
        singleAnswerPanel.add(singleAnswerScrollPane);
        singleAnswerPanel.add(singleAnswerRadioButton);
        // Add the panel holding a single answer to the panel holding
        // all the answers.
        m_allAnswersPanel.add(singleAnswerPanel);
        // Update the display.  m_allAnswersScrollPane is a JScrollPane
        // that has the m_allAnswersPanel (JPanel) as its view.
        m_allAnswersScrollPane.validate();
    }     Sorry for the length of the message, but I really want to solve this problem. So again, when updating the JScrollPane with validate(), the JTextPane for a single answer resizes to it's contents (plain text currently) and loses it's vertical scrollbars, but I want it to stay the same size and maintain the scrollbars.
    Thanks!

    http://java.sun.com/docs/books/tutorial/uiswing/mini/layout.htmlimport javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.Random;
    public class Test extends JFrame {
        int cnt=0;
        Random r = new Random();
        String[] nouns = {"air","water","men","idjits"};
        JPanel mainPanel = new JPanel(new GridBagLayout());
        JScrollPane mainScroll = new JScrollPane(mainPanel);
        JScrollBar mainScrollBar = mainScroll.getVerticalScrollBar();
        public Test() {
         setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
         Container content = getContentPane();
         content.add(new JLabel("QuizMaster 2003"), BorderLayout.NORTH);
         content.add(mainScroll, BorderLayout.CENTER);
         JButton jb = new JButton("New");
         content.add(jb, BorderLayout.SOUTH);
         jb.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent ae) {
              JPanel questionPanel = new JPanel(new GridBagLayout());
              questionPanel.add(new JLabel("Question "+cnt++),
                   new GridBagConstraints(0,0,1,1,0.0,0.0,
                        GridBagConstraints.EAST, GridBagConstraints.NONE,
                        new Insets(1,2,1,2),0,0));
              questionPanel.add(new JLabel("Why is there "+
                            nouns[r.nextInt(nouns.length)]+"?"),
                   new GridBagConstraints(1,0,1,1,0.0,0.0,
                        GridBagConstraints.EAST, GridBagConstraints.NONE,
                        new Insets(1,2,1,2),0,0));
              JTextArea jta = new JTextArea();
              JScrollPane jsp = new JScrollPane(jta);
              jsp.setPreferredSize(new Dimension(300,50));
              questionPanel.add(jsp, new GridBagConstraints(0,1,2,1,0.0,0.0,
                        GridBagConstraints.EAST, GridBagConstraints.BOTH,
                        new Insets(1,2,1,2),0,0));
              mainPanel.add(questionPanel, new GridBagConstraints(0,cnt,1,1,0.0,0.0,
                            GridBagConstraints.EAST,GridBagConstraints.NONE,
                            new Insets(0,0,0,0),0,0));
              mainPanel.revalidate();
              mainScroll.getViewport().setViewPosition(new Point(0, mainPanel.getHeight()));
         setSize(400,300);
         show();
        public static void main( String args[] ) { new Test(); }
    }

  • Problem with JPanel inside JScrollPane

    I want to make a simple graphic editor (like MS-Paint) with Java.
    I create the frame using JFrame, and use many Swing component. But I found
    some difficult when I tried to create the drawing area (the area where user
    performs drawing). I use JPanel as drawing area and I put it in JScrollPane.
    I use JScrollPane in case if user want to create a big drawing area.
    What I want to do with drawing area is, to put it in JScrollPane with size smaller than JScrollPane but I can't get it because the size of drawing area (JPanel) is always be the same as JScrollPane size. In MS-Paint you can see that the canvas (drawing area) size is able to be resize. And the canvas default color is white, and the Scroll Box around it has darkgray color. How can I make it like that (MS-Paint)? Please help. Thanks...
    Irfin

    I haven't actually tested this, but I think it should work...
    Add a JPanel to the scrollpane setting it's background to grey (i think the dark grey in MSPaint is something easy like 128,128,128). Set the layout on that panel to null, then add a second panel to that panel, at freeze it's size (ie. setMaximumSize). Doing it this way will allow you to set like a (10,10) position or something like that, giving the second panel a position away from the edge of the scrollpane.
    Seeing as you will be using mouse listeners anyways, you might even be able to allow for the second panel to be resized by checking the mouse position to see if the mouse is over the edge of the panel. I won't go into detail, that'll ruin the fun for you.
    Good luck, hope this helps.
    Grant.

  • JEditorPane inside JScrollPane flickers somethin awful

    I'm working on an instant messenger/chat application, and I've noticed that when there is 'heavy' traffic, the JEditorPane flickers quite badly. The following code demonstrates the problem:
    import javax.swing.*;
    import java.awt.*;
    public class Test extends JFrame {
      public Test() {
        JEditorPane jep = new JEditorPane("text/html", "");
        StringBuffer sb = new StringBuffer();
        JScrollPane jsp = new JScrollPane(jep);
        this.setSize(640,480);
        this.getContentPane().setLayout(new BorderLayout());
        this.getContentPane().add(jsp, BorderLayout.CENTER);
        this.setVisible(true);
        for(int i = 0; i < 200; i++) {
          sb.insert(0, i+"<br>");
          jep.setText(sb.toString());
      public static void main(String[] args) { new Test(); }
    }I'm using JEditorPane because it's easy to change I can use html tags to alter the font color/size/properties/etc.... As well, users can embed links which will then open in a browser. Is there a better way of doing this? I've tried setDoubleBuffered(true/false) on various combinations of components, using String concatenations, and setting the StringBuffer's initial length to a largish number (~5000). Nothing seems to alter the results. This problem occurs on linux and NT4 with jdks 1.3.0_002, 1.3.1, 1.4. If someone can help I'd be really grateful. I want the target jdk to be 1.3.1, so anything that came in with 1.4 isn't really an option.
    Thanks in advance,
    m

    Kurt,
    Thanks, I think that did the trick. I still have to put it into the chat app, but it works great with the test app. One thing, I do want the new text to be inserted at the top, not appended, so I changed the read statement to:
    jep.getEditorKit().read(new java.io.StringReader(i+"<br>"), doc, 0);and that throws an exception:java.lang.RuntimeException: Must insert new content into body element-
         at javax.swing.text.html.HTMLDocument$HTMLReader.generateEndsSpecsForMidInsert(HTMLDocument.java:1716)
         at javax.swing.text.html.HTMLDocument$HTMLReader.<init>(HTMLDocument.java:1692)
         at javax.swing.text.html.HTMLDocument$HTMLReader.<init>(HTMLDocument.java:1564)
         at javax.swing.text.html.HTMLDocument$HTMLReader.<init>(HTMLDocument.java:1559)
         at javax.swing.text.html.HTMLDocument.getReader(HTMLDocument.java:118)
         at javax.swing.text.html.HTMLEditorKit.read(HTMLEditorKit.java:237)
         at Test.<init>(Test.java:25)
         at Test.main(Test.java:38)but if I change position to 1 it works fine. Any explanation? The source for EditorKit says:
         * @param pos The location in the document to place the
         *   content >= 0.m

Maybe you are looking for

  • ITunes Producer: Error reading password from keychain ?

    I'm using iTunes Producer 2.9 on Mac OS X 10.8.5 When I try to log in using my Apple ID (enabled for iBookStore) I get an error regarding keychain access. Can you please point me to the right direction?

  • Fund Center and Commitment Item

    Hi All ,             What is the Fund Center and Commitment Item also the use of it. regards sunil

  • Accoung Assignment tab is disable during shopping cart creation

    Hi Gurus, Ned your expert advice on this issue. We are using SRM7.0 classic scenario. During configuration, under SPRO>Supplier Relationship Management>SRM Server>Cross Application Basic Settings>Account Asisgnment, we define Account assignment categ

  • Clicking on Spotlight result for email opens Mail

    Hi all, I have developed an issue with Spotlight (upper right hand corner of the bar) recently that was working just fine for a while.  I have Outlook 2011 Mac with an exchange account only.  It use to be that when searching through spotlight and I g

  • Print action's default printer

    Hi, I've configured a print action to trigger a custom smartform within CRMD_ORDER. My print action uses processing class CL_DOC_PROCESSING_CRM_ORDER, and method CRM_SRVORDER_EXEC_SMART_FORM When I execute the action, I get a printout that reads 'PDF