36,051 Topics

Member Avatar for
Member Avatar for Mr.UNOwen

Hello, I'm creating a game in Java and in the game there will be short videos played in between the levels and I need to know what classes to look at if I'm going to load, adjust volume, play and terminate the video. Also the way I have the program …

Member Avatar for Phaelax
0
64
Member Avatar for Shveetis

Hello everyone.. I need some basic help in the monitoring of a website.. Can anyone out here help me with the retrieving of the URL of a website..?? Thanks a lot in advance..

Member Avatar for Shveetis
0
83
Member Avatar for kenus

'javac' is not recognized as an internal or external command, operable program or batch file.

Member Avatar for vimalkv123
0
138
Member Avatar for arunpawar

We import the packages from java.somepackge.*; or javax.package.*;package can be anything from javas own api or other external api. My question is what is difference between java and javax?

Member Avatar for javaAddict
0
65
Member Avatar for shaikh_mshariq

Hi to all the posters. I have come up with new problem using crimson parser to parse an xml file. I am creating xml file using crimson parser and DOM object. I have created a xml file using xmldocument object and i am setting nodes value according to tag name …

0
80
Member Avatar for ndrux

import javax.swing.JOptionPane; public class cafe2 { public static void main(String args[]) { String name,ch; double price = 0.00; double sum=0.00; int cho=0; name=JOptionPane.showInputDialog("Enter Customer Name:"); do{ ch=JOptionPane.showInputDialog( " Food Name "+ "\n-----------------------------------------------------"+ "\n1) French Fries $ 3.50"+ "\n2) Fish and Chips $ 5.50"+ "\n3) Goat Cheese Pizza $20.70"+ "\n4) Chicken …

Member Avatar for ndrux
0
141
Member Avatar for Mr.UNOwen

Hello, I was creating a game in java and a thought came to mind, would it be better to dump it all and start from scratch with C++. So my question is, with all the cons I've listed and all the other issues that you know, what am I better …

Member Avatar for Mr.UNOwen
0
108
Member Avatar for dharajsmith

Hi Friends, I'm afraid I need help again.... I wrote this program, and it won't compile...and now I have to add to it. Here is the program: public class InventoryProgram1App { /** * @param args the command line arguments */ public static void main(String[] args) { System.out.println("InventoryProgram1App"); { {public class …

Member Avatar for dharajsmith
0
184
Member Avatar for rockmania

import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Calculator { public static void main (String [] args) { JFrame frame = new CalculatorFrame (); frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); frame.show (); } } class CalculatorFrame extends JFrame { JTextField jtf; JLabel jlb; JTextField jtf1; JLabel jlb1; JTextField jtf2; JLabel jlb2; JButton jbt; JButton …

Member Avatar for jwenting
0
179
Member Avatar for pack

Hi I am not much experienced in JSP. I am facing one problem while printing a XML String on the screen. Code snippet -> String result = ab.returnResult(); result is returning a XML String..Suppose <A>123</A><B>SIR</B><C>21</C> I am printing -> <tr><td><%= result %></td></tr> I am getting 123SIR21 as output in the …

Member Avatar for ~s.o.s~
0
490
Member Avatar for Derice

[CODE]String str = "D:*Course 2007 Sem 2*WXET3309*WXET3309_Lab*WXET3309_Lab 2.doc"; System.out.println(str); String[] word = str.split("\\*"); int i = word.length; //length is 1 more than array i--; //last index = last string System.out.println(word[i]);[/CODE] The code above is code to get the last string separated by the symbol *. I wonder how should the …

Member Avatar for Derice
0
239
Member Avatar for insignia1

Hi, My enquiry involves how jsp handles graphics updates I refer to the technology prior to .NET when ActiveX controls were embedded in web pages. The control (in the form of a dll) was typically downloaded to the browser and executed on that browser. I believe a similar situation exists …

Member Avatar for jwenting
0
142
Member Avatar for nljavaingineur

Hello developers, I have a Product class defined. Then have an applet extending this class. This applet lets me key in: 1.Ordered item 2. Quantity to order then display total amount payable for each item ordered plus the total amount of all items ordered. I am learning to use array …

Member Avatar for jwenting
0
108
Member Avatar for shiyamala
Member Avatar for Derice

I am have no idea wat is wrong with my code. The system is supposed to get 3 inputs from users and display a message box to show the number in ascending order. If i were to get input from input box and display it in message box it will …

Member Avatar for Derice
0
201
Member Avatar for Acidburn

Can an object that implements runnable throw an exception to its caller? I ask this cause the run method itself can't throw exceptions so i wonder how it could be achieved. Basically the run method itself can throw an exception but others can't see it (RuntimeException) but can it throw …

Member Avatar for Ezzaral
0
100
Member Avatar for javaStud

I am trying to do a sort of and expiry date so that when an account is created about 3 months later I'll be informed so that the account can be renewed. I don't know how I can do this and to tell you the truth I never used the …

Member Avatar for javaStud
0
137
Member Avatar for shashipkiran

Sir/Madam My website has three pages. The first page is a Login Page in which all the validation takes place and if the user is a valid one it directs it to the second page. In the second page i have given a link to the third page where onload …

Member Avatar for ~s.o.s~
0
76
Member Avatar for Ankita B

Hi, I am tryin to insert values entered by user into oracle db.I am using jsp and java beans for this.request.getParameter() works fine for string parameters but what should i use for fields such as date?..thx

Member Avatar for ~s.o.s~
0
78
Member Avatar for eddy556

Hey, I have a primary JSP which inlcudes a secondary JSP which is dynamic. How do I pass parameters FROM the secondary JSP back the PRIMARY JSP not the other way around? For example I have a page which displays the output from a database. The first page is just …

Member Avatar for ~s.o.s~
0
69
Member Avatar for javaStud

I am trying to do a primary key so that each member can't hava the same ID and if th same ID is entered an error is give. Can someone please help me cause I can't do it at all.Thank you. [CODE] static void addMember(ArrayList<GymUser> UserListIn) { String tempUserrID; String …

Member Avatar for javaAddict
0
232
Member Avatar for ceyesuma

pi = 4(1-1/3 + 1/5-1/7 + 1/9-1/11 + 1/13-.........- 1/(2i-1) + 1/(2i+1) ) I am starting this program to approximate pi. Would someone be so kind as to direct me to information concerning this formula?

Member Avatar for ceyesuma
0
1K
Member Avatar for soccerrm1

Hello everyone, I'm in my senior year of high school and I have just started taking my first programming class. As it turns out, we use Java and then Visual Basic later on. My question is, as a Computer Science major, will I use Java again in college, or is …

Member Avatar for stultuske
0
111
Member Avatar for ashkan3030

I want a very simple player code to playes mp3 or wav files and also want to know where I should put it in my VisualMidlet to be played when I select special part of my choice group? please help me it's so important for me. Thank you all.

Member Avatar for stultuske
0
89
Member Avatar for hidash_in

hi all, i want to open a file from the server system using java pls anyone can help me pls i dont have any knowledge about this pls tell some idea.

Member Avatar for DangerDev
0
116
Member Avatar for darkagn

Hi all, I am fairly new to using Eclipse (or any IDE for that matter) and I am having trouble getting the TPTP Profiler plugin working. I'm hoping that someone out there might have seen this behaviour before and has the fix for it... :) I am running Eclipse 3.3.1.1 …

Member Avatar for andreash
0
138
Member Avatar for ashkash

I have strings in Java where each one is as follows: "Case Number XXX-XXX-XXX" The "XXX-XXX-XXX" part is different for each string. I want to just extract the "XXX-XXX-XXX" portion of each string. I am assuming this is the third token in the string. What would be the best way …

Member Avatar for stultuske
0
245
Member Avatar for rickster11

Alright, I've been working on this one line for awhile, can't quite get it. I need to read all the characters after the "," (comma), ending at the end of the line. I'm guessing I'm just making a simple mistake. Can anyone help me out? [code]blocksArray [numBlocks][1] = Integer.parseInt(line.substring (line.indexOf(","),line.length())); …

Member Avatar for javaAddict
0
104
Member Avatar for wolverine_ramir

is it possible that i could create an array from a class and return the value of that array? and how? how can i access that array

Member Avatar for WhYuLoOkIn
0
100
Member Avatar for shaikh_mshariq

I am developing a program to gather information from the client. I have apache tomcat web server and all the client have one client program to communicate to the server. I want to make this connection http for security reason but i know how can i do this. It is …

Member Avatar for vpcse
0
266
Member Avatar for Shveetis

Hello everyone.. I need to retrieve the number of classes loaded from the MBeans and I am facing problem with the same... Is there any specific package to be imported?? I am unable to work it out though it is really simple.. Thanks in advance...

0
73
Member Avatar for piers

For the guys who helped on the card.java file I did thnaks a lot I got that done. I have now moved onto the next part of that and have to complete this skeleton file. this is the spec for this file. [QUOTE]This class has two attributes: an array of …

Member Avatar for Ezzaral
0
157
Member Avatar for Shveetis

Hello everyone.. I am trying to retrieve a URL of applications from a text file... My text file contains 3 URLS for 3 applications say for example : C:/ABC.java C:/JVM.java C:/Tomcat.java I have tried implementing a code for the same but when I try to copy the URL into a …

Member Avatar for Phaelax
0
109
Member Avatar for fatjoy25

import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.awt.Graphics; import java.lang.Math; import java.applet.Applet; import javax.swing.event.*; import javax.swing.event.*; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; public class Maint extends JApplet implements Runnable,ActionListener,MouseListener,MouseMotionLi stener { /* Declaring the variables.*/ JPanel panel; JPanel textAreaPanel; Point dot[] = new Point[1000]; Point start, end; int dots = …

Member Avatar for Ezzaral
0
99
Member Avatar for King_Walnut

I'm making a vending machine .. and everything's pretty much together, I just have a few problems that I don't have the faintest clue how to fix Firstly, when I choose a snack, the price of the thing comes up fine, no bother. But if I start to pay, then …

Member Avatar for Ezzaral
0
135
Member Avatar for narendra_jntu

I am very new to java . I am having some confusion in java versions. Actually what is java2 java 5 ,jdk1.5 alot of confusion i am having . Is there any special meaning in that. What j2se,j2me,j2ee. What is the difference among them. Is there any special purpose for …

Member Avatar for Phaelax
0
103
Member Avatar for javaStud

I am trying to do a primary key so that each member can't hava the same ID and if th same ID is entered an error is give. Can someone please help me cause I can't do it at all.Thank you. [CODE] static void addMember(ArrayList<GymUser> UserListIn) { String tempUserrID; String …

Member Avatar for javaStud
0
95
Member Avatar for ttamilvanan81

Hai, i am tried to use the SQL Server with Java and Tomcat 5.0 Application Server. I am using the JDBC Driver for Java connecting with SQL Server. I m using SQL Server 2005. But the JDBC Connection doesn't create. I have used the following code for java database connectivity …

Member Avatar for sabindas
0
429
Member Avatar for alejalv

so i wrote this recursion program that uses memoization to calculate the fibonacci numbers. it's supposed to scan a user inputted number, call the method, check to see if the number is in the array, if not store it, ad increment the counter. so i should end up with the …

Member Avatar for DangerDev
0
92
Member Avatar for javaStud

In this method I am trying to locate a user by its ID and then remove it. I am having errors in the second if statment (cannot find symbol-method getID() ). [CODE] static void removeMember(ArrayList<GymUser> UserListIn) { Scanner keyboard = new Scanner(System.in); keyboard.useDelimiter("\n"); System.out.print("Enter the ID no of the member …

Member Avatar for javaStud
0
93
Member Avatar for shashipkiran

Can anyone tell me the code to refresh a JSP page onload...? <meta http-equiv="refresh" content="1"> I have used this code and this keeps on refreshing the page every second. But i just want it once...Pls help me...?

Member Avatar for shashipkiran
0
98
Member Avatar for Spartan552

Hi! [QUOTE] Date now = new Date( System.currentTimeMillis() ); SimpleDateFormat sdf = new SimpleDateFormat( "dd/MM/yyyy hh:mm:ss" ); String snow=sdf.format( now ); out.println( snow );[/QUOTE] prints [QUOTE]07/02/2008 03:22:32[/QUOTE] but when I'm trying to send a query involving 'now' string that contains the datetime, I get this on the sql database [QUOTE] …

Member Avatar for masijade
0
52
Member Avatar for alejalv

hey guys, i have a project due tomorrow on recursion. the task was to write a recursive program that prints the value of fibonacci numbers and the number of calls made. i wrote the program and it returns the value at the end just fine, but i have been unable …

Member Avatar for DangerDev
0
96
Member Avatar for ysong

Tried to zip multiple files on the fly in java servlet with zip package (ZipOutputStream), so users can download the zip file by calling the servlet. It works fine for small files. But occasionally the browser stops the download before completion when users invoke the servlet action, and the zip …

0
57
Member Avatar for elcorillord

I have to basically write a fuction that does the inmemoized recursion and count the number of times is called..which i did.. the second part is that i dont understand which is to create a global array of 100 and calculate the function using memoization... can some one help..this is …

Member Avatar for alejalv
0
91
Member Avatar for electron33

Hi. I have a little problem. i tries to connect to a datasource defined in Tomcat context. But when i run the jsp page i got an error telling that the driver i not found. I'm using the mysql jar 5.0.x whitch i have placed under Catalina common lib folder …

Member Avatar for electron33
0
101
Member Avatar for javaStud

Hey all. I am having some problems in my project work. I am trying to this 'transaction' class in which the user enters his personal details.Now all I want to do is that when I create a new account for the user, I must also know the date when the …

Member Avatar for javaStud
0
91
Member Avatar for Reena Balu

Hi, I am new to PHP. I have a login and logout pages are in php. i have to pass the user id or the session to my jsp page. The id should not pass in the url for security purpose and also the browser back button should not work …

Member Avatar for jwenting
0
59
Member Avatar for vedmack

Hi I have built a web site using Struts/Tiles... in one of the tiles i got iframe in which I load a XML file from the server like this <iframe name="showXml" frameborder="no" src="filename.xml" width="100%" height="100%" ></iframe> the problem is that after I'm updating the file in other Tile (and the …

0
56
Member Avatar for eddy556

I'm having problems performing math in JSP. I have a line: double percentage = (useful / nonuseful) * 100; which is giving me an error, how do I fix this? Thanks

Member Avatar for eddy556
0
105

The End.