35,618 Topics

Member Avatar for
Member Avatar for abhay1234

i was trying to run a program on RMI i did the following [code] import java.rmi.*; public interface HelloInterface extends Remote { public int add() throws RemoteException; } [/code] [code] import java.rmi.*; import java.rmi.server.*; public class Hello extends UnicastRemoteObject implements HelloInterface { private int m,n,message, k,l; public Hello (int m,int …

Member Avatar for mahkris
0
133
Member Avatar for rukshilag

Can someone please explaon the difference of the above action listeners?? it seems like they both do the same thing - that is close a frame/window. big help thank you

Member Avatar for kudresov
0
241
Member Avatar for raashi.rai

Hello guys.. i need a help.. m new in java swings.. m using netbeans to create one application.. here i have to insert a new jtable at runtime.. like when a click on a button jtable should be inserted.. how can i do that in netbeans.? please help..

Member Avatar for peter_budo
0
84
Member Avatar for abhay1234

Hello. i wish to create a jsp page which will accept username and password from list and display a page showing the selected details when clicked on submit [code]<html> <head><title>course information form </title></head> <body> <form action="course_details.jsp" method="post"> username: <select name="username"> <option>nikhil</option> <option>avdhut</option> <option>gauri</option> </select> <select name="course"> <option>MCA</option> <option>MBA</option> <option>MCM</option> <input …

Member Avatar for javaAddict
0
134
Member Avatar for tnccjavaMatt

I have to write a program that creates a GUI that prompts a user to enter a query, then return the result to the same screen. All the examples I've found in my text book and other course material only shows how to account for a predetermined query. How do …

Member Avatar for tnccjavaMatt
0
882
Member Avatar for kool005

Hi, I have some vertices and edges and i have to create an adjacency list. I have taken an array and stored all vertices in the array. Now i need to add the edges to the graph. The input is given as a text file. When i read "a b …

Member Avatar for mellowmike
0
143
Member Avatar for helpme!!

Hi i am trying to create a JSP class which will redirct but for some reason i keep getting an error when eneterning the correct info. i think [CODE] System.err.println("DEBUG: Query: " + selectSQL); Statement stmt = conn.createStatement(); ResultSet rs1 = stmt.executeQuery(selectSQL); while(rs1.next()) { u += rs1.getString("U"); p += rs1.getString("P"); …

Member Avatar for helpme!!
0
79
Member Avatar for sammen89

[B]Background:[/B] Hey guys I'm making the first part of a greater program. We are instructed to create a program that stores a list of all our CD's. It has to be created in 3 different classes... that obviously link together. [B]My Question[/B] How do I create an array that is …

Member Avatar for Um num num
0
157
Member Avatar for zackzak

I am creating a game like the text-based game Zorg using a console program. However, I don't know how to create a save file. How can I do this using the player's name to restore the variables I need?

Member Avatar for zackzak
0
151
Member Avatar for hulk33597

hi guys .........help me ... how to accses shared file from lan by java proggram (tell me by code). plz help

Member Avatar for peter_budo
-3
67
Member Avatar for Dscyth3

Hey, I'm working on a problem and what I need the program to do is to add up the numbers in the array NOT add up how many numbers there are. There are 5 total numbers that a user will input. The counting of the numbers will be in a …

Member Avatar for kudresov
0
83
Member Avatar for digital_dizasta
Member Avatar for imclumsy

Hi guys, I have this project question that is just REALLY boggling me and I am getting nowhere :( The project description is really large and I can't post all of it hear but I'd just like to post the part I'm on and how far I've gotten with the …

Member Avatar for imclumsy
0
151
Member Avatar for beforetheyknew

So the program I have is supposed to read from a file take that data (which is split into three parts divided by a space). These Strings need to be read and stored in an appropriate field. Now i dont know how to do this, I've tried with an array …

Member Avatar for imclumsy
0
111
Member Avatar for Moonrise_state

Hi again, I have a small application that calculates time left over in a day after events. The problem I have is that if either the starting time or ending time is 4.10 or 5.10 I get slightly incorrect answer. Eg. if the only event starts at 4 and ends …

Member Avatar for Moonrise_state
0
113
Member Avatar for Um num num

Hello pplz I’m just starting to play around with the arraylists and GUI a bit and I’m having trouble figuring out how to access the arraylist and display it. This is what I got so far for when the add to arraylist button is clicked I’m not shore if it’s …

0
56
Member Avatar for NickT80

I need to write a program that takes in an input using JOptionPane and make sure it is more than 15 characters, then count the number of uppercases in the phrase. Please help desperate student.

Member Avatar for imclumsy
0
97
Member Avatar for Sandar Khin

Hi all Plz help me about media streaming.I want to play files that transmit from 'rtmp' link at my java application program.I have a program that play from 'http' link.Code is here [code] import java.awt.*; import java.awt.event.*; import java.io.*; import javax.swing.*; import javax.media.*; //import com.sun.media.protocol.rtsp.DataSource; import java.net.*; public class MediaPlayerTest …

0
58
Member Avatar for johnyjj2

Hello! There is possible to download automatic speech recognition engine Sphinx4 in two versions, one is bin, the other is src. It is explained how to build Sphinx4 engine with Ant here: [url]http://cmusphinx.sourceforge.net/sphinx4/#how_build[/url] . However there are many applications which use this Sphinx4, e.g. HelloDigits. I'd like to create my …

Member Avatar for johnyjj2
0
226
Member Avatar for beshoyatef

Here i mad panel and i put two Boxes in it , then i tried to make a background color for box by useing ([B]background(color.blue)[/B] method) but it never has the color . Then i try to resize its height by useing [B]Box.createRigidArea(new Dimension(10, 50))[/B] but the titleBoard take all …

0
75
Member Avatar for MxDev

Hi guys, Is there any javaFX code generator other than [ICODE]jfxbuilder[/ICODE]??? And Is someone here knows any news about [ICODE]javaFx authoring tool[/ICODE], like the release time, cause I got nothing from [ICODE]google[/ICODE]. Thanks [EL-Prince]

0
60
Member Avatar for Menster

Hi guys, I am trying to create an application to serve on the web which is an integration of a java application and some php for mostly presentation functionality. Has anybody here successfully done anything like this before, and if so how? Please help. In dire need here. Thanks in …

Member Avatar for kireol
0
184
Member Avatar for Beasts

Hey, I have been using youtube to learn how to use the JPanel, as the prof has not given a lesson regarding that… The project was a game, which I have finished, but for bonus I can do some sweet sweet graphics. Anyhow the game saves the data in arraylists …

Member Avatar for Ezzaral
0
97
Member Avatar for Clawsy

Hello, I build my java desktop application using NetBeans 6.7, visually. So I click on the Frame -> Events -> KeyTyped and I add a new handler. The problem is the key events are not detected! My components are Swing components. Why is this happening?? :( [CODE] private void formKeyTyped(java.awt.event.KeyEvent …

Member Avatar for Clawsy
0
439
Member Avatar for gibbsfan19

I finally got it in order for smooth compilation, but nothing gets converted [CODE] import java.util.Scanner; public class nizadi_Lab8 { public static void main(String[] args) { if(args.length > 0) { try { Integer.parseInt(args[0]); } catch(NumberFormatException f) { System.out.println("wrong format"); } } else { System.out.println("no arg"); } } public int printBin(int …

Member Avatar for stevelg
0
147
Member Avatar for feoperro

Hi, Could someone please tell me how to read from a CSV file? Also, how to update (write) to a CSV file? Thanks, -Ashton.

Member Avatar for feoperro
0
203
Member Avatar for feoperro

Hi, I was wondering how developers have stable backgrounds, with scrollable foregrounds. i.e. [URL="http://forums.devx.com/"]http://forums.devx.com/[/URL] Please could someone give a basic piece of sample code to demonstrate this. Thanks, -Ashton.

Member Avatar for feoperro
0
300
Member Avatar for ramjeev

For synchronized block, an object has been passed.The question is,Why & when it is passed & what is the purpose of passing an object? -Thanks in advance

Member Avatar for ramjeev
0
114
Member Avatar for shashikant.v

hi I have to create a help menu in my project for that i had made html pagesand my problem is I cannot connect that html pages from help menuitem. pls helpme and guide me for that. thanks for ur response shashikant.v

Member Avatar for AndreiDMS
0
75
Member Avatar for vicky9

in jsp,i have "p_id","name","date" and "products"."p_id is primary key. i executed jsp page with oracle. but one thing i had no fields and submit button. pressing submit query,next page i had blank page , plese how to do it?

Member Avatar for peter_budo
0
33

The End.