Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners i have a data in MySql ,data store in rows. i retrieve that data when i click on a node,data must display over node.pls help me to solve this problem on my chauhanpooja3521@gmail.com

Have Programming Question? Ask it here!
 
 
 


pooja chauhan
i have a data in MySql ,data store in rows. i retrieve that data when i click on a node,data must display over node.pls help me to solve this problem on my chauhanpooja3521@gmail.com
0 Answer(s)      8 months ago
Posted in : Java Beginners


package graphpackage;

import java.awt.*; import java.awt.event.*; import java.util.ArrayList; import java.util.List; import java.util.ListIterator; import java.util.Random; import javax.swing.*; import javax.swing.event.*; import java.sql.*; public class GraphPanel extends JComponent
{
private static final int WIDTH = 800; private static final int HIGHT = 600; private static final int RADIUS = 15; private static final Random rnd = new Random(); private ControlPanel control = new ControlPanel(); private int radius = RADIUS; private Kind kind = Kind.Circular; private ArrayList<Node> nodes = new ArrayList<Node>(); private ArrayList<Node> selected = new ArrayList<Node>(); private ArrayList<Edge> edges = new ArrayList<Edge>(); private Point mousePt = new Point(WIDTH / 2, HIGHT / 2); private Rectangle mouseRect = new Rectangle(); private boolean selecting = false; public static void main(String[] args) throws Exception {
String url = "jdbc:mysql://localhost:3306/"; String dbName = "student"; String driver = "com.mysql.jdbc.Driver"; String userName = "root"; String password = "root"; try { Class.forName(driver).newInstance(); Connection conn = DriverManager.getConnection(url+dbName,userName,password); Statement st = conn.createStatement(); ResultSet res = st.executeQuery("SELECT * FROM node"); while (res.next()) { int id = res.getInt("node_id"); String n = res.getString("name"); String c = res.getString("city"); String g = res.getString("gender"); String j = res.getString("job"); String o = res.getString("organisation"); String r = res.getString("relationship"); System.out.println(id + "\t" + n+ "\t" + c+ "\t" + g+ "\t" + j+ "\t" +o+ "\t" +r); } int val = st.executeUpdate("INSERT into node VALUES("+3+","+"'Sonu'"+","+"'Hydrabad'"+","+"'F'"+","+"'Assistent Professor'"+","+"'IIIT'"+","+"'Married'"+")"); if(val==1) System.out.print("Successfully inserted value"); conn.close(); } catch (Exception e) { e.printStackTrace(); } EventQueue.invokeLater(new Runnable() {
public void run() {
JFrame f = new JFrame("Graph Simulator"); f.setDefaultCloseOperation(JFrame.EXITONCLOSE);
GraphPanel gp = new GraphPanel(); f.add(gp.control, BorderLayout.NORTH); f.add(new JScrollPane(gp), BorderLayout.CENTER); f.getRootPane().setDefaultButton(gp.control.defaultButton); f.pack(); f.setLocationByPlatform(true); f.setVisible(true);

                             }  
              });
      }   
    public GraphPanel() 
      {      
         this.setOpaque(true);
         this.addMouseListener(new MouseHandler());
        this.addMouseMotionListener(new MouseMotionHandler());
      }     
    public Dimension getPreferredSize() 
      {        
         return new Dimension(WIDTH, HIGHT);
      }   
    public void paintComponent(Graphics g)
     {       
          g.setColor(new Color(0x00f0f0f0));
          g.fillRect(0, 0, getWidth(), getHeight());
                 for (Edge e : edges)
                     {
                          e.draw(g);  
                     }        
                 for (Node n : nodes) 
                     {
                       n.draw(g);   
                     }       
                       if (selecting) 
                      {            
                         g.setColor(Color.darkGray);
                         g.drawRect(mouseRect.x, mouseRect.y,mouseRect.width, mouseRect.height);
                      }    
     }
   private class MouseHandler extends MouseAdapter 
      {        public void mouseReleased(MouseEvent e) 
           {
                       selecting = false;
                       mouseRect.setBounds(0, 0, 0, 0);
                    if (e.isPopupTrigger()) 
                         {              
                                showPopup(e);           
                         }
                          e.getComponent().repaint();
          }       
    public void mousePressed(MouseEvent e) 
         {          
                 mousePt = e.getPoint();
                    if (e.isShiftDown()) 
                       {       
                             Node.selectToggle(nodes, mousePt);
                       } else if (e.isPopupTrigger())
                {           
                Node.selectOne(nodes, mousePt);
                    showPopup(e); 
                } 
             else if (Node.selectOne(nodes, mousePt)) 
                {            
                     selecting = false;       
                } 
                    else 
                   {
                           Node.selectNone(nodes);
                             selecting = true;

                   }         
                          e.getComponent().repaint();
       }       
              private void showPopup(MouseEvent e) 
              {    
                  control.popup.show(e.getComponent(), e.getX(), e.getY());
              }
   }   
         private class MouseMotionHandler extends MouseMotionAdapter 
               {
                    Point delta = new Point();
                    public void mouseDragged(MouseEvent e) 
                          {
                                 if (selecting)
                                  {
                                       mouseRect.setBounds(Math.min(mousePt.x, e.getX()),Math.min(mousePt.y,e.getY()),Math.abs(mousePt.x - e.getX()),Math.abs(mousePt.y - e.getY()));
                                       Node.selectRect(nodes, mouseRect);
                                  } 
                                        else
                                  {       
                                         delta.setLocation(e.getX() - mousePt.x,e.getY() - mousePt.y);Node.updatePosition(nodes, delta);
                                                 mousePt = e.getPoint();
                                  }           
                                       e.getComponent().repaint();
                           }
                }
                 public JToolBar getControlPanel() 
                {
                        return control;    
                }
                  private class ControlPanel extends JToolBar 
                {       
                     JTextField noOfNodes= new JTextField(10);
                    private Action newNode = new NewNodeAction("New");
                    private Action clearAll = new ClearAction("Clear");
                    private Action kind = new KindComboAction("Kind");
                    private Action color = new ColorAction("Color");
                    private Action connect = new ConnectAction("Connect");
                    private Action delete = new DeleteAction("Delete");
                    private Action random = new RandomAction("Create",noOfNodes);
                    private JButton defaultButton = new JButton(newNode);
                    private JComboBox kindCombo = new JComboBox();
                    private ColorIcon hueIcon = new ColorIcon(Color.blue);
                    private JPopupMenu popup = new JPopupMenu();
                    final JButton button = new JButton("Options");


                         ControlPanel() 
                        {
                              this.setLayout(new FlowLayout(FlowLayout.LEFT));
                              this.setBackground(Color.lightGray);
                              this.add(new JLabel("No Of Nodes :"));
                              this.add(noOfNodes);
                              this.add(new JButton(random));
                              this.add(button);
                              this.add(defaultButton);
                              this.add(new JButton(clearAll));
                              this.add(kindCombo);
                              this.add(new JButton(color));
                              this.add(new JLabel(hueIcon));
                              JSpinner js = new JSpinner();
                              js.setModel(new SpinnerNumberModel(RADIUS, 5, 100, 5));
                              js.addChangeListener(new ChangeListener() 
                                {        
                                         public void stateChanged(ChangeEvent e) 
                                           {
                                                JSpinner s = (JSpinner) e.getSource();
                                                 radius = (Integer) s.getValue();
                                                 Node.updateRadius(nodes, radius);
                                                 GraphPanel.this.repaint();
                                            }
                                });
                                          this.add(new JLabel("Size:"));
                                           this.add(js);
                                           popup.add(new JMenuItem(newNode));
                                           popup.add(new JMenuItem(color));
                                           popup.add(new JMenuItem(connect));
                                           popup.add(new JMenuItem(delete));
                                          JMenu subMenu = new JMenu("Kind");
                                       for (Kind k : Kind.values()) 
                                             {
                                                kindCombo.addItem(k);
                                                subMenu.add(new JMenuItem(new KindItemAction(k)));
                                             }        
                                            popup.add(subMenu);
                                             kindCombo.addActionListener(kind);
                           }
                             class KindItemAction extends AbstractAction 
                                   {         
                                               private Kind k;
                                               public KindItemAction(Kind k) 
                                                  {                
                                                     super(k.toString());
                                                      this.k = k;
                                                  }
                                  public void actionPerformed(ActionEvent e) 
                                           {                
                                              kindCombo.setSelectedItem(k);
                                           }        
                                   }   
         }    
    private class ClearAction extends AbstractAction
          {     
                public ClearAction(String name)
                {       
                    super(name);
                }       
           public void actionPerformed(ActionEvent e) 
               {
                       nodes.clear();
                      edges.clear();
                       repaint();
               }    
          }   
     private class ColorAction extends AbstractAction 
          {       
              public ColorAction(String name)
                {     
                    super(name);
                }
             public void actionPerformed(ActionEvent e) 
                {
                     Color color = control.hueIcon.getColor();
                     color = JColorChooser.showDialog(GraphPanel.this, "Choose a color", color);
                       if (color != null)
                             {            
                                Node.updateColor(nodes, color);
                               control.hueIcon.setColor(color);
                               control.repaint();
                                repaint();         
                             }
               } 
        }    
    private class ConnectAction extends AbstractAction
         {   
             public ConnectAction(String name) 
                {          
                   super(name);
                }
            public void actionPerformed(ActionEvent e) 
                {            
                    Node.getSelected(nodes, selected);
                       if (selected.size() > 1) 

                          { 
                               for (int i = 0; i < selected.size() - 1; ++i)
                                 {
                                       Node n1 = selected.get(i);
                                       Node n2 = selected.get(i + 1);
                                       edges.add(new Edge(n1, n2));
                                  }
                          }         
                                  repaint();
               }
         }  
     private class DeleteAction extends AbstractAction 
         {
                 public DeleteAction(String name) 
                  { 
                        super(name);
                  }    
               public void actionPerformed(ActionEvent e)
                  {     
                      ListIterator<Node> iter = nodes.listIterator();
                           while (iter.hasNext()) 
                             {               
                                    Node n = iter.next();
                                      if (n.isSelected()) 
                                         {
                                               deleteEdges(n);
                                               iter.remove();
                                         }
                             }
                                         repaint();
                  }
            private void deleteEdges(Node n) 
             {
                     ListIterator<Edge> iter = edges.listIterator();
                     while (iter.hasNext()) 
                      {
                          Edge e = iter.next();
                          if (e.n1 == n || e.n2 == n) 
                            {
                                iter.remove();
                            }
                      }
            }
        }
     private class KindComboAction extends AbstractAction 
      {
               public KindComboAction(String name) 
                 {
                        super(name);
                 }
             public void actionPerformed(ActionEvent e)
                {
                       JComboBox combo = (JComboBox) e.getSource();
                       kind = (Kind) combo.getSelectedItem();
                       Node.updateKind(nodes, kind);
                         repaint();
                }
       }    
   private class NewNodeAction extends AbstractAction
      {      
          public NewNodeAction(String name) 
                  {
                     super(name);
                  }
          public void actionPerformed(ActionEvent e) 
             {            
                 Node.selectNone(nodes);
                 Point p = mousePt.getLocation();
                 Color color = control.hueIcon.getColor();
                 Node old=nodes.get(nodes.size()-1);
                 Node n = new Node(p, radius, color, kind,old.nodeNumber()+1);
                 n.setSelected(true);
                 nodes.add(n);
                 repaint();
             }    
      }
   private class RandomAction extends AbstractAction
             {
                    JTextField noOfNodes;
                  public RandomAction(String name,JTextField t) 
                       {
                          super(name);
                           noOfNodes=t;

                        }
                public void actionPerformed(ActionEvent e)
                      {         
                          int num=Integer.parseInt(noOfNodes.getText());
              Color color = control.hueIcon.getColor();
                               for (int i = 0; i < num; i++) 
                                   { if (i== 15) break;
                                           Point p = new Point(rnd.nextInt(getWidth()), rnd.nextInt(getHeight()));
                                           nodes.add(new Node(p, radius, color, kind,(i+1)));
                                    }
                                          repaint();
                      }  
            }
                   /*** The kinds of node in a graph.*/
                       private enum Kind 
                         {     
                            Circular, Rounded, Square;
                         }
                  /*** An Edge is a pair of Nodes.     */
             private static class Edge 
                  {
                           private Node n1;
                           private Node n2;
                           public Edge(Node n1, Node n2) 
                             {            
                                this.n1 = n1;            
                                this.n2 = n2;
                             }        
                 public void draw(Graphics g) 
                      {
                        Point p1 = n1.getLocation();
                        Point p2 = n2.getLocation();
                        g.setColor(Color.darkGray);
                        g.drawLine(p1.x, p1.y, p2.x, p2.y);
                      }    
                }
                    /*** A Node represents a node in a graph.     */
    private static class Node 
          {       
               private Point p;
               private int r;
               private int nodenum; 
               private Color color;
               private Kind kind;
               private boolean selected = false;
               private Rectangle b = new Rectangle();
                   /*** Construct a new node.         */
          public Node(Point p, int r, Color color, Kind kind,int n) 
             {
                       this.p = p;
                       this.r = r;
                       this.color = color;
                      this.kind = kind;
                        nodenum=n;
                     setBoundary(b);
            }
                  /**        * Calculate this node's rectangular boundary.         */   
          private void setBoundary(Rectangle b)
             {
                  b.setBounds(p.x - r, p.y - r, 2 * r, 2 * r);
             }
                 /**         * Draw this node.         */
          public void draw(Graphics g) 
                {            
                   g.setColor(this.color);
                        if (this.kind == Kind.Circular)
                           {
                             g.fillOval(b.x, b.y, b.width, b.height);
                             g.setColor(Color.white);
                             g.drawString(String.valueOf(nodenum),b.x+r,b.y+r);
                           } 
                                 else if (this.kind == Kind.Rounded) 
                                   {
                                            g.fillRoundRect(b.x, b.y, b.width, b.height, r, r);
                                               g.setColor(Color.white);
                                             g.drawString(String.valueOf(nodenum),b.x+r,b.y+r);
                                   } 
                                 else if (this.kind == Kind.Square)
                                    {
                                        g.fillRect(b.x, b.y, b.width, b.height);
                                          g.setColor(Color.white);
                                          g.drawString(String.valueOf(nodenum),b.x+r,b.y+r);
                                    }
                                          if (selected) 
                                              {
                                                  g.setColor(Color.darkGray);
                                                  g.drawRect(b.x, b.y, b.width, b.height);
                                              }
                  }
                /**       * Return this node's location.         */
                   public Point getLocation() 
                    {
                           return p;
                    }
                          public int nodeNumber()
                             {
                            return nodenum;
                         }
                   /**      * Return true if this node contains p.         */
                       public boolean contains(Point p)
                          {
                              return b.contains(p);
                          }
                 /**         * Return true if this node is selected.        */
                   public boolean isSelected()
                          {
                                  return selected;      
                          }
                /**        * Mark this node as selected.        */
                   public void setSelected(boolean selected)
                         {
                             this.selected = selected;
                         }
               /**     * Collected all the selected nodes in list.  */
                 public static void getSelected(List<Node> list, List<Node> selected) 
                         {
                             selected.clear();
                             for (Node n : list) 
                                {                
                                   if (n.isSelected()) 
                                         {           
                                                 selected.add(n);
                                         }
                                }
                        }
               /**  * Select no nodes.   */
                  public static void selectNone(List<Node> list) 
                      {          
                             for (Node n : list) 
                                    {             
                                       n.setSelected(false);
                                    }
                       }
              /**  * Select a single node; return true if not already selected.         */
                  public static boolean selectOne(List<Node> list, Point p) 
                        {          
                                  for (Node n : list)
                              {
                                      if (n.contains(p)) 
                                    {              
                                              if (!n.isSelected()) 
                                                {
                                                      Node.selectNone(list);
                                                       n.setSelected(true);
                                                }
                                                 return true;
                                     }
                             }
                                    return false;
                       }      
              /**   * Select each node in r.         */
                  public static void selectRect(List<Node> list, Rectangle r) 
                        {            
                            for (Node n : list) 
                               {
                                      n.setSelected(r.contains(n.p));
                               }
                        }
           /** * Toggle selected state of each node containing p.         */
                 public static void selectToggle(List<Node> list, Point p)
                     {
                           for (Node n : list) 
                                {              
                                      if (n.contains(p)) 
                                            {
                                                n.setSelected(!n.isSelected());
                                            }
                                }
                    }
           /** * Update each node's position by d (delta).         */
                public static void updatePosition(List<Node> list, Point d) 
                   {
                      for (Node n : list)
                          {
                                 if (n.isSelected()) 
                                       {               
                                                n.p.x += d.x;
                                                n.p.y += d.y;
                                                n.setBoundary(n.b);
                                        }
                          }
                   }
           /** * Update each node's radius r.     */
               public static void updateRadius(List<Node> list, int r)
                    {
                        for (Node n : list)
                              {
                                     if (n.isSelected())
                                       {
                                            n.r = r;
                                            n.setBoundary(n.b);
                                       }
                              }
                   }
        /**    * Update each node's color.       */
               public static void updateColor(List<Node> list, Color color) 
                     {         
                         for (Node n : list) 
                               {              
                                    if (n.isSelected()) 
                                          {
                                                 n.color = color;
                                          }
                               }
                    }
          /**       * Update each node's kind.      */
               public static void updateKind(List<Node> list, Kind kind) 
                     {
                          for (Node n : list) 
                              {            
                                     if (n.isSelected()) 
                                          {
                                                  n.kind = kind;
                                          }
                              }
                      }    
          }
                private static class ColorIcon implements Icon 
                      {      
                          private static final int WIDE = 20;
                          private static final int HIGH = 20;
                          private Color color;
                          public ColorIcon(Color color) 
                            {           
                                  this.color = color;
                            }
                         public Color getColor() 
                            {
                                    return color;
                            }
                        public void setColor(Color color) 
                            {          
                                 this.color = color;
                            }
                      public void paintIcon(Component c, Graphics g, int x, int y) 
                          {           
                            g.setColor(color);
                            g.fillRect(x, y, WIDE, HIGH);
                          }
                       public int getIconWidth()
                          {
                              return WIDE;
                          }
                      public int getIconHeight()
                          {
                             return HIGH;
                          }
                 }
      }

Advertisement
View Answers

Related Tutorials/Questions & Answers:
I have to retrieve these data from the field table
I have to retrieve these data from the field table  Hi. I have... chennai,trichy,kanchipuram for a single record. I have to retrieve these data from... as single values like chennai as one value, trichy as one value. and i have
I have problem in my Project
I have problem in my Project  Dear Sir, i have problem in my project about Jtable i have EDIT JButton whenevery i was click on edit he is display all data from database but i want to select any row
Advertisements
please help me solve this problem when i am create database connection using servlecontext
please help me solve this problem when i am create database connection using servlecontext  hi... I have create a database connection using servletcontext . in this code when i login first time it will exceute sucessfully
i need help to solve this problem
i need help to solve this problem  Write a stack class ArrayStack.java implements PureStack interface that reads in strings from standard input.... H and I join the queue h. G leaves the queue i. H and I leave the queue
i have a problem to do this question...pls help me..
i have a problem to do this question...pls help me..  Write a program... reversedNumber = 0; for (int i = 0; i <= num; i...; reversedNumber = reversedNumber * 10 + r; i = 0
I am trying to create domains for column attributes of my data dictionary?
I am trying to create domains for column attributes of my data dictionary?  Please provide me with the best possible solution. I already have the fields and there data types in a table and then the field values in another table
retrieve data from mysql database and store it in a variable ?
retrieve data from mysql database and store it in a variable ?  sir , I am working on a project , in which I have to apply operation on input data which is stored in mysql. so to apply some arithmetic operation on it we have
store and retrieve data
store and retrieve data  sir,i want to store the entering data in a word file and retrieve it when i need.i am try to develop a video portal.in which... and when the user remove the video comments are also removed.what is the solution
write data to a pdf file when i run jsp page
write data to a pdf file when i run jsp page  Hi, <%@page import... to the libraries.the pdf file are not opened when i execute the program.please send the code to open the pdf file when i execute the jsp page
write data to a pdf file when i run jsp page
write data to a pdf file when i run jsp page  Hi, <%@page import... to the libraries.the pdf file are not opened when i execute the program.please send the code to open the pdf file when i execute the jsp page
write data to a pdf file when i run jsp page
write data to a pdf file when i run jsp page  Hi, <%@page import... to the libraries.the pdf file are not opened when i execute the program.please send the code to open the pdf file when i execute the jsp page
write data to a pdf file when i run jsp page
write data to a pdf file when i run jsp page  Hi, <%@page import... to the libraries.the pdf file are not opened when i execute the program.please send the code to open the pdf file when i execute the jsp page
how do i solve this problem?
how do i solve this problem?  Define a class named Circle with the following properties: List item An integer data field named radius... the second object must be created with the radius value of 8. Display
how can i run tomcat server and my home page come when i double click on an icon in servlets
how can i run tomcat server and my home page come when i double click... to give the url... but he knows to double click on an icon to start his server and open his application.. so is there any chance in servlets to solve
how can i run tomcat server and my home page come when i double click on an icon in servlets
how can i run tomcat server and my home page come when i double click... to give the url... but he knows to double click on an icon to start his server and open his application.. so is there any chance in servlets to solve
how can i run tomcat server and my home page come when i double click on an icon in servlets
how can i run tomcat server and my home page come when i double click... to give the url... but he knows to double click on an icon to start his server and open his application.. so is there any chance in servlets to solve
how can i run tomcat server and my home page come when i double click on an icon in servlets
how can i run tomcat server and my home page come when i double click... to give the url... but he knows to double click on an icon to start his server and open his application.. so is there any chance in servlets to solve
how to store,retrieve,modify the data
how to store,retrieve,modify the data  hello sir ,how to store,retrieve,modify the data using the swing please help me
I am creating one jsp page in which I read in a text file, then display that data in tabular format. Now I need to calculate a total.
I am creating one jsp page in which I read in a text file, then display that data in tabular format. Now I need to calculate a total.  I am reading...... } The output displays 4 rows and 2 columns. How can I calculate the total
I have a small problem in my datagridview - Design concepts & design patterns
I have a small problem in my datagridview  i have datagridviewer in c#(platform) and i try that change cell beckground, this cell Should... the backcolor of individual cells please help me. Sorry for My English.(I am
Hello Sir I Have problem with My Java Project - Java Beginners
Hello Sir I Have problem with My Java Project  Hello Sir I want Ur Mail Id To send U details and Project Source Code, plz Give Me Ur Mail Id
i have problem with classnofounderror
i have problem with classnofounderror   import java.sql.*; public class Tyagi { public static void main (String args[])throws SQLException { ResultSet rs; try { Class.forName
i have problem with classnofounderror
i have problem with classnofounderror   import java.sql.*; public class Tyagi { public static void main (String args[])throws SQLException { ResultSet rs; try { Class.forName
i have problem in that program to my assignment sir - JavaMail
i have problem in that program to my assignment sir   Develop a programmer's editor in Java that supports syntax-highlighting, compilation support, debugging support, etc
I have a tex box. in that i want user should enter data in the format specified(for eg--a_b_c_d_e_)how to write code for it.
I have a tex box. in that i want user should enter data in the format specified(for eg--a_b_c_d_e_)how to write code for it.  I have a tex box. in that i want user should enter data in the format specified(for eg--abcde_)how
I have need to help
I have need to help  Write a program that, for four points A, B, C and P, draws a triangle formed by ABC and a small cross showing the position of P; and displays a line of text indicating which of the following three cases
JSP and XML .data store nd retrieve
JSP and XML .data store nd retrieve  I have made a form in jsp having emp id, projectname and emp name.I want to store data related to employee in xml file.How can i store data entered by user in XML file and later retrieve data
i have problem with this query... please tell me the resolution if this .........
i have problem with this query... please tell me the resolution if this .........  select length(ename)||' charecters exist in '||initcap(ename)||'s name' as "names and length" from emp
i have problem with this query... please tell me the resolution if this .........
i have problem with this query... please tell me the resolution if this .........  select initcap(ename),job from emp where substr(job,4,length(job,4,3)))='age
store data from a variable in mysql?
store data from a variable in mysql?  sir last time asked you tell me how to retrieve data from a database mysql and store it in an int variable in order to apply some calculation on it, but now i want to store the result
Java I/O Data Streams
Java I/O Data Streams In this tutorial we will discuss the Java I/O Data Streams. To deal with the binary I/O of primitive data type values as well as the String values Java provided the support of Data stream. DataInput
When i click on Monitor Tomcat, it shows
When i click on Monitor Tomcat, it shows   To run servlet i have seen... installed java 7 and tomcat 7, when i click on Monitor Tomcat it shows...://localhost/ then i get the Apache tomcat page, but when i finally want to see my
When i click on Monitor Tomcat, it shows
When i click on Monitor Tomcat, it shows   To run servlet i have seen... installed java 7 and tomcat 7, when i click on Monitor Tomcat it shows...://localhost/ then i get the Apache tomcat page, but when i finally want to see my
sir i,have a assignment for these question plz help me sir - JavaMail
sir i,have a assignment for these question plz help me sir  ...(); public void display(); } class StackImplementation implements MyInterface...]; System.out.println("popped element " + popper); } public void display
inheritance....please help me friends...!!!... this is important project that i have to do it..
inheritance....please help me friends...!!!... this is important project that i have to do it..   Point ................. #x : int #y : int... = 120 and y is 89. - Display the y, y , radius and area of that objectCircle
I want to display the quantity of the selected item of a drop down list in a textbox. The data is stored in database.
I want to display the quantity of the selected item of a drop down list in a textbox. The data is stored in database.  The code for retrieving data from database into Drop Down List. <% DataSource data = new
how can i create a data grid - Java Beginners
how can i create a data grid  Nice to ur respose...thnks all of u plz help me i want make a datagrid but i have no idea about this how can i create datagrid. and how can i connect to the database plz help me give
retrieve data from mysql database
retrieve data from mysql database  hi am not familiar in php.....even though i want to create combobox effectively.... my query is that when i have selected value on combobox which is to be retrieve the relevant data from mysql
Please tell me how I can access a field (data type char) of resultset in a java class
Please tell me how I can access a field (data type char) of resultset in a java class  I have created a table named empdetails in postgreSql 8.4 databse. There is a field named empsex whose data type is char. I have created
this is my javascript code and i am not understanding the mistake in this,please help me?
this is my javascript code and i am not understanding the mistake in this,please help me?  <html> <h2>Form Validation</h2> <script language = "Javascript"> function checkEmail
Store ResultSt Data in a Map
Store ResultSt Data in a Map  i want to store data in a hash Map .Please solve my problem as soon as possible
i have a problem in spring - Spring
i have a problem in spring  spring Aop: how to configure proxyfactorybean in xml file for providing advices for one particular class
Display data in a chart
Display data in a chart  I have a data in mysql table,i retrieved that data in drop down list and wen i click on particular name on the drop down, the data must display in chat.how to do this plz help me......thank u
Display data in a chart
Display data in a chart  I have a data in mysql table,i retrieved that data in drop down list and wen i click on particular name on the drop down, the data must display in chat.how to do this plz help me......thank u
Display data in a chart
Display data in a chart  I have a data in mysql table,i retrieved that data in drop down list and wen i click on particular name on the drop down, the data must display in chat.how to do this plz help me......thank u
can i use trigger to insert data within a time period ?
this trigger concept the data will be insert to each Employee's ID. Plz sir help me regarding this problem.how to solve this issue and how i will use this trigger...can i use trigger to insert data within a time period ?  Hello sir, i
i have problem in that program - JavaMail
i have problem in that program  1. Write a multi-threaded Java... = pw; } public void run(){ try{ int i; for (i=1;i<10;i++){ int j; for(j=2; j<10; i++) { pw.write(f3+"\n"); f1 = f2
i need program to insert data in database using javascript
i need program to insert data in database using javascript  please help me
Retrieve The Data From MySql Datbase
Retrieve The Data From MySql Datbase   How to Retrieve The Data From MYSQL database TO Use Select the Emp_id Option.And Also Search Option
could you suggest me that in which area i have to do a project?i want a complete guidence to complete my project.
could you suggest me that in which area i have to do a project?i want a complete guidence to complete my project.  could you suggest me that in which area i have to do a project?i want a complete guidence to complete my project
 

 

 

DMCA.com