User Profile
Collapse
-
Great :) good suggestions. -
Mapping the data
Hi I want to flag my data files:-
Here is how the input is:-
Code:100154331 100155428 * 54873 Andrew 100159575 100159618 " 54873 Andrew 100174454 100174676 # 391059 Andrew 100174754 100174815 > 391059 Morgan 100172344 100174815 ? 391059 Morgan 100316599 100316680 = 178 Austin
Code:100154331 100155428 * 54873 Andrew
-
Some Runtime errors coming even though compliling and popping up a new wndw
It is now compiling as well as popping up the blank output window but lots of paint related runtime errors are coming which I am not able to understand why !!! I have put all the error messages under my program code. Can you plz guide me what they mean ...
Code:import java.io.*; import java.util.ArrayList; import java.util.Arrays;
Leave a comment:
-
Problem while creating rects !!
Hi... Ok I have created another program which is off course a simple. It is creating rects but then fails somewhere. Can you help me to identify the problem.
Code:import java.io.*; import java.util.ArrayList; import java.util.Arrays; import java.io.File; import java.io.FileNotFoundException; import java.io.BufferedReader; import java.util.List;
Leave a comment:
-
drawing ??
Well I think I am drawing by calling my methods which contain the syntex to draw along with the values ..!! If I am not doing so then what should I do ?? What else should I do make it draw ??Leave a comment:
-
Methods and arraylist working but no rectangles being drawn ??
Now my methods and arraylists seem to work perfectly after printing there values inside paintcomponent method.Why arn't any recatngles being drawn ???
Code:import java.io.*; import java.util.ArrayList; import java.util.Arrays; import java.io.File; import java.io.FileNotFoundException; import java.io.BufferedReader; import
Leave a comment:
-
Problem
Now my biggest problem is that my Arraylist are returning NULL. Howto deal with this ?? How should I make it return the values instead ? Even though I am trying to do so inside my methods ...??Leave a comment:
-
Corrected code
I have corrected some of my mistakes which happened while pasting into ur forum and changing names of some methods. Anyway here is the corrected code. Can you now help me to get it right. I need help badly.
Code:import java.io.*; import java.util.ArrayList; import java.util.Arrays; import java.io.File; import java.io.FileNotFoundException; import java.io.BufferedReader;
Leave a comment:
-
Unknown program behaviour
I have written another program which is doing almost the same thing. It reads the drawrects() method but when it reaches the 2nd and 3rd method it shows null , null. I modified the input file by replacing colours instead on names ..andrew etc... Why is this null coming while reading 2nd and 3rd method. If you will run the program you will come to know what is happening.
Code:import java.io.*;
Leave a comment:
-
Error message of modified code
This is my modified code. Please find the error message below:-
Code:import java.io.*; import java.awt.*; import javax.swing.*; import java.awt.Color; import javax.swing.JFrame; import java.util.ArrayList; import java.io.BufferedReader; import java.util.HashMap; import java.awt.geom.Rectangle2D; import java.awt.Rectangle;
Leave a comment:
-
Error in Code Java 2D
Hi can anybody help me to correct errors in this code. I have written where I am having problems inside the code. I have reached this far doing this code:-
Code:import java.io.*; import java.awt.*; import javax.swing.*; import java.awt.Color; import javax.swing.JFrame; import java.util.ArrayList; import java.io.BufferedReader; import java.util.HashMap;
Leave a comment:
-
File Managment Functions
Hi,
I need to develop the functions below for a server in Java. Is there any package or class that I can use ?
I just had a look at one namely...
com.mindbright. net.ftp.
Can you guide me about developing these functions below:-
1) Retrieve file from server
2) Add, edit, delete a file from server.
3) upload / download file from server
4) Logon and version control
Regards... -
returning values from Arraylist
Hi. I want to return values from multiple Arraylist. How can I do that ? later I want to use these values in another class. Can somebody help
Code:class myClass{ public ArrayList<Rectangle> readFile()throws Exception { String n = null; // List draw; try{ BufferedReader fh = new BufferedReader(new FileReader("myInputFile.txt"));
-
-
Reading values from the file in Jpanel and creating a fuction
Hi,
I need help to automate my code to take data from input file. Also I need to create it as a function so that I can pass it to some other program. I am new to Java so having a bit limitation to do this.
My tab delimited Input File looks like this:-
21 p 13e 0 62 1 580001 andrew -14.53 -13.95 0 0
21 p 13d 63 124 580002 1160001 andrew -13.95 -13.37 0 0
21 p 12g 311 364 2900000 3385714 john -11.63 -11.14... -
Thanks JosAH for ur help I really appreciate but it won't solve my problem :) lol.
Thx
cowboyLeave a comment:
-
Plotting non overlapping adjacent rectangles
Hi,
I am trying to write a Java program to plot rectangles with different colors side by side non overlapping but unfortunately I am unable to do that as of now.
Suppose I want to create 3 rectangles:-
100 - 200
200 - 300
300 - 400
I want to have 3 rectangles non overlapping and adjacent to each other with 3 different colors. I am new to Java so don't know howto do that ?!
I would appreciate...
No activity results to display
Show More
Leave a comment: