35,618 Topics
![]() | |
Hello everyone, please i need help, i have been trying to send and retrieve password and username to the database using RMI. please i need a code snipet that can help me to achieve that. i use MS Sqlserver 2000. | |
i need to develop an instant messaging using Jabber. Can anyone suggest me which jabber client api is the best for developing IM in java. Any samples on jabber client will be helpful. thanks & regards, | |
hi all my name is rida i'm from lebanon 21 years old i'm in CNAM university and studying informatic i have a project about java language and i didn't know any thing about this language since i have an accedent in the begining of the year and i didnt watch … | |
I've this servlet that reads the data from db and then passes on a sublist of the data retrieved from db to the jsp page... [ICODE] package tryjsp; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import java.util.*; public class GetReleaseDataServlet extends HttpServlet { String releaseno = ""; String location = ""; … | |
The task: Write a program that asks the user for a file and counts the number of characters, words, and lines in that file. Then the program asks for the name of the next file. When the user enters a file that doesn't exists, the program prints the total count … | |
is there a method in the mouse listeners or any other event handlers that utilizes the tilt wheel, either tilt or scroll, i can't find anything edit: found scrolling no tilt yet | |
I need a search engine project in Java is a very simplified ask the greats of this forum wonderful to find a solution to the problems of me and giving me this ID project... | |
What's wrong with my code? Can somebody help? Thanks! [CODE]import java.io.*; public class Array { public static void main (String[]args) throws IOException { BufferedReader myinput=new BufferedReader(new InputStreamReader(System.in)); int Arr1[]=new int[5]; int Arr2[]=new int[5]; int SumArr1=0; int SumArr2=0; int x=0; int y=0; for (x=0;x<Arr1.length;x++) { System.out.print("Enter Array1: "); Arr1[x]=Integer.parseInt(myinput.readLine()); SumArr1=Arr1[x]+SumArr1; } … | |
hi. i have this method: [code] public Set listTaglie() throws Exception { try { Set<Scheda> ret = new HashSet<Scheda>(); ret.addAll(manager.createQuery("from Scheda").getResultList()); return ret; } catch (Exception e) { log.error("listTaglie() - Failed to list Taglie: "+e); throw e; } } [/code] I want a query like this: select distinct taglia_scheda from … | |
hi, prepared two list boxes which both interchange data thru forward arrrow and backwardarrow images. data is getting from database storing in avariable,have to assign var to array . this is my code pls help thanks in advance. [code] <script language=javascript> /* ************************* */ // Copy the code inside head … | |
Hello everyone, I have the following problem and was wondering if I could do this with JSP. basically have table with two columns one column willretrieve data(names) from database in the form of textfields. Upon getting data within the textfields I want it to transfer data from textbox to another … | |
Here is my code import java.io.*; class Add { public static void main (String args[] ) throws IOException; { BufferedReader br=new BufferedReader( new InputStreamReader (System.in)); System.out.println("Enter the value of X:"); int x=Integer.parseInt(br.readLine()); System.out.println("Enter the Value of Y:"); int y=Integer.parseInt(br.readLine()); int z=x+y; System.out.println("\n\nValue of X + Y = " +z); } … | |
This is my assignment and write following code for this, its compile but not run. Please check and guide me to solve this problem. I used jdk1.4 for this. > Question: > You are required to develop a GUI based “Age Calculator” using applets > > > It should take … | |
Hi, It will be very helpful 4 me if any1 kindly provide me code of session log out in JSP. It means if any member signs in and after accessing all possible services that member can sign out him/herself clicking a "sign out" button. You can send code in this … | |
Hi. i'm new user of jsp and i have this problem. I post my code [code] <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ page import="it.yacme.mystiquexml.mapping.Modello"%> <%@ page import="it.yacme.mystiquexml.mapping.*" %> <%@ page import="it.yacme.mystiquexml.business.YacmeRemote"%> <%@ page import="it.yacme.mystiquexml.presentation.YacmeLocator"%> <%@ page import="java.util.Iterator"%> <%@ page import="java.util.List"%> <%@ … | |
i am getting strange results and cannot figure out why: Vel CONTROL (the vector 1,0), and Acc are Vec2D objects, which has X and Y values, and methods such as add, angle between, and other such vector util particle extends ellipse2d.double updateSuper() simply changes the values for it OLine extends … | |
ok, so i'm enrolled my first programming course and we finally have to create an actual program. what i'm trying to do in my program is to create a while loop that checks if a variable is not of string type. but like i said, i'm very new at this … | |
In the game of Craps, a "Pass Line" bet proceeds as follows. Using two six-sided dice, the first roll of the dice in a craps round is called the "Come Out Roll." The bet immediately wins when the come out roll is 7 or 11, and loses when the come … | |
Hi pros I just started a project at work which requires Groovy development in a Grails generated project. I got the project handed to me "as is" from my boss and I don't know much about Grails and Groovy. after exploring the project and got it running via "Grails run-app" … | |
how can i pull data from sites like yahoo,espn .I wan to use java servlets . | |
Hello friends i m trying to connect my jsp code with mysql front but i found myself helpless. please guys help me.....this is the code. <%@ page import="java.sql.*"%> <%@ page import="javax.sql.*"%> <%@ page import="java.util.Vector"%> <%@ page import="java.io.*"%> <%@ page language="java" %> <%@ page import="java.lang.*" %> <%@ page import="java.text.*" %> <%@ … | |
I have downloaded the code for drawing a bar chart, that has imported these packages import org.jfree.chart.*; import org.jfree.chart.plot.*; import org.jfree.data.*; import org.jfree.data.general.*; on compiling on java 1.6 these packages are giving error. What is the problem?? | |
Hey Every One, Is there a package or written class to access hardwares like cd rom by using a java code.i had referred the java documentation but i didnt found.If any one know about this please send me a feed back. i referred some basic books also like( java in … | |
Hello all, this is just another student level program and I need some help with the final bit. This a program that gets input from a user and outputs teh student name, average grade, all scores highest score, etc. But I am having trouble outputing the scores (which are in … | |
I want to draw a Bar Chart, Plz help me to find the code for it. | |
Hello Everyone, at first thank you for reading this post. I've searched nearly 4 Hours the whole Internet but did not find an answer which pleased we well. Does anyone know how get access to the gnome keyring tool through dbus in an Java Application. I shall write an Java … | |
dear bunch of developers, i have this JTable and i'm contructing it with a model object extended from a DefaultTableModel. The way i'm passing the data to it is by means of a vector: [CODE]public void setData(List<Object> data) { myTableModel.setDataVector(data); }[/CODE] ...and in my table model i have something like … | |
I have made my project in JApplet, Each JApplet is working fine independently. But I dont know how to link then I have a menu on the home page. private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: Month mth=new Month(); System.out.print("object created"); try { System.out.println("Trying to … | |
Hello, does anybody know what is the difference between thies two codes? [B]1- With this code I get "NullPointerException at process1.getCurrentNode();"[/B] public void signal(ProcessEntity process) { ProcessEntity process1 = getEntityManager().find(ProcessEntity.class, process.getId()); if (process1 == null) { try { Thread.sleep(5000); } catch (InterruptedException e) { e.printStackTrace(); } signal(process); } NodeEntity currentNode … | |
jt = new JTabbedPane(JTabbedPane.TOP); jt.setTabPlacement(JTabbedPane.TOP); //panel1 jp.setPreferredSize(new Dimension (50,50)); jp.setLayout(new BorderLayout()); jp.setBackground(Color.BLACK); jp.setPreferredSize(new Dimension(60,50)); jp4 = new JPanel(); j = new JButton("Draw The Graph"); j.addActionListener(this); jp4.setBorder(BorderFactory.createRaisedBevelBorder()); jp4.setPreferredSize(new Dimension(180,40)); jp4.add(j); jp.add(jp4,BorderLayout.EAST); String[] a = {"select "}; lab = new JLabel("x parameters"); lab.setLocation(700,700); jp4.add(lab); jcb= new JComboBox(a); jp4.add(jcb); lab1 = new JLabel("Y … |
The End.