35,618 Topics

Member Avatar for
Member Avatar for tactfulsaint

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.

Member Avatar for tactfulsaint
0
82
Member Avatar for geeths

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,

Member Avatar for amjad277
0
77
Member Avatar for rriiddaa

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 …

Member Avatar for javaAddict
0
161
Member Avatar for new2jsp

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 = ""; …

Member Avatar for ~s.o.s~
0
195
Member Avatar for LevelSix

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 …

Member Avatar for LevelSix
0
479
Member Avatar for sciwizeh

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

Member Avatar for sciwizeh
0
99
Member Avatar for lord 1001

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...

Member Avatar for Ezzaral
-1
37
Member Avatar for TofiLuk

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; } …

Member Avatar for ~s.o.s~
0
143
Member Avatar for briglia23

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 …

0
55
Member Avatar for gorty

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 …

0
48
Member Avatar for gorty

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 …

Member Avatar for ~s.o.s~
0
80
Member Avatar for lich

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); } …

Member Avatar for satyapp
0
96
Member Avatar for iqbal

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 …

Member Avatar for Acidburn
0
145
Member Avatar for somtirtha

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 …

Member Avatar for MakeMoneyOnline
0
65
Member Avatar for briglia23

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"%> <%@ …

Member Avatar for ~s.o.s~
0
99
Member Avatar for sciwizeh

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 …

Member Avatar for sciwizeh
0
130
Member Avatar for prof_satch

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 …

Member Avatar for prof_satch
0
159
Member Avatar for pat8

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 …

Member Avatar for Ezzaral
0
980
Member Avatar for BuddMurray

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" …

0
43
Member Avatar for bhavnaagrawal

how can i pull data from sites like yahoo,espn .I wan to use java servlets .

Member Avatar for yilmazhuseyin
0
80
Member Avatar for mkandit

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.*" %> <%@ …

Member Avatar for stephen84s
0
87
Member Avatar for shraddha_gupta

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??

Member Avatar for Ezzaral
0
70
Member Avatar for nuwan243

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 …

Member Avatar for Ezzaral
0
105
Member Avatar for perezfl

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 …

Member Avatar for Ezzaral
0
113
Member Avatar for shraddha_gupta
Member Avatar for stephen84s
0
55
Member Avatar for hannehomuth

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 …

Member Avatar for hannehomuth
0
181
Member Avatar for evaristo

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 …

Member Avatar for evaristo
0
148
Member Avatar for shraddha_gupta

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 …

0
50
Member Avatar for amjad277

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 …

Member Avatar for amjad277
0
99
Member Avatar for shwetha_cs26

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 …

Member Avatar for javaAddict
0
108

The End.