Forum: Java Oct 19th, 2008 |
| Replies: 5 Views: 1,290 Other Internal frames have been working fine. There's only one which is giving some problem. The code is too much to be copied here. |
Forum: Java Oct 19th, 2008 |
| Replies: 5 Views: 1,290 I dont know which part of the code is giving the error. Its a Mini Project and i am using NetBeans. |
Forum: Java Oct 19th, 2008 |
| Replies: 5 Views: 1,290 Initially it was working fine with the Swing Default Look and Feel. I am getting The above said error only after i changed to Windows Look and feel. Will this affect in any way? |
Forum: Java Oct 19th, 2008 |
| Replies: 5 Views: 1,290 When i set a internal frame to visible i get Java Result: 1073807364 as the output. The systems hangs and will have to terminate the execution abruptly. What does this output stand for? |
Forum: Java Oct 19th, 2008 |
| Replies: 12 Views: 5,272 I have been using it all through for my project. And yeah to mention my project is building a mini relational database. This requires a lot of GUI work as i am doing a GUI based one and not command... |
Forum: Java Oct 19th, 2008 |
| Replies: 12 Views: 5,272 use Object references for revalidating. The revalidate() method is non static. So u can use the object of JPanel to revalidate().
Basically in GUI u create objects to represent the components.
... |
Forum: Java Oct 19th, 2008 |
| Replies: 12 Views: 5,272 You will have to either add new components to the JPanel object or remove all existing components from the JPanel object and then add new components based on the option in the other GUI. After adding... |
Forum: Java Oct 19th, 2008 |
| Replies: 4 Views: 516 Try using the StringTokenizer class. It will automatically break the string into tokens or substrings based on space as the default delimiter. And then u can traverse through the StringTokenizer... |
Forum: Java Oct 19th, 2008 |
| Replies: 12 Views: 5,272 What exactly do you mean by static JFrame or static JTable? You need to create objects of both of them to have them on the screen.
If the problem is JTable specific u can refer to the JTable API... |
Forum: Java Oct 19th, 2008 |
| Replies: 12 Views: 5,272 For updating the GUI at runtime, use JPanel for storing the contents and use the revalidate() function. Also for deleting all the components use removeAll() method. |
Forum: Java Jul 4th, 2008 |
| Replies: 8 Views: 3,229 Yeah you are right. U can see i am new to Daniweb and have been posting from yesterday. I actually had a hard time coding for Graphics in Java so thought of helping with the code. Never mind i will... |
Forum: Java Jul 4th, 2008 |
| Replies: 8 Views: 3,229 Whats there is giving a code. U had mentioned that one can use BasicStroke and i just gave a code. And for your information even i didnot know about it b4 posting it here. |
Forum: Java Jul 3rd, 2008 |
| Replies: 2 Views: 507 Have u installed JDK?
classpath is usually the path to the lib folder of JDK installed on u'r system |
Forum: Java Jul 3rd, 2008 |
| Replies: 36 Views: 28,493 +1 to Core Java, Volume 1 and 2 By Horstmann. Really good book. One can actually read Head First Java and then come to this book for perfect understanding of the language |
Forum: Java Jul 3rd, 2008 |
| Replies: 8 Views: 3,229 @diasmvds
import javax.swing.*;
import java.awt.*;
import java.awt.geom.*;
public class Stroke1 extends JFrame {
Stroke drawingStroke = new BasicStroke(3, BasicStroke.CAP_BUTT,... |
Forum: Java Jul 3rd, 2008 |
| Replies: 4 Views: 1,048 <?xml version = "1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- Fig. 26.7: WelcomeServlet.html -->
... |