Problem with firing mouseevent

Hai Friends,
Am having a jTable,,
in that, if am single clicking on one cell will open another frame...
if am double clicking on that same cell i should do some validation...
the problem is, when am double clicking the cell the frame opens, i even checked for clickcount... event though its not firing...
Kindly help me...
Regards,
Ciya

I am guessing that you are showing your new frame on the event thread during the single click event and thus it's gaining focus which prevents the double click event occurring. I may well be wrong - that's just a guess.
The reason I'm guessing here is that I've never done what you're doing - opening a new frame on a single click of a JTable cell is really, really weird behaviour and I can't imagine it's a nice way for a UI to behave...

Similar Messages

  • Problems with firing a cluster 2nd time

              hi all,
              we have 4 instances of wls6.0 running on 2 solaris boxes.
              one instance is the admin and the rest are in a cluster..
              after deploying the app homogeneously among the cluster..
              i started the node1 of the cluster(after i started the admin..)
              the app came up and was running well..then i shutdown the admin..still the app
              is running fine on the 1st node of the cluster..but after testing it for a while
              i brought down this node..then i restarted the admin and then the node 1..and
              this time the app is not coming up and the server complains of deployment errors!!
              we configured a dns-host name for the cluster..
              could someone help me gain an insight into this??
              thanks,
              sai
              

              hi all,
              we have 4 instances of wls6.0 running on 2 solaris boxes.
              one instance is the admin and the rest are in a cluster..
              after deploying the app homogeneously among the cluster..
              i started the node1 of the cluster(after i started the admin..)
              the app came up and was running well..then i shutdown the admin..still the app
              is running fine on the 1st node of the cluster..but after testing it for a while
              i brought down this node..then i restarted the admin and then the node 1..and
              this time the app is not coming up and the server complains of deployment errors!!
              we configured a dns-host name for the cluster..
              could someone help me gain an insight into this??
              thanks,
              sai
              

  • Focus Problem with JTree and Menus

    Hi all,
    I have a problem with focus when editing a JTree and selecting a menu. The problem occurs when the user single clicks on a node, invoking the countdown to edit. If the user quickly clicks on a menu item, the focus will go to the menu item, but then when the countdown finishes, the node now has keyboard focus.
    Below is code to reproduce the problem. Click on the node, hover for a little bit, then quickly click on the menu item.
    How would I go about fixing the problem? Thanks!
    import java.awt.Container;
    import java.awt.GridLayout;
    import javax.swing.JFrame;
    import javax.swing.JMenu;
    import javax.swing.JMenuBar;
    import javax.swing.JMenuItem;
    import javax.swing.JTree;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeModel;
    public class MyTree extends JTree {
         public MyTree(DefaultTreeModel treemodel) {
              setModel(treemodel);
              setRootVisible(true);
         public static void main(String[] args) {
              JFrame frame = new JFrame();
              JMenuBar bar = new JMenuBar();
              JMenu menu = new JMenu("Test");
              JMenuItem item = new JMenuItem("Item");
              menu.add(item);
              bar.add(menu);
              frame.setJMenuBar(bar);
              Container contentPane = frame.getContentPane();
              contentPane.setLayout(new GridLayout(1, 2));
              DefaultMutableTreeNode root1 = new DefaultMutableTreeNode("Root");
              root1.add(new DefaultMutableTreeNode("Root2"));
              DefaultTreeModel model = new DefaultTreeModel(root1);
              MyTree tree1 = new MyTree(model);
              tree1.setEditable(true);
              tree1.setCellEditor(
                   new ComponentTreeCellEditor(
                        tree1,
                        new ComponentTreeCellRenderer()));
              tree1.setRowHeight(0);
              contentPane.add(tree1);
              frame.pack();
              frame.show();
    import java.awt.FlowLayout;
    import java.util.EventObject;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    import javax.swing.JTree;
    import javax.swing.tree.DefaultTreeCellEditor;
    import javax.swing.tree.DefaultTreeCellRenderer;
    import javax.swing.tree.DefaultTreeModel;
    import javax.swing.tree.TreeCellEditor;
    import javax.swing.tree.TreeCellRenderer;
    public class ComponentTreeCellEditor
         extends DefaultTreeCellEditor
         implements TreeCellEditor {
         private String m_oldValue;
         private TreeCellRenderer m_renderer = null;
         private DefaultTreeModel m_model = null;
         private JPanel m_display = null;
         private JTextField m_field = null;
         private JTree m_tree = null;
         public ComponentTreeCellEditor(
              JTree tree,
              DefaultTreeCellRenderer renderer) {
              super(tree, renderer);
              m_renderer = renderer;
              m_model = (DefaultTreeModel) tree.getModel();
              m_tree = tree;
              m_display = new JPanel(new FlowLayout(FlowLayout.LEFT));
              m_field = new JTextField();
              m_display.add(new JLabel("My Label "));
              m_display.add(m_field);
         public java.awt.Component getTreeCellEditorComponent(
              JTree tree,
              Object value,
              boolean isSelected,
              boolean expanded,
              boolean leaf,
              int row) {
              m_field.setText(value.toString());
              return m_display;
         public Object getCellEditorValue() {
              return m_field.getText();
          * The edited cell should always be selected.
          * @param anEvent the event that fired this function.
          * @return true, always.
         public boolean shouldSelectCell(EventObject anEvent) {
              return true;
          * Only edit immediately if the event is null.
          * @param event the event being studied
          * @return true if event is null, false otherwise.
         protected boolean canEditImmediately(EventObject event) {
              return (event == null);
    }

    You can provide a cell renderer to the JTree to paint the checkBox.
    The following code checks or unchecks the box with each click also:
    _tree.setCellRenderer(new DefaultTreeCellRenderer()
      private JCheckBox checkBox = null;
      public Component getTreeCellRendererComponent(JTree tree,
                                                    Object value,
                                                    boolean selected,
                                                    boolean expanded,
                                                    boolean leaf,
                                                    int row,
                                                    boolean hasFocus)
        // Each node will be drawn as a check box
        if (checkBox == null)
          checkBox  = new JCheckBox();
          checkBox .setBackground(tree.getBackground());
        DefaultMutableTreeNode node = (DefaultMutableTreeNode)value;
        checkBox.setText(node.getUserObject().toString());
        checkBox.setSelected(selected);
        return checkBox;
    });

  • Problem with FLVPlayback and component

    First of all I had problem with control component. they are not working so i just named that ppo and change the visibility to false to get rid of problem!
    ppo.visible=false;
    Question1
    (is there anyway to solve the problem? I mean to match the controlbar with screen of FLVplayer.)
    Question2
    what is the difference btw Flvplayback and FLVplayback 2.5 ?
    Question3
    whenever I click in btn1 it plays the flv.but sometimes it has no action so i click again and suddenly it plays the 001.flv twice and simultanously(even more than twice!)
    how can I solve my problem ?
    ___________________Frame 1______________
    import fl.video.*;
    import flash.events.MouseEvent;
    var myVideo:FLVPlayback = new FLVPlayback();
    control.visible=false;
    myVideo.x = 115;
    myVideo.y = -10;
    myVideo.skinBackgroundColor = 0x333333;
    myVideo.skinAutoHide=true;
    myVideo.skinFadeTime=300;
    addChild(myVideo);
    btn1.addEventListener(MouseEvent.CLICK , c1);
    function c1(e:MouseEvent):void
    myVideo.source = '001.flv';   
    Question 4 : I want to jump to another frame and start another flv but I want to stop previous flv. and again add myVideo2 to stage like frame 1 pattern. Is it true ? is there any better way to do this ?
    ---------------------------frame5-----------------------
    import fl.video.*;
    import flash.events.MouseEvent;
    var myVideo2:FLVPlayback = new FLVPlayback();
    control2.visible=false;
    myVideo2.x = 115;
    myVideo2.y = -10;
    myVideo2.skinBackgroundColor = 0x333333;
    myVideo2.skinAutoHide=true;
    myVideo2.skinFadeTime=300;
    addChild(myVideo2);
    btn2.addEventListener(MouseEvent.CLICK , c2);
    function c2(e:MouseEvent):void
    myVideo2.source = '002.flv';   
    thank you in advanced..

    Question1
    (is there anyway to solve the problem? I mean to match the controlbar with screen of FLVplayer.)
    what are you calling the '..controlbar' and what are you calling the '...control component'?
    Question2
    what is the difference btw Flvplayback and FLVplayback 2.5 ?
    2.5 has more features, http://blogs.adobe.com/ktowes/2009/05/announcing_dvrcast_and_flvplay.html
    Question3
    whenever I click in btn1 it plays the flv.but sometimes it has no action so i click again and suddenly it plays the 001.flv twice and simultanously(even more than twice!)
    how can I solve my problem ?
    remove the click listener so you can only click once.  then you may need to wait if testing online.
    ___________________Frame 1______________
    import fl.video.*;
    import flash.events.MouseEvent;
    var myVideo:FLVPlayback = new FLVPlayback();
    control.visible=false;
    myVideo.x = 115;
    myVideo.y = -10;
    myVideo.skinBackgroundColor = 0x333333;
    myVideo.skinAutoHide=true;
    myVideo.skinFadeTime=300;
    addChild(myVideo);
    btn1.addEventListener(MouseEvent.CLICK , c1);
    function c1(e:MouseEvent):void
    myVideo.source = '001.flv';   
    Question 4 : I want to jump to another frame and start another flv but I want to stop previous flv. and again add myVideo2 to stage like frame 1 pattern. Is it true ? is there any better way to do this ?
    ---------------------------frame5-----------------------
    import fl.video.*;
    import flash.events.MouseEvent;
    myVideo.stop();
    removeChild(myVideo);
    myVideo=null;
    var myVideo2:FLVPlayback = new FLVPlayback();
    control2.visible=false;
    myVideo2.x = 115;
    myVideo2.y = -10;
    myVideo2.skinBackgroundColor = 0x333333;
    myVideo2.skinAutoHide=true;
    myVideo2.skinFadeTime=300;
    addChild(myVideo2);
    btn2.addEventListener(MouseEvent.CLICK , c2);
    function c2(e:MouseEvent):void
    myVideo2.source = '002.flv';   

  • Problem with drag and drop

    Hi! I'm having a problem with getting this code working, basically I want to drag and drop two things onto another the things dissapear then it moves onto a new page, the first item works properly but then the second item wont dissapear and remains stuck to the cursor. Heres the code I'd be greatful of any help.
    import flash.events.MouseEvent;
    import fl.motion.MotionEvent;
    stop();
    Back6_btn.addEventListener(MouseEvent.CLICK, onBack6Click)
    function onBack6Click(event:MouseEvent):void{
        gotoAndPlay("Bedroom2");
        Forward6_btn.addEventListener(MouseEvent.CLICK, onForward6Click)
    function onForward6Click(event:MouseEvent):void{
        gotoAndPlay('Brother bit');
    var inGran:Number=0;
    Gin.addEventListener(MouseEvent.MOUSE_DOWN, dragOn);
    Tonic.addEventListener(MouseEvent.MOUSE_DOWN, dragOn);
    function dragOn(event:MouseEvent):void {
        event.target.startDrag(false);
        stage.addEventListener(MouseEvent.MOUSE_UP, dragOff);
    function dragOff(event:MouseEvent):void {
        event.target.stopDrag();
        if (event.target.dropTarget!=null&&event.target.dropTarget.parent==Gran) {
            event.target.visible=false;
            inGran++;
        stage.removeEventListener(MouseEvent.MOUSE_UP, dragOff);
    function checkPage(e:Event):void {
        if (inGran==2) {
            gotoAndPlay("Bedroom1");

    you have some mismatched brackets, change your target properties to currentTarget (and i'm not sure you're dropping onto the correct target) but, try:
    import flash.events.MouseEvent;
    import fl.motion.MotionEvent;
    stop();
    Back6_btn.addEventListener(MouseEvent.CLICK, onBack6Click)
    function onBack6Click(event:MouseEvent):void{
        gotoAndPlay("Bedroom2");
        Forward6_btn.addEventListener(MouseEvent.CLICK, onForward6Click)
    function onForward6Click(event:MouseEvent):void{
        gotoAndPlay('Brother bit');
    var inGran:Number=0;
    Gin.addEventListener(MouseEvent.MOUSE_DOWN, dragOn);
    Tonic.addEventListener(MouseEvent.MOUSE_DOWN, dragOn);
    function dragOn(event:MouseEvent):void {
    event.currentTarget.parent.addChild(event.currentTarget);
        event.target.startDrag(false);
        stage.addEventListener(MouseEvent.MOUSE_UP, dragOff);
    function dragOff(event:MouseEvent):void {
        event.target.stopDrag();
        if (event.target.dropTarget!=null&&event.target.dropTarget.parent==Gran) {
            event.target.visible=false;
            inGran++;
        stage.removeEventListener(MouseEvent.MOUSE_UP, dragOff);
    function checkPage(e:Event):void {
        if (inGran==2) {
            gotoAndPlay("Bedroom1");

  • Problem with addRow and MultiLine Cell renderer

    Hi ,
    Ive a problem with no solution to me .......
    Ive seen in the forum and Ivent found an answer.......
    The problem is this:
    Ive a JTable with a custom model and I use a custom multiline cell renderer.
    (becuse in the real application "way" hasnt static lenght)
    When I add the first row all seem to be ok.....
    when I try to add more row I obtain :
    java.lang.ArrayIndexOutOfBoundsException: 1
    at javax.swing.SizeSequence.insertEntries(SizeSequence.java:332)
    at javax.swing.JTable.tableRowsInserted(JTable.java:2926)
    at javax.swing.JTable.tableChanged(JTable.java:2858)
    at javax.swing.table.AbstractTableModel.fireTableChanged(AbstractTableMo
    del.java:280)
    at javax.swing.table.AbstractTableModel.fireTableRowsInserted(AbstractTa
    bleModel.java:215)
    at TableDemo$MyTableModel.addRow(TableDemo.java:103)
    at TableDemo$2.actionPerformed(TableDemo.java:256)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:17
    64)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
    ctButton.java:1817)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
    .java:419)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
    istener.java:245)
    at java.awt.Component.processMouseEvent(Component.java:5134)
    at java.awt.Component.processEvent(Component.java:4931)
    at java.awt.Container.processEvent(Container.java:1566)
    at java.awt.Component.dispatchEventImpl(Component.java:3639)
    at java.awt.Container.dispatchEventImpl(Container.java:1623)
    at java.awt.Component.dispatchEvent(Component.java:3480)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
    at java.awt.Container.dispatchEventImpl(Container.java:1609)
    at java.awt.Window.dispatchEventImpl(Window.java:1590)
    at java.awt.Component.dispatchEvent(Component.java:3480)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:197)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    This seems to be caused by
    table.setRowHeight(row,(getPreferredSize().height+2)); (line 164 of my example code)
    About the model I think its ok.....but who knows :-(......
    Please HELP me in anyway!!!
    Example code :
    import javax.swing.*;
    import javax.swing.table.*;
    import java.text.*;
    import javax.swing.text.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class TableDemo extends JFrame {
    private boolean DEBUG = true;
    MyTableModel myModel = new MyTableModel();
    MyTable table = new MyTable(myModel);
    int i=0;
    public TableDemo() {
    super("TableDemo");
    JButton bottone = new JButton("Aggiungi 1 elemento");
    table.setPreferredScrollableViewportSize(new Dimension(500, 70));
    //table.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
    //Create the scroll pane and add the table to it.
    JScrollPane scrollPane = new JScrollPane(table);
    //Add the scroll pane to this window.
    getContentPane().add(bottone,BorderLayout.NORTH);
    getContentPane().add(scrollPane, BorderLayout.CENTER);
    bottone.addActionListener(Add_Action);
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    class MyTable extends JTable {
    MultiLineCellRenderer multiRenderer=new MultiLineCellRenderer();
    MyTable(TableModel tm)
    super(tm);
    public TableCellRenderer getCellRenderer(int row,int col) {
              if (col==1) return multiRenderer;
              else return super.getCellRenderer(row,col);
    class MyTableModel extends AbstractTableModel {
    Vector data=new Vector();
    final String[] columnNames = {"Name",
    "Way",
    "DeadLine (ms)"
    public int getColumnCount() { return 3; }
    public int getRowCount() { return data.size(); }
    public Object getValueAt(int row, int col) {
    Vector rowdata=(Vector)data.get(row);
                                                                return rowdata.get(col); }
    public String getColumnName(int col) {
    return columnNames[col];
    public void setValueAt (Object value, int row,int col)
         //setto i dati della modifica
    Vector actrow=(Vector)data.get(row);
    actrow.set(col,value);
         this.fireTableCellUpdated(row,col);
         public Class getColumnClass(int c)
              return this.getValueAt(0,c).getClass();
         public boolean isCellEditable(int row, int col) {
    //Note that the data/cell address is constant,
    //no matter where the cell appears onscreen.
    if (col == 1)
    return false;
    else
    return true;
    public void addRow (String name,ArrayList path,Double dead) {
         Vector row =new Vector();
         row.add(name);
         row.add(path);
         row.add(dead);
         row.add(name); //!!!Mi tengo questo dato da utilizzare come key per andare a
         //prendere il path nella lista dei paths di Project
         //(needed as key to retrive data if name in col. 1 is changed)
         data.add(row);
         //Inspector.inspect(this);
         System.out.println ("Before firing Adding row...."+this.getRowCount());
         this.fireTableRowsInserted(this.getRowCount(),this.getRowCount());
    public void delRow (String namekey)
    for (int i=0;i<this.getRowCount();i++)
    if (namekey.equals(this.getValueAt(i,3)))
    data.remove(i);
    this.fireTableRowsDeleted(i,i);
    //per uscire dal ciclo
    i=this.getRowCount();
    public void delAllRows()
    int i;
    int bound =this.getRowCount();     
    for (i=0;i<bound;i++)     
         {data.remove(0);
         System.out.println ("Deleting .."+data);
    this.fireTableRowsDeleted(0,i);          
    class MultiLineCellRenderer extends JTextArea implements TableCellRenderer {
    private Hashtable rowHeights=new Hashtable();
    public MultiLineCellRenderer() {
    setEditable(false);
    setLineWrap(true);
    setWrapStyleWord(true);
    //this.setBorder(new Border(
    public Component getTableCellRendererComponent(JTable table,Object value,                              boolean isSelected, boolean hasFocus, int row, int column) {
    //System.out.println ("Renderer called"+value.getClass());
    if (value instanceof ArrayList) {
    String way=new String     (value.toString());
    setText(way);
    TableColumn thiscol=table.getColumn("Way");
    //System.out.println ("thiscol :"+thiscol.getPreferredWidth());
    //setto il size della JTextarea sulle dimensioni della colonna
    //per quanto riguarda il widht e su quelle ottenute da screen per l'height
    this.setSize(thiscol.getPreferredWidth(),this.getPreferredSize().height);
    // set the table's row height, if necessary
    //System.out.println ("Valore getPreferred.height"+getPreferredSize().height);
         if (table.getRowHeight(row)!=(this.getPreferredSize().height+2))
         {System.out.println ("Setting Row :"+row);
             System.out.println ("Dimension"+(getPreferredSize().height+2));
             System.out.println ("There are "+table.getRowCount()+"rows in the table ");
             if (row<table.getRowCount())
             table.setRowHeight(row,(getPreferredSize().height+2));
    else
    setText("");
    return this;
    /**Custom JTextField Subclass che permette all'utente di immettere solo numeri
    class WholeNumberField extends JTextField {
    private Toolkit toolkit;
    private NumberFormat integerFormatter;
    public WholeNumberField(int value, int columns) {
    super(columns);
    toolkit = Toolkit.getDefaultToolkit();
    integerFormatter = NumberFormat.getNumberInstance(Locale.US);
    integerFormatter.setParseIntegerOnly(true);
    setValue(value);
    public int getValue() {
    int retVal = 0;
    try {
    retVal = integerFormatter.parse(getText()).intValue();
    } catch (ParseException e) {
    // This should never happen because insertString allows
    // only properly formatted data to get in the field.
    toolkit.beep();
    return retVal;
    public void setValue(int value) {
    setText(integerFormatter.format(value));
    protected Document createDefaultModel() {
    return new WholeNumberDocument();
    protected class WholeNumberDocument extends PlainDocument {
    public void insertString(int offs,
    String str,
    AttributeSet a)
    throws BadLocationException {
    char[] source = str.toCharArray();
    char[] result = new char[source.length];
    int j = 0;
    for (int i = 0; i < result.length; i++) {
    if (Character.isDigit(source))
    result[j++] = source[i];
    else {
    toolkit.beep();
    System.err.println("insertString: " + source[i]);
    super.insertString(offs, new String(result, 0, j), a);
    ActionListener Add_Action = new ActionListener() {
              public void actionPerformed (ActionEvent e)
              System.out.println ("Adding");
              ArrayList way =new ArrayList();
              way.add(new String("Uno"));
              way.add(new String("Due"));
              way.add(new String("Tre"));
              way.add(new String("Quattro"));
              myModel.addRow(new String("Nome"+i++),way,new Double(0));     
    public static void main(String[] args) {
    TableDemo frame = new TableDemo();
    frame.pack();
    frame.setVisible(true);

    In the addRow method, change the line
    this.fireTableRowsInserted(this.getRowCount(),this.getRowCount()); to
    this.fireTableRowsInserted(data.size() - 1, data.size() - 1);Sai Pullabhotla

  • Problem with ScrollPane and JFrame Size

    Hi,
    The code is workin but after change the size of frame it works CORRECTLY.Please help me why this frame is small an scrollpane doesn't show at the beginning.
    Here is the code:
    import java.awt.*;
    public class canvasExp extends Canvas
         private static final long serialVersionUID = 1L;
         ImageLoader map=new ImageLoader();
        Image img = map.GetImg();
        int h, w;               // the height and width of this canvas
         public void update(Graphics g)
            paint(g);
        public void paint(Graphics g)
                if(img != null)
                     h = getSize().height;
                     System.out.println("h:"+h);
                      w = getSize().width;
                      System.out.println("w:"+w);
                      g.drawRect(0,0, w-1, h-1);     // Draw border
                  //  System.out.println("Size= "+this.getSize());
                     g.drawImage(img, 0,0,this.getWidth(),this.getHeight(), this);
                    int width = img.getWidth(this);
                    //System.out.println("W: "+width);
                    int height = img.getHeight(this);
                    //System.out.println("H: "+height);
                    if(width != -1 && width != getWidth())
                        setSize(width, getHeight());
                    if(height != -1 && height != getHeight())
                        setSize(getWidth(), height);
    }I create frame here...
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.JFrame;
    public class frame extends JFrame implements MouseMotionListener,MouseListener
         private static final long serialVersionUID = 1L;
        private ScrollPane scrollPane;
        private int dragStartX;
        private int dragStartY;
        private int lastX;
        private int lastY;
        int cordX;
        int cordY;
        canvasExp canvas;
        public frame()
            super("test");
            canvas = new canvasExp();
            canvas.addMouseListener(this);
            canvas.addMouseMotionListener(this);
            scrollPane = new ScrollPane();
            scrollPane.setEnabled(true);
            scrollPane.add(canvas);
            add(scrollPane);
            setSize(300,300);
            pack();
            setVisible(true);
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        public void mousePressed(MouseEvent e)
            dragStartX = e.getX();
            dragStartY = e.getY();
            lastX = getX();
            lastY = getY();
        public void mouseReleased(MouseEvent mouseevent)
        public void mouseClicked(MouseEvent e)
            cordX = e.getX();
            cordY = e.getY();
            System.out.println((new StringBuilder()).append(cordX).append(",").append(cordY).toString());
        public void mouseEntered(MouseEvent mouseevent)
        public void mouseExited(MouseEvent mouseevent)
        public void mouseMoved(MouseEvent mouseevent)
        public void mouseDragged(MouseEvent e)
            if(e.getX() != lastX || e.getY() != lastY)
                Point p = scrollPane.getScrollPosition();
                p.translate(dragStartX - e.getX(), dragStartY - e.getY());
                scrollPane.setScrollPosition(p);
    }...and call here
    public class main {
         public main(){}
         public static void main (String args[])
             frame f = new frame();
    }There is something I couldn't see here.By the way ImageLoader is workin I get the image.
    Thank you for your help,please answer me....

    I'm not going to even attempt to resolve the problem posted. There are other problems with your code that should take priority.
    -- class names by convention start with a capital letter.
    -- don't use the name of a common class from the standard API for your custom class, not even with a difference of case. It'll come back to bite you.
    -- don't mix awt and Swing components in the same GUI. Change your class that extends Canvas to extend JPanel instead, and override paintComponent(...) instead of paint(...).
    -- launch your GUI on the EDT by wrapping it in a SwingUtilities.invokeLater or EventQueue.invokeLater.
    -- calling setSize(...) followed by pack() is meaningless. Use one or the other.
    -- That's not the correct way to display a component in a scroll pane.
    Ah, well, and the problem is that when you call pack(), it retrieves the preferredSize of the components in the JFrame, and you haven't set a preferredSize for the scroll pane.
    Please, for your own good, take a break from whatever it is you're working on and go through The Java&#8482; Tutorials: [Creating a GUI with JFC/Swing|http://java.sun.com/docs/books/tutorial/uiswing/TOC.html]
    db

  • Problem with JComboBox in aTable Cell

    I try to put JComboBox in JTableCell,
    what i want to do is something like this...
    Question | Answer |
    1. what is your favourite | a. Pizza |
    food? | b. Hot Dog |
    2. what is your favourite | a. red |
    color? | b. blue |
    Object[][] data = {
    {"1.What is your favourite food?", new AnswerChoices(new String[]{"a.Pizza","b.Hot Dog"})},
    {"2.What is your favourite color?", new AnswerChoices(new String[]{"a.red","b.blue"})}
    here my code;
    //class AnswerChoicesCellEditor
    import javax.swing.table.*;
    import javax.swing.*;
    import java.awt.Component;
    import java.awt.event.MouseEvent;
    import java.util.EventObject;
    import de.falcom.table.*;
    public class AnswerChoicesCellEditor extends AbstractCellEditor implements TableCellEditor{
         protected JComboBox mComboBox;
    public AnswerChoicesCellEditor(){
         mComboBox = new JComboBox();
         mComboBox.addActionListener(this);
         mComboBox.setEditable(false);
    public Component getTableCellEditorComponent(JTable table,Object value,boolean isSelected,int row,int column){
         if(value instanceof AnswerChoices){
              AnswerChoices a = (AnswerChoices)value;
              String[] c = a.getChoices();
              mComboBox.removeAllItems();
              for(int i=0; i < c.length; i++)
                   mComboBox.addItem(c);
                   mComboBox.setSelectedIndex(a.getAnswer());
         return mComboBox;
    public Object getCellEditorValue(){
         int nchoices = mComboBox.getItemCount();
         String[] c = new String[nchoices];
         for(int i = 0; i<nchoices; i++){
              c[i] = mComboBox.getItemAt(i).toString();
         return new AnswerChoices(c,mComboBox.getSelectedIndex());
         //return mComboBox.getSelectedItem(); //here i get but after selection there is no comboBox in tableCell
    //the Renderer class
    import javax.swing.table.TableCellRenderer;
    import javax.swing.*;
    import java.awt.Component;
    public class AnswerChoicesCellRenderer extends JComboBox implements TableCellRenderer {
         private Object curValue;
    /** Creates new AnswerChoiceCellRenderer */
    public AnswerChoicesCellRenderer() {
    setEditable(false);
    public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected,boolean hasFocus,int row,int column) {
    if (value instanceof AnswerChoices) {
    AnswerChoices nl = (AnswerChoices)value;
    String[] tList = nl.getChoices();
    if (tList != null) {
    removeAllItems();
    for (int i=0; i<tList.length; i++)
    addItem(tList[i]);
         setSelectedIndex(AnswerChoices.getAnswer());
         //this.setSelectedItem();
    //return this;
    //this.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
    if (table != null)
    if (table.isCellEditable(row, column))
    setForeground(CellRendererConstants.EDITABLE_COLOR);
    else
    setForeground(CellRendererConstants.UNEDITABLE_COLOR);
              setBackground(table.getBackground());
    return this;
    public class AnswerChoices {
         static int ans = 0;
         String[] choices ;
    public AnswerChoices(String[]c,int a){
              choices = c;
              ans          = a;
    public AnswerChoices(String[] c){
              this(c,0);
    public String[] getChoices(){
         return choices;
    public void setAnswer(int a){
         ans = a;
    public static int getAnswer(){
         return ans;
    //the TableModel i used in my app
    import java.awt.Color;
    import javax.swing.JTable;
    import javax.swing.ListSelectionModel;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.TableCellEditor;
    import javax.swing.table.TableCellRenderer;
    import javax.swing.table.TableColumn;
    import javax.swing.table.TableModel;
    import javax.swing.*;
    public class FAL_Table extends JTable {
    /** Creates new FAL_Table */
    public FAL_Table(DefaultTableModel dtm) {
    super(dtm);
    setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    setRowSelectionAllowed(false);
    setColumnSelectionAllowed(false);
    setBackground(java.awt.Color.white);
    setDefaultCellEditorRenderer();
    private void setDefaultCellEditorRenderer(Class forClass, TableCellEditor editor, TableCellRenderer renderer) {
         setDefaultEditor(forClass, editor);
         setDefaultRenderer(forClass, renderer);
         private void setDefaultCellEditorRenderer() {
              // Setting default editor&renderer of Boolean
              setDefaultCellEditorRenderer(Boolean.class, new BooleanCellEditor(), new BooleanCellRenderer());
              //Setting default editor&renderer of ComboBox
              setDefaultCellEditorRenderer(JComboBox.class, new ComboBoxCellEditor( ),new ComboBoxRenderer());
              // Number class
              // Setting default editor&renderer of java.math.BigDecimal
              setDefaultCellEditorRenderer(java.math.BigDecimal.class,new NumberCellEditor(), new NumberCellRenderer());
              // Setting default editor&renderer of java.math.BigInteger
              setDefaultCellEditorRenderer(java.math.BigInteger.class,new NumberCellEditor(), new NumberCellRenderer());
              // Setting default editor&renderer of java.lang.Byte
              setDefaultCellEditorRenderer(Byte.class,new NumberCellEditor(), new NumberCellRenderer());
              // Setting default editor&renderer of Double
              setDefaultCellEditorRenderer(Double.class,new NumberCellEditor(), new NumberCellRenderer());
              // Setting default editor&renderer of Float
              setDefaultCellEditorRenderer(Float.class,new NumberCellEditor(), new NumberCellRenderer());
              // Setting default editor&renderer of Integer
              setDefaultCellEditorRenderer(Integer.class,new NumberCellEditor(), new NumberCellRenderer());
              // Setting default editor&renderer of Long
              setDefaultCellEditorRenderer(Long.class,new NumberCellEditor(), new NumberCellRenderer());
              // Setting default editor&renderer of Short
              setDefaultCellEditorRenderer(Short.class,new NumberCellEditor(), new NumberCellRenderer());
              // Setting default editor&renderer of String
              setDefaultCellEditorRenderer(String.class,new StringCellEditor(), new StringCellRenderer());
              // Setting default editor&renderer of FileName
              setDefaultCellEditorRenderer(FileName.class,new FileNameCellEditor(), new FileNameCellRenderer());
              // Setting default editor&renderer of Color
              setDefaultCellEditorRenderer(Color.class,new ColorCellEditor(), new ColorCellRenderer());
              setDefaultCellEditorRenderer(AnswerChoices.class, new AnswerChoicesCellEditor(), new AnswerChoicesCellRenderer());
              setDefaultCellEditorRenderer(JSpinner.class, new SpinnerCellEditor(), new SpinnerRenderer());
    public Class getCellClass(int row,int col) {
    TableModel model = getModel();
    if (model instanceof FAL_TableModel) {
    FAL_TableModel ptm = (FAL_TableModel)model;
    return ptm.getCellClass(row,convertColumnIndexToModel(col));
    return model.getColumnClass(convertColumnIndexToModel(col));
    public TableCellRenderer getCellRenderer(int row, int column) {
    TableColumn tableColumn = getColumnModel().getColumn(column);
    TableCellRenderer renderer = tableColumn.getCellRenderer();
    if (renderer == null) {
    renderer = getDefaultRenderer(getCellClass(row,column));
    return renderer;
    public TableCellEditor getCellEditor(int row, int column) {
    TableColumn tableColumn = getColumnModel().getColumn(column);
    TableCellEditor editor = tableColumn.getCellEditor();
    if (editor == null) {
    editor = getDefaultEditor(getCellClass(row,column));
    return editor;
    import javax.swing.table.*;
    import java.util.Vector;
    import java.awt.event.MouseEvent;
    import java.util.EventObject;
    public class FAL_TableModel extends DefaultTableModel implements TableModel {
    public FAL_TableModel() {
    this((Vector)null, 0);
    public FAL_TableModel(int numRows, int numColumns) {
    super(numRows,numColumns);
    public FAL_TableModel(Vector columnNames, int numRows) {
    super(columnNames,numRows);
    public FAL_TableModel(Object[] columnNames, int numRows) {
    super(convertToVector(columnNames), numRows);
    public FAL_TableModel(Vector data, Vector columnNames) {
    setDataVector(data, columnNames);
    public FAL_TableModel(Object[][] data, Object[] columnNames) {
    setDataVector(data, columnNames);
         public boolean isCellEditable(int row, int col) {
    //Note that the data/cell address is constant,
    //no matter where the cell appears onscreen.
    Object obj = getValueAt(row,col);
    if (col != 1){
    return false;
         }else{
              return true;
    public Class getCellClass(int row,int col) {
    Object obj = getValueAt(row,col);
    if (obj != null)
         return obj.getClass();
         else
         return Object.class;
    public Object getCellValue(int row,int col) {
    Object obj = getValueAt(row,col);
              return obj;      
    my problem is, when i select an item from one of the comboBox in the table the value of the other cells changes too and i have the same problem with JSpinner.
    please help i am stuck
    Gebi

    and when i try to get the current value oa a cell it returns the Component class like this
    AnswerChoices@bf1f20 ...

  • Problem with date validation

    The enclosed trivial sample illustrates a problem I'm experiencing with validating dates
    The date field is initialized when the form opens.
    Once the form is open,  click the button and a popup appears saying there is a validation problem with the date field. Yet if the date is selected with the date selection widget the appearance is exactly the same, but without the validation problem. What's going on?

    OK, I've solved this, but I am hoping some kind person can tell me why I solved it.
    On the trivial form I enclosed before before, the "click" script used to say
    xfa.forms.recalculate(1);
    Now I've changed it to
    xfa.forms.recalculate (0);
    And I no longer see the undesired date validtion errors when I click the button. (See updated enclosure on this post).
    The difference is supposed to be that, if the parameter is 0 (or false) then only "pending" calculation scripts are fired, and if 1 (or true) then all calculation scripts are fired. So what does it mean to my DateTime field having unjust validation errors? The DateTime field has no calculation script, only an iitialize script.

  • Problem with checkbox and Event.stop(event)

    Hello,
    I cannot change the checkbox in a row, if the Event.stop(event) is fired on checkbox. My aim is, that the event OnRowClick is stoped, if I change the checkbox in the row.
    <rich:extendedDataTable id="requestTable" value="#{requestListHandler.normalisedRawRequestList}" var="req"
                             rows="#{requestListHandler.limitRows}" selectionMode="single">
                             <a4j:support event="onRowClick" action="#{requestListHandler.viewRequest}">
                                  <f:setPropertyActionListener value="#{req}"
                                       target="#{requestHandler.selectedRequest}" />
                                  </a4j:support>
                            <rich:column>
                                       <h:outputText value="#{req.offerListSize}">
                                            <f:convertNumber type="number" />
                                       </h:outputText>
                         </rich:column>
                             <rich:column id="checkBoxColumns">
                                       <h:selectBooleanCheckbox onclick="Event.stop(event);"
                                            value="#{req.firstInterpreterTimeChecked}"/>
                         </rich:column>
    </rich:extendedDataTable>I know I am using richfaces, but I have problem with sun-ri component <h:selectBooleanCheckbox..../>.
    Have you any idea?
    Manu
    Edited by: Argonist on Jun 16, 2009 8:27 AM
    Edited by: Argonist on Jun 16, 2009 12:25 PM

    I had the same problem. I read you post and was so disappointed that no one had answered you. But I have a good news for you :) My team leader managed to solve this awkward problem.Add to h:selectBooleanCheckbox style="z-index: 20;" so that it is "above" the table row that fires its own onclick event.

  • Problems with Modbus OMNI driver

    Lookout version 5.1 (build 8)
    I am using the Modbus OMNI driver to communicate with 6 OMNI 6000 flow computers at 56K (Hardwired) with a poll rate of every 20 seconds, receive gap 270 bytes and a failure of 1000mS.
    The problem I have is that when scanning the OMNI, not only are they slow to respond hence the long delays between scans, but I am also finding that the OMNI data for handling digital outputs is being corrupted causing?? them to fire faster than the period I have set in the OMNI. i.e. if I set a pulse output to occur when 1m3 of fluid has past I should get one pulse from the digital output. What is happening is that the outputs slowly start firing much quicker than this until we lose control of the signal and have to reconfigure the flow computer.
    Is there a possibility that Lookout is corrupting some of the memory areas within the OMNI and causing this.
    I see from other users that they are having problem with slow responses from this driver.
    Any advice you have on this matter would be useful
    Derek

    Lookout version 5.1 (build 8)
    I am using the Modbus OMNI driver to communicate with 6 OMNI 6000 flow computers at 56K (Hardwired) with a poll rate of every 20 seconds, receive gap 270 bytes and a failure of 1000mS.
    The problem I have is that when scanning the OMNI, not only are they slow to respond hence the long delays between scans, but I am also finding that the OMNI data for handling digital outputs is being corrupted causing?? them to fire faster than the period I have set in the OMNI. i.e. if I set a pulse output to occur when 1m3 of fluid has past I should get one pulse from the digital output. What is happening is that the outputs slowly start firing much quicker than this until we lose control of the signal and have to reconfigure the flow computer.
    Is there a possibility that Lookout is corrupting some of the memory areas within the OMNI and causing this.
    I see from other users that they are having problem with slow responses from this driver.
    Any advice you have on this matter would be useful
    Derek

  • Problem with XML loading and xmlns

    I'm having a problem with loading an XML file that was created by Filemaker.  Filemaker will output an XML file using one of two different grammars.  One outputs in a mostly standard form that I can use with one glitch.  Flash CS4 AS3 seems to have a problem with the xmlns in one of the nodes.
    Specifically:
    <FMPDSORESULT xmlns="http://www.filemaker.com/fmpdsoresult">
    If I remove the xmlns="http://www.filemaker.com/fmpdsoresult" the file loads properly and I can access the various fields with no problem.  However, when I leave the xmlns=... in, it will trace out the XML properly but I can't access the fields using the code listed below.  This is driving me crazy!
    With the xmlns part in the XML file I get the following error when it tries to load the thumbnail files:
    TypeError: Error #1010: A term is undefined and has no properties.
    I need to have it so that the user can enter/edit data and simply output the XML file from Filemaker and then Flash will load up the unaltered XML file and show the info requested by the user.  That is to say I could have the user open the XML file in a word processing application and have them delete the xmlns..., but that is rather cumbersome and not very user friendly.
    I've tried every xml.ignore function I could find but it doesn't help.  Hopefully someone out there can help
    Thanks,
    -Mark-
    Partial XML:
    XML From Filemaker Export:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!-- This grammar has been deprecated - use FMPXMLRESULT instead -->
    <FMPDSORESULT xmlns="http://www.filemaker.com/fmpdsoresult">
      <ERRORCODE>0</ERRORCODE>
      <DATABASE>Sport.fp7</DATABASE>
      <LAYOUT></LAYOUT>
      <ROW MODID="1" RECORDID="1">
        <FirstName>Mark</FirstName>
        <LastName>Fowle</LastName>
        <Sport>Sailing</Sport>
        <Medal>None</Medal>
        <CourseOfStudy>Design</CourseOfStudy>
        <Year>1976-1978</Year>
        <HomeState>California</HomeState>
        <ImageName>93</ImageName>
      </ROW>
    </FMPDSORESULT>
    AS3 Code:
    import fl.containers.UILoader;
    var aPhoto:Array=new Array(ldPhoto_0,ldPhoto_1,ldPhoto_2,ldPhoto_3,ldPhoto_4,ldPhoto_5);
    var toSet:int=10;//time out set time
    var toTime:int=toSet;
    var photoPerPage:int=6;
    var fromPos:int=photoPerPage;
    var imgNum:Number;
    //var subjectURL:URLRequest=new URLRequest("testData_FM8.xml");
    var subjectURL:URLRequest=new URLRequest("Sports.xml");
    var xmlLoader:URLLoader=new URLLoader(subjectURL);
    xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
    var subjectXML:XML = new XML();
    subjectXML.ignoreWhitespace=true;
    subjectXML.ignoreComments=true;
    subjectXML.ignoreProcessingInstructions=true;
    function xmlLoaded(evt:Event):void {
        subjectXML=XML(xmlLoader.data);
        if (root.loaderInfo.bytesTotal==root.loaderInfo.bytesLoaded) {
            removeEventListener(Event.ENTER_FRAME, xmlLoaded);
            trace("XML Data File Loaded");
            trace(subjectXML);
        } else {
            trace("File not Found");
        imgNum=2;//subjectXML.ROW.length;
        trace(subjectXML);
        loadThumb(0);
    function loadThumb(startPos:int):void {
        var count:Number=aPhoto.length;
        trace(subjectXML.DATABASE);
        for (var i=0; i<count; i++) {
        try{
            aPhoto[i].source="images/"+subjectXML.ROW[startPos+i].ImageName+"_main.jpg";
        }catch (e:Error){
            trace(e);
            aPhoto[i].mouseChildren=false;
            aPhoto[i].addEventListener(MouseEvent.MOUSE_DOWN, onThumbClick);
        trace("Current mem: " + System.totalMemory);
        ldAttract.visible=false;
    function unloadThumb():void {
        var count:Number=aPhoto.length;
        for (var i=0; i<count; i++) {
            aPhoto[i].unload();
            aPhoto[i].removeEventListener(MouseEvent.MOUSE_DOWN, onThumbClick);
        trace("Current mem: " + System.totalMemory);
    function onThumbClick(evt:MouseEvent) {
        var i:Number;
        //trace("Thumbnail Clicked " + evt.target.name);
        i=findPos(evt.target.name);
        ldLrgPhoto.source="images/"+subjectXML.ROW[i+fromPos].LOCAL_OBJECT_ID+"_main.jpg";
        ldLrgPhoto.visible=true;
        btnPrev.visible=false;
        btnNext.visible=false;
        gotoAndStop("showPhoto");
    function findPos(thumb:String):Number {
        var pos:Number;
        var count:Number=aPhoto.length;
        for (var i:Number=0; i<count; i++) {
            if (thumb==aPhoto[i].name) {
                pos=i;
        return pos;

    Hi,
    I was trying to use xml namespaces, so in my application I receive an XML file from the server. The file has a namespace, so when I parse the file I need to specify the namespace:
    I got the following piece of xml:
    <ls:exchange xmlns:ls=".../tsw" xmlns:tm="http://kxa">
        <ls:projects>
             <tm:annotation id="" date="" action="getprojects" status="responseok"/>         
        <ls:project id="" name="proj" description="..." owner="asss"  release="2" />
            <ls:projectV  id="" version="" creationdate="" modificationdate=""/ >
        </ls:project>
    </ls:projects>
    </ls:exchange>
    and the following code
    <mx:VBox label="WELCOME" verticalScrollPolicy="off" horizontalScrollPolicy="off">
          <mx:Tree id="tree" dataProvider="{srv.lastResult.project}" labelField="@name"  width="300" height="100%" itemOpen="itemOpenEvt(event);" />
    </mx:VBox>
    So i want to display the content of the xml (project nodes”) in a tree view, but i don’t know how to includes the namespace"ls:" in the data provider “srv.lastResult.project”. can u help me it’s urgent.
    sincerly
    Celine

  • Is Verizon unwilling or unable to fix problem with Account Owner(s)

    A forum or Google search reveals several customers unhappy with how Verizon treats the account owners... count me as one.  I'm sure there are many more customers who were equally unhappy but just accept Verizon's incompetence and complete the unnecessary gymnastics of un-registering accounts and then re-registering with a new username.
    PROBLEM:
    There are numerous scenarios that can cause a My Verizon account to have the Account Owner be listed with an incorrect telephone number.  In my case, I had an account with AT&T and 3 additional numbers associated.  As each account expired, I transferred the numbers to Verizon.  The first account transferred was my 14yr old son.  I registered a My Verizon account for management (my name & my userid) and eventually added the additional numbers, however, the Account Owner's phone number is listed as my son's cell.
    Over the past 2 years (since I migrated to Verizon), I've had small problems with account notifications and other information being text to my son's cell.  I've called numerous times and customer service says it's corrected, but eventually the problems return.  Recently, I upgraded my phone and started using some new services like Backup Assistant and the fact that the Account Owner is associated with an incorrect number has caused even more trouble.
    I simply want to keep my existing username for My Verizon and correct the cell phone number associated as the Account Owner.  This should be extremely simple.
    VERIZON'S SOLUTION:
    "We can't do it".  "Our systems don't allow us to make this change".
    The Customer Service Department (or Lack of Customer Service Department) tells me that since they can't or are unwilling to do the necessary changes, their only solution is to force their customer to do their work.  They will un-register the account and I can register again.  There is no concern for the preferences of an existing customer (almost 3 years); there is no concern for the inconvenience caused to an existing customer who spends hundreds of dollars each month and thousands of dollars each year (I currently have 2 separate accounts with Verizon, 4 phones on my problem account and 4 phones on another for a total of 8 phones with data plans... do the math); there is no concern that I will now have to use a completely different username one that is no longer uniform with my other accounts; there is no concern that I will have to change any and all services that reference My Verizon.  Quite simply... Verizon Wireless shows their Account Owners that they have no concern for us.
    PROPER SOLUTION:
    I have almost 25 years of Information Technology experience and over 3 years working with Call Centers (similar to Verizon's Customer Service), which explains in part why I find this so frustrating...  the fix for this is SIMPLE!!!  The real problem is that Verizon simply doesn't care enough to fix it because we are existing customers and not new customers.
    Without going into specifics (nor could I since I don't have access to their systems), data for the My Verizon portal is contained within modifiable databases.  These relational databases will be tied to other systems and other databases, but a modification of this type would just require that the portal be allowed to make the update to the appropriate field(s) within the appropriate database(s).  If direct access is not attainable because of their design, it is still not too difficult to write an additional process to accommodate this change.  These types of things are done everyday.
    More importantly, even if Verizon was unable or unwilling to make these programming changes...  I have no doubt that if Customer Service has an escalation process to their I.T. Department that a programmer with access to the application(s) and/or database(s) could easily make the change directly and almost immediately.
    CONCLUSION:
    Until now, my experience with Verizon has been mostly positive even to the point of recommending the carrier to friends and family.  I've found their coverage area to meet my needs and the data speeds to be more than satisfactory.  However, Verizon needs to remember that cellular service has essentially become a commodity and that customer retention is often based on other things than simply providing dial tone.  With a monthly cell phone expense that rivals a car payment, I would think that Verizon would be more than willing to accommodate such a simple request to maintain a satisfied customer.
    If you too are one of the many customers having issue with modifying the Account Owner, just resolve yourself that it appears Verizon is unwilling to make the simple correction to the My Verizon portal to satisfy our request.

    I'm not 100% sure that I follow your reasoning, so please correct me if I misstate your opinions.  I've numbered them so it will be easier to identify any mistakes I make.
    1.  Not allowing a user, customer service representative, or any Verizon representative to change the cell phone number associated with the Account Owner to another cell phone number on the same account is a security risk.
    I'm not suggesting that I be allowed to change the name, social security number, or any other pertinent details related to establishing the original account.  All the information pertaining to who is responsible for the bill remains the same with the single exception that the current associated cell phone number be changed to another number already listed on the account.  In what possible manner is this a security risk?  Frankly if the ability was enabled and someone either by mistake or incompetence made such a change the impact would simply be what I'm currently experiencing (inconvenience).  Since in this hypothetical situation the ability to change this value is enabled, the "inconvenience" would easily be re-mediated by returning the value to its original state.
    Furthermore, if there is some "security risk" that I'm over looking then an organization that is concerned about providing quality customer service would create procedures to accommodate customer requests and meet security requirements.  Let's use a bank (with an obvious security vulnerability) and debit cards as an example.  If I lose my debit card, I cannot go to my computer and print out a temporary debit card (very user friendly, but not secure).  Some banks will allow you to go online and cancel the lost debit card while requesting a new one to be mailed to the address you have on file (user friendly and mostly secure).  To solve this same problem at other banks might require you to go into the office and sign a form cancelling the lost debit card and confirming the address to mail you a new one (less user friendly, but highly secure).  The Verizon equivalent, is me requesting that I add an existing bank account to my online banking and being told "We can't do it".  However, because the bank cares so much about keeping me as a customer... they will delete my account, allow me to create another, possibly losing my historical data, have me change my username that I've been using for years, spend time adding all my online bill payments... all for the pleasure of staying their customer and getting to use their services as they should have been designed.
    2.  Making a software change that would allow users or CSR's to associate a different cell phone number on the account to the current Account Owner would be difficult and require downtime.
    You give some time expounding this thought and I'm unaware of your web, application, and/or database experience... but I will try to address your concerns later.  However, let's assume that you are correct and these changes will be difficult ("taking weeks to months").  The purpose of my post was whether Verizon was unwilling or unable to accommodate this customer request.  You seem to be agreeing that Verizon is unwilling to make these changes, or at the very least, feel that Verizon has decided that the time and expense involved is of more importance than correcting an issue impacting their customers.  I personally find the later equally disheartening as this has been an issue for many customers (you yourself mention experiencing the problem) and has been well documented through previous forum and Internet posts.  Even by your estimations, if they had taken previous customer complaints seriously... this would have been fixed by now.  Once again it seems the obvious answer is that Verizon may not consider customer service as an important factor as I do.
    As far as your technology issues, I agree that more than a web page change would be required.  I do take issue with comparing the change of a distributed application (operating system) that must be designed to support enumerable hardware components to the work required to makes changes to a web portal with a back-end in-house database.  You could write an entire book detailing the differences between these two scenarios as they have very little in common, but I'll try to keep it focused to your points.
    Coding
    Coding an Operating System that must run on literally a multitude of hardware configurations and support an unending diversity of applications is an incredible endeavor and really never a finished product.  Changes to an OS are constantly being made and the developers must consider hardware and software that they are not intimately familiar and occasionally even deal with 3rd parties to facilitate changes.
    The change I'm advocating has a web component which would be replicated throughout their web server topology, however, these are items that Verizon's developers deal with routinely (if not daily).  There are a very limited number of 3rd party concerns (a few different browsers, IE, Chrome, Mozilla & a disparate platforms such as PC, tablet, phone).  A little research in the benefits of web portals (and cloud computing) verses distributed applications will clearly outline the drastic differences.  A simple illustrative question (though maybe not a completely fair analogy) is how many people do you know who can code an operating system and how many people get on GoDaddy and create their own web pages.  I'm not trying to insinuate that anyone who knows a little HTML can make the web portal changes, however, this isn't a difficult project for an experienced developer.
    The bigger issues and ones that I alluded to in my original post are the changes that would be required to Verizon's back-end databases.  The changes that would need to be made mostly likely involve multiple databases and assuming they are using a typical relational database design might require changes to key fields, adding new databases/tables, and exhaustive integrity checks.  This isn't something that an average user could sit down and accomplish in an hour, however, these are simply the routine day-to-day duties of any professional database developer.
    Again I reiterate... this change simply involves allowing someone (either a user, CSR, or other Verizon agent) to readily change an index record or records that correlates Account Owner to cell phone number.  In terms of database management this should be simple.
    Debugging & Deployment
    The debugging/testing of changes made to an Operating System are amazingly complex for all the aforementioned reasons.  The deployment of such changes is even more complex in that you've got to develop the mechanism to push these changes out to the entirety of the user community.  I'll address deployment (or as you said dispersal) of this change because it's the easiest... quite simply there isn't one.  The benefit of having a centralized web portal like My Verizon is that users come to you, not the other way around, and any change made will immediately be accessible by the user community.  There is a deployment aspect in that My Verizon doesn't exist on a single web server, but again this is just the typical topology for a portal of this size and not relevant to our discussion.  Debugging/Testing is an important aspect of any change and certainly Verizon has this methodology in place, however, I'll reiterate that this change should not be complex and shouldn't require extensive testing.  We've also already discussed the fact that any debugging/testing only has to take place on a limited number of platforms.
    Downtime
    If adding the ability to change the relationship of the Account Owner to an associated cell phone number requires any downtime... the person responsible for Verizon's Development, Beta, and Production environments should be fired.  There is simply no way this is even a possible concern.  I've dealt with many companies with far less resources than Verizon and I assure you that changes of this nature would never require down time.  I'm sure they have staff in place whose sole responsibility is to work on their continuity plan.  This is a non issue.
    Other Carriers
    You can't possibly know how all carriers operate, though you may have some past experience with other companies.  I would contend (and maybe I'm too optimistic) that a company with a focus on customer satisfaction when made aware of complaints and/or limitations in their service would seek to rectify the issue.  It's quite possible that whatever other company you are referencing has fixed this issue if indeed it was similar... especially since I've hopefully bolstered my opinion that the resolution is not overly complicated.
    Would you mind telling me if you deleted your 2 original comments to my post before I had an opportunity to answer?  The reason I ask is that last night another user (jimfitzgerald) had posted a comment and I replied.  He later posted a 2nd comment and while writing my response... all the posts were removed (his 2 posts, my reply, and your 2 posts).  I'm curious if this was just a user withdrawal (though I really wish my response had remained in the thread), if there was some sort of technical issue with these forums last night, or if my response was deleted for cause by Verizon or other admin.   Thanks!

  • Problem with image url

    Hello,
    today I have a problem with image url. I wanted Image to change when mouse dragged over it. But nothing happened. Any ideas?
    def maxIco: ImageView = ImageView{
    image: Image{
    url: "{__DIR__}ikony/max.png"
    onMouseDragged: function(event: MouseEvent){
    maxIco.image = Image{
    url: "{__DIR__}ikony/max2.png"
    }

    This is working for me:
    src/main/Main.fx
    src/main/icon/image1.bmp
    src/main/icon/image2.bmp
    //Main.fx
    package main;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.image.Image;
    import javafx.scene.image.ImageView;
    import javafx.scene.input.MouseEvent;
    var changed = false;
    def imgView: ImageView = ImageView {
        image: Image {
            url: "{__DIR__}icon/image1.bmp"
        onMouseDragged: function (e: MouseEvent): Void {
            if (not changed) {
                imgView.image = Image {
                    url: "{__DIR__}icon/image2.bmp"
                changed = true;
                println(imgView.image.url);
        onMouseReleased: function (e: MouseEvent): Void {
            imgView.image = Image {
                url: "{__DIR__}icon/image1.bmp"
            changed = false;
            println(imgView.image.url);
    Stage {
        title: "ImageTest"
        scene: Scene {
            width: 700
            height: 600
            content: [
                imgView
    }I've changed few things to switch image only one time on mouseDragged event.
    It print the image URL.

  • Having problem with change of name in the datagrid Coding

    I am having problem with changing the name of the datagrid header text name for one of the data either in the flash file or the php file.
    The thing is i want to change the Course_Name to Course Name that has no underscore so that it will look nicer in the datagrid but if I change it in the php file like SELECT Course_Name as 'Course Name' ....., it will not turn out in the datagrid when I CTRL ENTER the flash file but the others like Price,description and display is shown.
    There is no problem with my php code but I do not know how to change the Course_Name into Course Name so please help me resolve this error that I am having.
    This is my flash code
      function goCourse(e : MouseEvent):void
      gotoAndStop(5);
      refreshResponder = new Responder (refreshSuccess, onFault);
      connection = new NetConnection ();
      connection.connect (gateway);
      dataDG.addEventListener (Event.CHANGE, gridItemSelected);
      refreshData (true);
      function gridItemSelected (e: Event): void {
      ID = e.target.selectedItem.ID;
      courseTxt.text = e.target.selectedItem.Course_Name;
      priceTxt.text = e.target.selectedItem.Price;
      descTxt.text = e.target.selectedItem.Description;
      private function getParams () {
      var param: Object = new Object ();
      param.ID = ID;
      param.Course_Name = courseTxt.text;
      param.Price = priceTxt.text;
      param.Description = descTxt.text;
      return param;
      private function refreshData (refresh: Boolean): void {
      if (refresh)
      connection.call ("Course.viewCourse", refreshResponder);
      private function refreshSuccess (result: Object): void {
      dataDG.dataProvider = RecordSetDP.toDataProvider (result);
         dataDG.columns = ["Course_Name","Price","Description","Display"];
      private function onFault (fault: Object): void {
      trace (String (fault.description));
    This is my php file code.
      function viewCourse()
      $this->connect();
      $sql = "SELECT Course_Name,Price,Description,Display
      FROM coursetb";
      return mysql_query($sql,$this->_connection);

    i don't see where you're calling your php file in your code, but change 'Course Name' to 'Course_Name' (or vice-versa) there.

Maybe you are looking for

  • My iphone 4 keeps failing to restore at firmware update point with -1 error code - have tried on multipke computers and will not restore ??? please help

    I woke up this morning - xmas day of all days and had a message on my phone that it needed to be restored via itunes. I connected it to my laptop and it tried to restore but failed at the point of iphone firmware update. I have back-ups etc - I have

  • Samsung SyncMaster T240m

    Hi there, I'm new to mac and buyed the last model of Mac Mini. I connected it with HDMI into my Samsung t240m monitor and each time the source changes or the mac comeback from sleep the screen have some graphic errors: I updated the system to 10.6.6

  • Mail 3.6 hangs/crashes on launch

    Hi there, Hope you guys can help me out a bit here. Every single time I launch mail.app, it hangs. It doesn't crash, it just hangs. In the Force Quit applications window, all I see is "Mail (not responding)". I can force it to quit, at which point th

  • Regarding onetime vendor creation

    Hi, I want to know what is called one time vendor in SAP. Also if i create one time vendor, will system not allow to create other PO for that vendor? how to create one time vendor?? Regards, Kalpesh

  • Prime infrastructure 1.2

    Hi all, Yesterday I installed my first Cisco prime infrastructure 1.2. I'm a bit confused now, is this the integrated version of LMS and NCS? At first sight, there's not a lot LMS in it. I don't see topology services, netconfig etc. Since the release