Posts
 
Reputation
Joined
Last Seen
Ranked #905
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
84% Quality Score
Upvotes Received
9
Posts with Upvotes
9
Upvoting Members
7
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
1
5 Commented Posts
~43.3K People Reached
About Me

I am always ready to help

Interests
Formula 1
PC Specs
Ubuntu an Windows XP Professional, 2.4GHz Core 2 Duo, 4GB RAM
Favorite Tags
Member Avatar for M.S.A 

Maybe you can try this to read your file [CODE] File fil = new File(FileName); FileInputStream fis = null; BufferedInputStream bis = null; DataInputStream dis = null; try { fis = new FileInputStream(fil); // Here BufferedInputStream is added for fast reading. bis = new BufferedInputStream(fis); dis = new DataInputStream(bis); //Then …

Member Avatar for Gergely_1
0
2K
Member Avatar for hsaraiya

[QUOTE=hsaraiya;1088848]I am trying to Draw a graph which can read data values from Text files. In which i want to consider 1st column as X-axis and 2nd as Y-axis.[/QUOTE] You can use a charting API. There are many like JFreeChart (my personal favourite), JMathTool, JChart, etc. You can also develop …

Member Avatar for JamesCherrill
0
2K
Member Avatar for ardi_lucy

[QUOTE=ardi_lucy;1079477]help me plz i need to sort ip address, am try to sort in java.util.Arrays.sort() but it not correct for eg [CODE] String st[]={"10.4.23.16","10.4.23.9"}; java.util.Arrays.sort(st); for(int i=0;i<st.length;i++){ System.out.println(st[i]); } [/CODE] the out put is 10.4.23.16 10.4.23.9 plz give idea[/QUOTE] The Algo which you a using will sort the string array. …

Member Avatar for anita_2
0
1K
Member Avatar for jrosh
Member Avatar for gunjannigam

Can anyone suggest a open source llibrary for plotting 3D graphs . More precisely dynamic graphs. I was using jfreechart but that is only for 2D plots. I need a library so that I can plot 3D graphs.............

Member Avatar for AppB
0
141
Member Avatar for gunjannigam

I am attaching my complete code, which I was currently developing. I am not able to get why doesn't my KeyListener work. None of the KeyListener events are fires on pressing the keyboard. Please have a look and tell me the flaws in my code [ATTACH]22414[/ATTACH]

Member Avatar for gunjannigam
0
7K
Member Avatar for gunjannigam

In my application, I have to draw 25 images of 700*500 pixels. I am trying to use ImageIO.read() method, which is called by creating another Thread. Its taking too much time to read images. I thought since i am calling the image read functions by creating another thread my another …

Member Avatar for mKorbel
0
836
Member Avatar for gunjannigam

I want to have two textfields which will have the following validations 1) Both should be Integers 2) The value in one textfield should be a integer multiple of other I have used two JFormattedTextFields to this. This is what i have done till now [CODE] NumberFormat updateFormat,sampleFormat; updateFormat = …

Member Avatar for mKorbel
0
265
Member Avatar for gunjannigam

I have written a code which uses RXTX Serial API for communication. Now I want to distribute a jar file for my program. The problem is that since I have used RXTX Serial API jar & dll files for this needs to be copied in java home. I wrote a …

Member Avatar for NormR1
0
250
Member Avatar for gunjannigam

I am using JPQL to write queries. I have an SQL as [CODE] SELECT * FROM `powergenerationdatapoint` AS pgdp INNER JOIN ( SELECT MAX( TIMESTAMP ) TIME FROM powergenerationdatapoint GROUP BY solarpanel_id )maxtime ON pgdp.timestamp = maxtime.time WHERE solarpanel_id IN ( SELECT id FROM solarpanel WHERE solar_plant_id =1 ) GROUP …

Member Avatar for mKorbel
0
95
Member Avatar for Jessurider

[QUOTE=nidhish31588;1496611]still not working.............. [CODE] import java.applet.Applet; import java.awt.*; import java.awt.event.*; //<applet code=newt.class width=1200 height =1200></applet> public class newt extends Applet //implements ActionListener { BufferedImage img = null; public void init() { try { img = ImageIO.read(new File("D:\Winter.jpg")); } catch (IOException e) {} } public void paint(Graphics g) { g.drawImage(img, 10, …

Member Avatar for sourabh17
0
418
Member Avatar for gunjannigam

I need yo draw a shape as attached in the image using Java graphics. I am struggling with the curve part. The curve part is a arc of an circle whose radius and center is known. But I have to paint the region out side of that arc. How will …

Member Avatar for gunjannigam
0
339
Member Avatar for gunjannigam

I have to draw a Circular gauge using Java Graphics. Somewhat similar to the attached image, the circular gauge without the black border as in image. I tried to use two methodologies but none of them is working perfectly Firstly, I tried to draw everything using Java Graphics and then …

Member Avatar for gunjannigam
0
491
Member Avatar for nickcolb

The flaw in your algorithm is that you are not multi[lying your change by 100. You need to multiply the change by 100 if you calculating the coins using Cent Value of the coin

Member Avatar for gunjannigam
0
96
Member Avatar for gunjannigam

I have a php page, which has different forms. One of my forms contains a table of data. I want only this form (not the complete page) to be updated in a fixed period of time. How could I do this?

Member Avatar for diafol
0
72
Member Avatar for gunjannigam

Hi, I am a novice programmer at PHP. I want to redirect my webpage to another webpage. The problem is that First I want to output a file as an attachment and then redirect the web page I have used this code to output the attachment file [CODE] header("Content-Disposition: attachment; …

Member Avatar for gunjannigam
0
149
Member Avatar for suger

[QUOTE=suger;1400075]Hi Guy The problem is still not solved, anyone has more ideas? Thanks heaps[/QUOTE] For your first problem where you cannot see the polygon is because you have not entered valid coordinates for polygon. Enter the coordinates of polygon in clockwise or anticlockwise manner. Secondly to close your frame add …

Member Avatar for suger
0
87
Member Avatar for gunjannigam

I have saved generated an image using a byte[] by using [CODE]Toolkit.getDefaultToolkit().createImage(image);[/CODE] where image is a byte[]. The image generated by this is of java.awt.Image instance. Now I want to save this image into my local hard disk as JPEG (the image was decoded as JPEG). How would I do …

Member Avatar for gunjannigam
0
158
Member Avatar for gunjannigam

I have a database hosted at a remote location. I want to access that database. But I keep getting the error [CODE] com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user 'username'@'%' to database 'db' [/CODE] This is the code that i have written [CODE] Connection con = null; Class.forName("com.mysql.jdbc.Driver"); String username = "username"; …

Member Avatar for gunjannigam
0
2K
Member Avatar for gunjannigam

When we use File.getAbsolutePath() we get the path of file as C:\BlahBlah\Blah.txt. But I want the path name as C:/BlahBlah/Blah.txt i.e instead of backward slash "\" i want a forward slash "/" in the path. How to get this. I tried to create a parsefile method. [CODE] public String parsePath(String …

Member Avatar for JamesCherrill
0
182
Member Avatar for gunjannigam

I am writing some data to a file using FileWriter and BufferedWriter. I want that while writing in the file if somebody else wants to open the file in MS Excel, it should open only in read only mode Here is a snippet of my FileWriter and BufferedWriter [CODE] while(true) …

Member Avatar for masijade
0
153
Member Avatar for gunjannigam

Is it possible to access a TCP server running outside our LAN through internet? I thought we could use the router IP Addess(which I got from whatismyip.com) in the class Socket Constructor[CODE] Socket(InetAddress address, int port) [/CODE]. But client wasn't able to find the server. Has anybody successfully achieved this …

Member Avatar for musthafa.aj
0
649
Member Avatar for gunjannigam

I want to Run a ftp server on my machine. My FTP Client will send the data to FTP Server (not a file but byte data). The FTP Server should listen to the data, store it in a file on the local hard disk. How can I wrote a code …

Member Avatar for NormR1
0
58
Member Avatar for gunjannigam

I have old Toshiba Satellite A-80 Laptop with XP Home. I want to format my system and install Windows XP again. The problem is that my CD/DVD ROM is not functioning. I dont have an option to boot from USB in my BIOS. I dont want to purchase USB CD …

Member Avatar for finito
0
108
Member Avatar for gunjannigam

I have a class which extends JPanel and implements ActionListener. I am having 2 menuItem. When I implemented the abstract method actionPerformed(ActionEvent e) and used repaint if the event source are the menuItem paint method is not called. What can be the possible reasons? This is what I am doing …

Member Avatar for JamesCherrill
0
111
Member Avatar for gunjannigam

I have a 2D image of a map. What I want to do is 1) Paint this image in a 3D Canvas. And then rotate it with the help of mouse 2) Secondly do some path planning, i.e If I select 2-3 points in space on top of that map …

Member Avatar for cmliu2004
0
82
Member Avatar for jemz

[QUOTE=jemz;1183787]hello can you help me i want to make my program to executable file is there a software for this to create a jar file?...hoping for your positive responds...[/QUOTE] IDE like netbeans create your Jar file when you build your peoject. [URL="http://netbeans.org/kb/articles/javase-deploy.html"]This will help you[/URL]

Member Avatar for Ezzaral
0
76
Member Avatar for gunjannigam

I want to Edit the Title of Save Dialog Box in JFileChooser from Save to Something Else. How is it possible?

Member Avatar for Freaky_Chris
0
82
Member Avatar for gunjannigam

Hi, I need a charting API which can plot static Line Graph for 300 million points. API should support zooming and panning of axes comfortably after plotting 300 million points. I tried with JFreechart but the result is not good for even 100 million points. Does anybody have any Idea …

Member Avatar for gunjannigam
0
106
Member Avatar for omar isaid

First of all always use Code tags. If you only want to hide your frame and dont want to close your application you can use frame.setVisible(false) in your done button ActionListener so that you application wont exit only the frame will be hidden

Member Avatar for omar isaid
0
874