36,051 Topics

Member Avatar for
Member Avatar for Motvel

I have a list of choise. All i want to do, is when i click on a element - to show the string of that element. Suppose i click on "Pizza" element, then i should to get at console (with System.out.println()) the word -Pizza. Any ideas or example will be …

Member Avatar for Vilice
0
181
Member Avatar for shaynicb25

I am working on the following Java application Write a program that allows the user to enter the last names of five candidates in a local election and the votes received by each candidate. The program should then output each candidate’s name, the votes received by that candidate, and the …

Member Avatar for javaAddict
0
114
Member Avatar for mln_15584

Hi All, I have written two separate thread to run continuously in my project and now I am running those threads manually. When I deploy this project's war in tomcat server I can't run those thread manually. But my project need to run those threads continuously in my server. how …

Member Avatar for masijade
0
103
Member Avatar for JConnor135

I have two methods that when prompted by the user will print out n amount of String on m rows, for ex: * 3 3 would print out: *** *** *** here is the code I have: [ICODE]public static void writeLine(String c, int n) { if(n==0) System.out.println(); else System.out.print(c); writeLine(c, …

Member Avatar for JConnor135
0
196
Member Avatar for LevelSix

Is there a way that after you store something, such a Rectangle, to an object variable, say, Object x, that you can then look at object x, and determine it is indeed a rectangle, allowing you to use Graphic methods such as draw on said object?

Member Avatar for LevelSix
0
131
Member Avatar for adusumalli

Hi I have problem with calling jsp using <a href> in scriptlets. Not able to call the jsp. I used the following code. but not able to enter in to ozCmnDeleteEntity.jsp. please give me solution. [code] out.println( "<a href=\"ozCmnDeleteEntity.jsp?objType=PROJECT&objId="+prj.getProjectId()+"\">"); out.println("</a>"); [/code] thanks in advance...

Member Avatar for adusumalli
0
1K
Member Avatar for pidven

hi i am new to java . there are many diiferent books i saw in java like javascript ,java programming,java soap,java data base and so......on what these and all whether i have read all these to learn java or how to proceed

Member Avatar for Software guy
0
80
Member Avatar for shobha1335

I have onebean.java file having [code] private String destinationOne; private String destinationTwo; private String destinationThree; private String destinationFour; private String destinationFive; private String destinationSix; [/code] and the corresponding set and get methods. and Im using these set and get methods in another java file. Here in onebean.java we have to …

Member Avatar for javaAddict
0
158
Member Avatar for vish_1x1

Hello Everyone, I am a new java user and i have a problem where i have made a servlet "Conn.java". In which i have established a connection and i m retrieving data from database using dsn. This data i store in a array list called rowsetArray. when i run just …

Member Avatar for Thirusha
0
1K
Member Avatar for C41R0

i got one UI that created by java, i take it and generate jar file and when i double click that jar file to open the UI only program, it takes around five seconds, its quite long and my computer is dual core. if the same thing create in visual …

0
75
Member Avatar for peddiraju86
Member Avatar for loken
0
69
Member Avatar for haxpor

Hello everyone, This is my first post. I devoted to the game development and community, I like it alot. I created game called "PongV1", like the classic old pong. It is written with Java with my own Engine. Before playing it you should have JRE 1.6 or up. Comment are …

0
64
Member Avatar for TheBuzzer

Hi, I am trying to make stroke and shape make a path like two sin curves. so a path from x,y to x2,y2 first is like ------------------------- will become /\/\/\/\/\/\/\/\ \/\/\/\/\/\/\/\/ if you understand what i mean. I am very confused am I suppose to be changing the shape or …

Member Avatar for sciwizeh
0
169
Member Avatar for modjoe23

Hi, I am very very new to JSP so I urge you to bare with me. I have resolved my issue, however, I really don't like to solve a problem without understanding how I solved it. We use Weblogic 8 as out web server. The problem: JSP compilation error. It …

Member Avatar for modjoe23
0
169
Member Avatar for NycNessyness

Hello everyone. I'm currently having a problem with choosing one area in an array. For what I'm working on I'm trying to pick one seat in an array consisting of 10 seats. The first 5 seats are firstclass and the last 5 seats are economy. For example if the person …

Member Avatar for Software guy
0
161
Member Avatar for almostanangel

Hiya Guys and Girls I am wanting to develop a conference centre in Java. But before i start spending time coding I wanted to know if anyone had a generic code I can use just to save some time. Kind Regards Almostanangel

Member Avatar for Waseemn
0
107
Member Avatar for JavaBeginner30

Hello Everyone! I'm Glen, a student beginning to learn about Java. I need help, my instructor is not useful and my fellow students have no idea what their doing; their lost as well! I have an assignement which was do two days ago; i was not able to produce a …

Member Avatar for Alex Edwards
0
106
Member Avatar for OmniX

I mentioned a few weeks ago about a memory problem that could not be solved due to the programming taking alot of memory. Now what am I to do? Anyway to expand the use of the memory or should I just use java? but will it have the same problem? …

Member Avatar for peter_budo
0
107
Member Avatar for Urbanfox

I ran hijack this and saved the report it spit out. Didn't do anything more since I can't read these logfiles as of yet: Logfile of HijackThis v1.99.1 Scan saved at 1:16:54 AM, on 7/15/2008 Platform: Windows XP SP2 (WinNT 5.01.2600) MSIE: Internet Explorer v7.00 (7.00.6000.16674) Running processes: C:\WINDOWS\System32\smss.exe C:\WINDOWS\system32\winlogon.exe …

Member Avatar for PhilliePhan
0
126
Member Avatar for shraddha_gupta

i have made my project using netbeans. I want to create tar file , how is it done. I want to an executable file to be made, and source code zipped to be used to modufy program later without using netbeans. I am really confused, can a poject made in …

Member Avatar for stephen84s
0
112
Member Avatar for bloody_ninja

Hi, I just started research and playing around with Java a week ago. My uncle's company gave me all the necessary software and everything, and now I am trying to learn as much as I can in the fastest possible time. Browsing through the first page, I realized that I …

Member Avatar for bloody_ninja
0
180
Member Avatar for Mirth

I'm using odbc:jdbc bridge and an access db and I always get this error: Driver does not support this function [code] <%@ page import = "java.sql.*" %> <%@ page import="java.io.*" %> <%@ page import="java.util.*" %> <HTML> <title>Stock Portfolio</title> <body> <body bgcolor="gray"><center> <table border = 1> <tr> <td><th>Symbol</td></th> <td><th>Type of Transaction</td></th> …

Member Avatar for peter_budo
0
125
Member Avatar for d4n0wnz

my assignment is to write a 2 functions that check how many elements are in a linked list one of the functions have to solve it recursively and the other through the use of a loop. When compiling my code, I run into a load of errors and can't seem …

Member Avatar for VernonDozier
0
75
Member Avatar for amjad277

When one thread is executing a synchronized method for an object, all other threads that invoke synchronized methods for the same object block. What is happen when too many threads (for the same object) for example 100 Threads invoke this method and want to send data? In which order can …

Member Avatar for yzg1236
0
99
Member Avatar for AllanJP

Hey all! I've been struggling with a problem for a week now, and it seems that I'm stuck. PROBLEM ONE: I'm trying to make a "Dynamic" Combobox? Well, I'm trying to read in an XML file, and based on the number of Nodes in that file, i wish to create …

Member Avatar for AllanJP
0
196
Member Avatar for Alex Edwards

Is it possible to send something like, a Frame or Applet to a target computer? If not, how would I set it up so that two users from two different computers could interact with the same JFrame or JApplet? Edit: No I'm not asking for code, just general advice*

Member Avatar for Alex Edwards
0
144
Member Avatar for senthilbfly

I got error while i am trying to use java generic classes in jsp. Is there any cofiguration required to solve it. I use java 1.6 Tomcat 6

Member Avatar for ejosiah
0
53
Member Avatar for vishal2901

Hai guys, I am new at jsp.I have made a simple j2ee application in which i am getting class cast exception in PortableRemoteObject.narrow function. The exception is: [code]org.apache.jasper.JasperException org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247) javax.servlet.http.HttpServlet.service(HttpServlet.java:860) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249) java.security.AccessController.doPrivileged(Native Method) javax.security.auth.Subject.doAsPrivileged(Subject.java:517) org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)[/code] The root cause is : [code]java.lang.ClassCastException com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:229) …

Member Avatar for ejosiah
0
165
Member Avatar for guravharsha

Hi, Here is my jsp page where i trying to display the data from table. Here form1 is the name of drop down list in my searchuser.jsp page. The content in the drop down list is a name of one column of the database. I am able to connect firstjsp …

Member Avatar for ejosiah
0
151
Member Avatar for arLe20

i need help..... i need to write a SHORT java program that takes two arrays a and b of length n storing int values, and returns the dot product of a and b.

Member Avatar for javaAddict
0
128
Member Avatar for javagreenhorn

Hello, I have done the code for the final part of the Java Inventory Program in my class. This is the requirements for the final code. • Modify the Inventory Program to include an Add button, a Delete button, and a Modify button on the GUI. These buttons should allow …

Member Avatar for javaAddict
0
193
Member Avatar for zahra1364

Hi : I need some information about installshield java edition. please help me if you can.It is so important for me. thanks.

Member Avatar for sayedjustetc
0
104
Member Avatar for Alex Edwards

Forgive me for my lack of Java-lingo. In fact I'd like to find a book someday that will teach me all of the definitions of words that are mentioned for Java classes and objects, as well as processes, etc. If the title isn't at all clear, what I mean is …

Member Avatar for sciwizeh
0
92
Member Avatar for Alex Edwards

I'd like an opinion, although it will probably be biased since I'm asking the members of the C++ forum and not the members of Java. I'd also like to apologize in advance if this topic has been done before, but I don't like bumping old topics from years ago. I …

Member Avatar for sciwizeh
0
294
Member Avatar for viber101

Im new to java and i want to know how to capture java compiler syntax error messages. . .please help me.

Member Avatar for sciwizeh
0
172
Member Avatar for Waseemn

Hello All, OK I have a nagging question that I need to put to rest right away, or else I am going to go amok. In Visual Basic you can declare an array without knowing its size, and then redim the array again once the array size is known. Now …

Member Avatar for Alex Edwards
0
152
Member Avatar for zwench

I am having a problem getting the sales part of this to display a $ sign and 2 decimal places. Where would I have to insert the command to have that display as $45000.00? One other question is there a way to get this to display the result all on …

Member Avatar for sayedjustetc
0
301
Member Avatar for oali

Hi i have a teensy problem that i need help with, as i mentioned earlier in some previous thread (can't remember when!) i'm creatin an applet based tutorial. It's nearly finshed thank god except for the last applet i seem to be getting an error that i can't fix. heres …

Member Avatar for oali
0
108
Member Avatar for TheWhite

Is there a way to make a frame totally wipe all traces of itself (make it return null) by pressing the X on the window? setDefaultCloseOperation(DISPOSE_ON_CLOSE); doesn't actually make the frame return null, rather, it saves its state and cleans it out of memory... A call to show or pack …

Member Avatar for Ezzaral
0
623
Member Avatar for MxDev
Member Avatar for darkagn
0
49
Member Avatar for TheBuzzer

I am wondering what does people put for programming experience time frame? Do they put the total years of which they programmed for companies or do they put years where they learned and mess with programming like in college, high school, etc. I am asking this because lot of jobs …

Member Avatar for iDeveloper
0
153
Member Avatar for javax_

[CODE] public class test { public static void main(String [] args) { Person p = new Person("ABC"); p.setName("DEF"); changePerson(p); System.out.println(p.getName()); } public static void changePerson(Person p) { p.setName("GHI"); p = new Person("JKL"); p.setName("MNO"); System.out.println(p.getName()); } } class Person { String name; Person(String name) { this.name=name; } public void setName(String n) …

Member Avatar for javax_
0
131
Member Avatar for bloody_ninja

[code=java] import java.io.*; class Factorial{ public static void main(String[] args) { try{ BufferedReader object = new BufferedReader(new InputStreamReader(System.in)); System.out.println("enter the number"); int a= Integer.parseInt(object.readLine()); int fact= 1; System.out.println("Factorial of " +a+ ":"); for (int i= 1; i<=a; i++){ fact=fact*i; } System.out.println(fact); } catch (Exception e){} } } [/code] Trying numbers …

Member Avatar for mzd12111
0
204
Member Avatar for sciwizeh

are there any good (comprehensive) tutorials that anyone knows of for the SAX parser? i cannot find a good one

Member Avatar for sciwizeh
0
83
Member Avatar for Venks

Hai friendz ,iam doing project in mobile i done small application in j2me its working fine when i send via bluetooth to mobile but iam trying to download jad file from apache tomcat server its working fine when download in my system, when iam trying to download jad file from …

Member Avatar for Venks
0
101
Member Avatar for sohel08

I just started research and playing around with Java a week ago. My uncle's company gave me all the necessary software and everything, and now I am trying to learn as much as I can in the fastest possible time. Browsing through the first page, I realized that I wanted …

Member Avatar for Ezzaral
0
71
Member Avatar for Alex Edwards

I'm getting ridiculous results in my program! Seconds work fine Decaseconds (1/10 of a second) work ok Centiseconds seem a bit off Milliseconds are completely off... Here's the code-- [code=java] import javax.swing.*; import java.awt.event.*; public class Clock{ private Timer t; private long startTime = 0, finishTime = 0; private boolean …

Member Avatar for Alex Edwards
0
142
Member Avatar for C41R0

when creating jar file i use following command in DOS [CODE] jar cf UIA.jar *.class *.jpg *.html *.xml *.jhm *.jar [/CODE] then i adding manifest by typing following command in DOS [CODE] jar cvfm UIA.jar mainClass.txt [/CODE] when i double click the jar file, nothing come out, i think maybe …

Member Avatar for C41R0
0
271
Member Avatar for amjad277

Does J2EE support TCP connection? If yes, how can I use these in J2EE: java.io.DataInputStream, java.io.DataOutputStream and java.net.ServerSocket Some one said to me there is no chance: Specifically, enterprise beans should not: listen on, accept connections on, or multicast from a network socket! Is this correct? Please help!?!

0
66
Member Avatar for uth

Is there anyway to create a new thread..basically create an object of a class within an existing thread and kill this existing thread so only the newly created child remains?

Member Avatar for sgul
0
282

The End.