32,199 Topics

Member Avatar for
Member Avatar for freesoft_2000

Hi everyone, Currently i am trying to connect to a site using ftp using the below method to upload a file [code] URL url = new URL("ftp://user01:pass1234@ftp.foo.com/README.txt;type=i"); URLConnection urlc = url.openConnection(); OutputStream os = urlc.getOutputStream(); // To upload [/code] Now my question is how from java can i create or …

Member Avatar for jwenting
0
139
Member Avatar for crestaldin

[COLOR="Navy"] Hello everyone, I have two classes Student and Courses. Class Students creates an object of class Courses since each Student will take some Courses. How can I call an object of class Courses in class Students such that each Student class will have an instance of class Courses which …

Member Avatar for Phaelax
0
102
Member Avatar for anti_genius

Hi, Can someone tell me how i can implement a mouselistener interface on a frame. I have a program that loads an image on a canvas. now i want to get the screen coordinate where user clicks on the image. I can do this using an applet but i want …

Member Avatar for Phaelax
0
225
Member Avatar for anti_genius

Hi, Can someone tell me the code to calculate the distance between two pixel points. If i enter Point(x1,y1) and Point(x2,y2) then i get length of the line between them (in pixels). Thanks.

Member Avatar for anti_genius
0
200
Member Avatar for ayoub

Hello! i'm using the API JIMI (Java Image Mangement Interface) and i would like to convert any image like gif, jpg, bmp,... to an image *.ico,i have used this first part of source code in my program [code] Image img=Jimi.getImage("a.jpg"); Jimi.putImage(img,"a.ico"); [/code] but i have got this Exception "Cannot find …

0
79
Member Avatar for Lunaticrr

import javax.swing.*; public class Pool { public static void main(String args[]) { int input1; int input2; int input3; int Volume; input1=JOptionPane.showInputDialog(null,"Enter the length of the swimming pool:"); input2=JOptionPane.showInputDialog(null,"Enter the width of the pool:"); input3=JOptionPane.showInputDialog(null,"Enter the average depth of the pool:"); Volume=input1*input2*input3; System.out.println("The volume for the pool is: "+ Volume); } …

Member Avatar for karthikbgl
0
131
Member Avatar for Declan123

I have been trying to create an excutable jar file. When trying to added new data to the manifest file it give me an error say 'invalid header field name: |||Manifest-Version:'. Iam using the command line: jar -cfm App.jar META-INF\MANIFEST.MF mainui\*.class the mainfest file looks like this Manifest-Version: 1.0 Created-By: …

Member Avatar for Declan123
0
171
Member Avatar for sonawane.prakas
Member Avatar for Big John

I'm just learning java and this is my first sort program. I can't get it to run. I sure could use some help. public class SortCharArray { public static void main(String[] args) throws Exception { char[] someChars = new char[10]; int x; for(x = 0; x < someChars.length; ++x) { …

Member Avatar for kimbokasteniv
0
279
Member Avatar for lamees

My problem is a part of my actual program,but it is not all of it.it may seem simple to expert users of java.The problem is to access a folder,count number of files in it,determine their sizes and store their names in an array,and it 'll be good to determine also …

Member Avatar for kimbokasteniv
0
103
Member Avatar for freesoft_2000

Hi everyone, I am currently trying to use a JTextPane as a cell renderers for a JTable but it does not seem to work although the program compiles. I alsways get an error stating class cast exception saying that i must cast the editor component to JTextField instead of a …

Member Avatar for Phaelax
0
213
Member Avatar for Sisil

hi, im having trouble returning an array of objects, im trying to create a method that returns an array of objects which are then used by the Client class to output data i have a class customer, which holds all the information, which is to then be passed on request …

Member Avatar for jwenting
0
85
Member Avatar for Sanchez10

I am trying to write a multithreaded program to generate Fibonacci sequence. I need a parent thread and 3 child thread which will generate three different Fibonacci sequences of different lengths. The parent thread will then display the output of the child threads. Can anyone help me get started?

Member Avatar for masijade
0
49
Member Avatar for PPaul1

I'm trying to figure out how to add a reset button and a calculation button to my program. I'm lost here. The program works when the user put in the loan amount, lenght of loan and interest rate. I need a button to reset the fields so another user can …

Member Avatar for masijade
0
270
Member Avatar for brittoonline

:sad: hi Can anyone tell me the steps to do before deploying a MDB application like how to create Topic and Queue JNDI.. or any other steps like that we should do in the WEBLOGIC 8.1 CONSOLE WINDOW before deployment.. i have a JMS Client program,A helper program and a …

Member Avatar for brittoonline
0
88
Member Avatar for lamees

My problem is a part of my actual program,but it is not all of it.it may seem simple to expert users of java.The problem is to access a folder,count number of files in it,determine their sizes and store their names in an array,and it 'll be good to determine also …

Member Avatar for John A
0
96
Member Avatar for sonidhanni

hi!! my problem is im not able to start java in my pc. i am installing jdk1.5 in my pc n wenever i try to run my program by command javac example.java the program compiles bt when i try to intrepet by java example it shows an error [no main …

Member Avatar for p.bondam
0
137
Member Avatar for iwlu

[COLOR=#333399]A bit of problem here, if anyone can help, I would appreciate any and all help with this. Thank you in advance.[/COLOR] [COLOR=#333399]Now I have no errors but when I execute the program I get this:[/COLOR] [COLOR=#333399] [/COLOR] [B]Big Bank: Monthly Checking Account Activity ----------- Account ----------- Beginning With- Ending …

Member Avatar for p.bondam
0
139
Member Avatar for Cerberus

Hi i have a piece of code that checks to see if an indexed point in a string is white space.... if(Character.isWhitespace(c.charAt(0))) { return true } and i want to use the same technique to return true if an open chevron '<' is at a point in the document but …

Member Avatar for iamthwee
0
87
Member Avatar for krauz2

[COLOR=#000000]I am having trouble getting this program to work. This is my first applet and I can’t seem to get my mind around how to get the commands in correct format. I have completed this program in application and gui with no problems, but applet format is not working in …

Member Avatar for p.bondam
0
135
Member Avatar for m0om0o85

hi.. the code below are in working condition.. means can be compiled & run.. when drag the scrollbar, the "Welcome To Java" string message will be move left, right or up, down depend on which scrollbar u drag.. just wanna ask if the "Welcome To Java" text be changed to …

Member Avatar for m0om0o85
1
487
Member Avatar for topper86

I made the mistake of downloading the new version of Java. Since then i have been unable to get into my chat rooms. All i get is a red cross in the top left hand corner. I was told to go to vistaviews.net/fix and when the javapatch window comes up, …

0
52
Member Avatar for Okie[clueless]

Ok is there link to any battle simulator in Java or anyother thing for that matter than can simlate an RPG (Modern tech) battle? Just RP stuff is getting hairy (Nationstates) and something that can actually sim would be much appreciated thanks okie

Member Avatar for jwenting
0
106
Member Avatar for rpjanaka

hi i want to know what happen if we do not "setAutocommit(true)" after a transaction.. at the begining of the transaction it is "setAutocommit(false)"; but then at the end of the transaction if i do not setAutocommit(true), is that will affected for the anoter transaction comming next....? please help me......

Member Avatar for jwenting
0
230
Member Avatar for camdonsquire

Hi, thanks for the welcome. I hope you can help me with ,y java pursuit. [COLOR=#000000]I am trying to create a class Date which will eventually contains a single method called showMonth() which will display a calendar for a particular month in the following format ([/COLOR] [COLOR=#000000] January[/COLOR][COLOR=#000000]S[/COLOR][COLOR=#000000]M[/COLOR][COLOR=#000000]T[/COLOR][COLOR=#000000]W[/COLOR][COLOR=#000000]T[/COLOR][COLOR=#000000]F[/COLOR][COLOR=#000000]S[/COLOR][COLOR=#000000] [/COLOR][COLOR=#000000] [/COLOR][COLOR=#000000]1[/COLOR][COLOR=#000000]2[/COLOR][COLOR=#000000]3[/COLOR][COLOR=#000000]4[/COLOR][COLOR=#000000]5[/COLOR][COLOR=#000000]6[/COLOR][COLOR=#000000]7[/COLOR][COLOR=#000000]8[/COLOR][COLOR=#000000]9[/COLOR][COLOR=#000000]10[/COLOR][COLOR=#000000]11[/COLOR][COLOR=#000000]12[/COLOR][COLOR=#000000]13[/COLOR][COLOR=#000000]14[/COLOR][COLOR=#000000]15[/COLOR][COLOR=#000000]16[/COLOR][COLOR=#000000]17[/COLOR][COLOR=#000000]18[/COLOR][COLOR=#000000]19[/COLOR][COLOR=#000000]20[/COLOR][COLOR=#000000]21[/COLOR][COLOR=#000000]22[/COLOR][COLOR=#000000]23[/COLOR][COLOR=#000000]24[/COLOR][COLOR=#000000]25[/COLOR][COLOR=#000000]26[/COLOR][COLOR=#000000]27[/COLOR][COLOR=#000000]28[/COLOR][COLOR=#000000]29[/COLOR][COLOR=#000000]30[/COLOR][COLOR=#000000]31[/COLOR][COLOR=#000000] …

Member Avatar for p.bondam
0
101
Member Avatar for krauz2

Hello everyone. I have been working on this program for over a week. I really need some help getting this done. I was able to get the math.random to work but when I run my program as an applet I have a text box that I dont know how to …

Member Avatar for p.bondam
0
156
Member Avatar for foxy xx

me agian lol I posted on here over a week ago about a java assignment.. thanks to those who offered help i really appreciate it even tho it wasnt much help to me at the time ;) ... i am ashamed to say, that even with all the great advice, …

Member Avatar for p.bondam
0
98
Member Avatar for gmpjames

Hi everyone I'm new here and was wondering if anyone could help me please. I am trying to implement dasher in java. Here is the link to dasher [URL]<snipped> I have already set-up the main GUI components and have left the BorderLayout.CENTER for the main program. I have also written …

Member Avatar for Ancient Dragon
0
35
Member Avatar for JesQi

HI, i'm new in JAVA i creating a "GUESS NUMBER GAME".. which allow user 3 changes to guess.. i'm new to java so i need a simple coding... i has done the part but i dun wan to combine all function in main... this is my problem, i hope u …

Member Avatar for iamthwee
0
82
Member Avatar for Ice4fire

Hi people, I'd really like to have a crack at learning java. Ive never touched it before in my life, so can anyone point me to a site where i can take my first steps at learning.. Thanks guys Sorry if this seems a bit of a wasted post Tony

Member Avatar for Ice4fire
0
103

The End.