35,618 Topics

Member Avatar for
Member Avatar for iXmerof

Hi, I'm making an app that uses Collections. Everything went ok until now, what I've done: I've got a class that initializes 3 strings, those strings are private, so I have made 6 public functions that sets or reads values from those strings. Next I've made a hashmap, keys are …

Member Avatar for iXmerof
0
156
Member Avatar for gopikrish

I am trying to publish my ear and war modules into Oracle weblogic portal 10.3.0.0 server using workshop. I am using pointbase DB. But publishing failed since I was getting the following error, weblogic.application.ModuleException: Exception preparing module: EJBModule(netuix.jar)Unable to deploy EJB: ProxyPagePersistenceManager from netuix.jar: Exception while attempting to deploy Security …

0
77
Member Avatar for pro_learner

Guys,i want a small help from you.I have a created a database in MS Access and now i want to connect it to with Java Application by using ODBC Administartor.But when opens it,it doesn't show any driver for MS Access DBs.Do u guys know any driver for that.I'm using Windows …

Member Avatar for pro_learner
0
203
Member Avatar for sdragon

Hi Everyone, I'm new here and also new in using Java. I want to make an iterator without using the default methods hasNext, hasPrevious. Here is what I've already done using the default methods: [CODE]import java.util.*; public class HomeIterator{ public static void main(String[] args) { int i = 0; ArrayList …

Member Avatar for sdragon
0
275
Member Avatar for eLu-sive

hi, please help me debug this, i am trying to add one row from one table to another at the same delete it from the table i am getting it from. (cut and paste kinda thing). Only one part works, i can only copy and not delete. [CODE] int recordAffected …

Member Avatar for eLu-sive
0
238
Member Avatar for javaNooblet

Hi all, If I write a java program inside of eclipse, how can I run that program outside of it, rather than just hitting the run button in eclipse. So, I can give others the program to run on their computers. Thanks!

Member Avatar for javaNooblet
0
258
Member Avatar for mbrcarnation

Hi everyone, I'm working on a project for my computer science class and we're supposed to make a java applet game. I'm not very far in the game quite yet, but I'm trying to make sure that the mouseListener and the rectangles work before I continue on with the game. …

Member Avatar for emmas4impact
0
229
Member Avatar for emmas4impact

Hi everyone, i'm trying to make a sound each time a ball touches the lift and right of a frame but when i use clip and try to use the sound class it sound from right then left the in middle and then stop. i Can really use some help. …

Member Avatar for JamesCherrill
0
210
Member Avatar for javaNooblet

Hi All, I am currently trying to figure out to finish this project. Below is my code that I have so far. There are some blank methods that I am not sure where to even begin on how to complete them. I have a description of what the methods should …

Member Avatar for NormR1
0
2K
Member Avatar for branflake

I was working on some code to produce a 10 x 10 multiplication table with equal tabbing and spacing between rows. I can't seem to get more than one column on my table though. I did some other research but wasn't able to find a helpful answer. Any help is …

Member Avatar for thines01
0
148
Member Avatar for bradyramone

Is it possible to get a user's mac address when he visits my website through a JApplet?

Member Avatar for stevanity
0
116
Member Avatar for warlord902

I have got everything right and my project is compiling. But I am experiencing problem with servlets, when I right click on a servlet and click on run in netbeans then I get following two error: 1) Class "Servlet1" neither has a main method not it a servlet specified in …

Member Avatar for warlord902
0
3K
Member Avatar for fausto1234

I have to write a program that takes the smallest number from a list of numbers and puts it on the first position. [CODE]public static void minToFront (ArrayList<Integer> minInteger) { int result = 0; int min = minInteger.get(0); for (int i = 0; i < minInteger.size(); i++) { if (minInteger.get(i)< …

Member Avatar for CSloan7597
0
189
Member Avatar for hatebin

Hi, I'm trying to write a program in Java to send AT commands to my mobile and recive information via BlueT from it. I've already got a program to search and fide blueT Devices, and thats how i receve: 1.name of device 2.blueTooth Adress How to use this two things …

Member Avatar for hatebin
0
383
Member Avatar for dennysimon

hello all when I do javac ,I often warn to use -Xlint ,and then the result has one or more warning. As example I attach the javac's result below.The question is how to eliminate warning thank you denny C:\LJava>javac -Xlint -d build src\KwitansiJava04.java warning: [path] bad path element "%classpath%": no …

Member Avatar for JamesCherrill
0
382
Member Avatar for lele07060

This is saying that the sum is 0.0 but I am not sure if it is right. Can someone let me know please. Here is the code i used: [CODE]import java.util.Scanner; public class Lab424 { public static void main(String[] args) { int i; float sum; i=3; sum=0; while(i<=99) { sum=sum …

Member Avatar for stultuske
0
128
Member Avatar for syeda amna

hi Is this possible to send a request to servlet from socket client? I use request.getInputStream method to get client request. I got an error HTTP/1.1 400 Bad Request Server:Apache-Coyoyte/1.1 Transfer Encoding:chunked Date:Fri,04 Nov 2011 Connection:close How can I achieve my task??

Member Avatar for syeda amna
0
190
Member Avatar for eagles39

I am creating a simple GUI with a few buttons and a text field. I set the window size to to 500x500 and the text field fits on the South perfectly but once i resize the window the text field stays the same size is it possible to make to …

Member Avatar for harinath_2007
0
170
Member Avatar for dennysimon

Hi all in code below ,after I got the object aobj ,how can I identify which component aobj actualy is.And where is it Location ? thank you denny [CODE]CaretListener listener = new CaretListener() { public void caretUpdate(CaretEvent caretEvent) { Object aobj=caretEvent.getSource(); Component comp=aobj. System.out.println(aobj.toString()); } };[/CODE]

Member Avatar for dennysimon
0
857
Member Avatar for BurgerBob

Hi guys, I'm taking a Networking & Internet Systems module... have little experience working with java and am trying to work through an assignment... hopefully you can help! The task is to implement a basic UDP chat system. Create a simple chat system which uses the network (at least locally) …

Member Avatar for CSloan7597
0
8K
Member Avatar for ghost135

SO ive searched the web for a tutorial on a simple ftp server and client made in Java and have only been able to find ones that show you how to make a ftp client for apache , however i want to make a ftp server in Java as well …

Member Avatar for NormR1
0
181
Member Avatar for lele07060

I'm trying to make it print out like this ***** **** *** ** * but it keeps on coming out like this: ***** **** *** ** ** here is the code i used [CODE]public class Asterisk { public static void main(String[] args) { for (int i=5; i>0;i--) { System.out.println(""); for …

Member Avatar for thines01
0
122
Member Avatar for lbgladson

I have a program to write an application that takes the initial balance, annual rate, and number of years and finds the balance of the account at the end of each year. I have the following code but my Annual Rate label is in the incorrect place, the calculate button …

0
77
Member Avatar for Tajinderpal

I have made a media player in java using jmf which plays mp3,midi,mpeg1,mpeg2&avi. How to play the [COLOR="green"]mpeg4[/COLOR].Also i want to make a [COLOR="Green"]playlist[/COLOR] for it which can add,delete and save the songs in the playlist.here is my code of media player..... [code]import javax.media.*; import java.awt.*; import java.awt.event.*; class MediaPlayer …

Member Avatar for JamesCherrill
0
197
Member Avatar for zainji

Write the ideal weight calculator so that height in inches is entered by using a slider. Use the approximate formula: W = H2 / 30 , for female W = H2 / 28 , for male where W is the ideal weight in pounds, H is the height in inches …

Member Avatar for hfx642
0
90
Member Avatar for Capn_Pipp

#1 - I'm a newb to java :( #2 Im having a problem getting getting my JTable to update when the user edits a cell. Im using a abstract model which is basically what the sun tutorial did word for word( i used a abstractmodel so i could make columns …

0
137
Member Avatar for VengefulToast

Hi members, just a simple question, how would I show a constant in an UML diagram? For example, here is a double field the class contains. - radius : double But how would the constant PI (3.14159...) be shown? - PI : constant?? Future thanks for the responses!

Member Avatar for niranga
0
1K
Member Avatar for madhub2v

how to lookup datasource which is created in glassfish with some jndi/dbname name. I am trying to get datasource writing code in a servlet like this Datasource datasource = (Datasource)initialContext.lookup("jdbc/customer"); Connection con = datasource.getConnection(); but it is throwing NameNotFoudExcepion for this context . how can access datasource created outside of …

0
121
Member Avatar for Joey_Brown

Hello :) Lets say I have a text file that looks like this : [CODE]*DataString1 info1;info2;info3 //newline delimiter *DataString2 info1;info2;info3;info4 //newline delimiter . . . //and so on [/CODE] What is the best container with which I could process and manipulate the information stored in this file? Thank you for …

Member Avatar for JamesCherrill
0
92
Member Avatar for Jessurider

i've created a project .....in which on executing the h.java the second window3.java appears slowly as you can see that by running the below source code.............but the problem is that the second form i.e window3.java on displaying does'nt shows the noire look and feel environment as well as no noire …

Member Avatar for masijade
0
333

The End.