37 Discussion / Question Topics

Remove Filter
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
144
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
8K
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
865
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
276
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
252
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
97
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
345
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
499
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
76
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
150
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
162
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
185
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
156
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
653
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
60
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
123
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
114
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
84
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
84
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
109
Member Avatar for gunjannigam

I am using Ubuntu 9.04. I want to shutdown my PC using Java, when some Event is called. Please suggest what could be done.

Member Avatar for gunjannigam
0
105
Member Avatar for gunjannigam

I have RGB information about the pixels in a line. I need to draw the images in JPEG or PNG or BMP format using these information from the pixels.I dont know how to do this in java. Somebody help me out on how to start solving it out

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

I have a code in Java 3D through which I can draw a static(all verticies are known before hand) 3D curve. But I want to draw a dynamic(vertices specified at they at run time) curve, and the number of vertices keeps on adding up. This is the code for static …

0
62
Member Avatar for gunjannigam

How to draw a circluar arc of given radius say 20 passing from two Given points. I have seen the function Arc2D.Float but can figure out how to find the required parameters for the contructor and also for QuadCurve2D cant figure out the control point.

Member Avatar for james chaco
0
94
Member Avatar for gunjannigam

I have drawn a cirlce and 2 line which intersects the circle using 2D Graphics. Now I want to draw an arc between the intersection point. The attached pic can show very clearly wht i want. The black portion is drawn. The red part is to be drawn. The radius …

Member Avatar for gunjannigam
0
88
Member Avatar for gunjannigam

My problem statement is to draw a map from the given images whose Latitude and Longitude information is stored in database. Initial point Latitude and Longitude is given and then they will change in every 200 ms. I have to plot a map once and on top of the map …

0
64
Member Avatar for gunjannigam

I have a file which is already written till some lines. I have a blank line at the start of the file and I want to write in that line using Java. I thought creating a FileWriter object by using FileWriter(filename, true) and then a BufferedWriter object will start writing …

Member Avatar for javaAddict
0
104
Member Avatar for gunjannigam

I have a toolbar and various buttons in. There is always a dashed line displyad along the borders on last button clicked. Aslo there are some sliders in my panel. When I try to adjust the value of a slider it also has a dashed border. This border is only …

Member Avatar for javaAddict
0
102
Member Avatar for gunjannigam

I want to implement the following Task 1) Read till end of file 2) In each Line of the file there is a time mentioned. You need no call a method( code of which I have already written) 3)Wait for the time mentioned in that line of file and then …

Member Avatar for javaAddict
0
86
Member Avatar for gunjannigam

I am trying to read from a text file which of size 1 MB, and contains 5000 lines of data. Following is the code of class which I am using to read from the file [CODE] public class PlayFile extends Timer implements ActionListener{ File filename; BufferedReader out; //float frameid,prev_frameid; public …

0
62
Member Avatar for gunjannigam

I want to draw a battery meter. For this I am painting my panel with Filled Rectangles using AWT Graphics class. Is it possible that I can add a tooltip so that whenver a mouse is pointed on the top of the rectangle a text is displayed(which will be the …

Member Avatar for gunjannigam
0
648
Member Avatar for gunjannigam

I want to know that can I run a code which extend JPanel and uses JFrame without running the x11 server on ubuntu. I read something about Headless but its not working.

0
73
Member Avatar for gunjannigam

I needed to draw an image and paint a needle on it. Since my image is stationary(it doesnt change) I dont want to paint it each time I call repaint. Thats why I thought of using JLabel with an Icon image. The problem is I cant paint anything on top …

Member Avatar for gunjannigam
0
257
Member Avatar for gunjannigam

I am using Java Comm API to send some data on Serial Port and Again Checking it back. The Problem is that I am not able to get the correct data back always. Sometime I see a garbage value there. Here is my Code Setup SerialPort For Sending Data [CODE] …

0
54
Member Avatar for gunjannigam

I want to add a splash screen to my application. The problem is that whatever splashscreen I have seen on net are basically extending JWindow/JFrame and My application extends JPanel. Now Due to this I am not able to display my application after SplacshScreen is complete.

Member Avatar for BestJewSinceJC
0
43
Member Avatar for gunjannigam

I want to create a custom NumberFormat which returns empty string for negative values and the double number iteslf for +ve and zero values. Please guide me....................

Member Avatar for gunjannigam
0
168

The End.