Published News
38 Votes
reduce my JTextField's height in gridlayout
http://www.daniweb.com —
I was trying to reduce my jtextfield height, since it is for user to enter first name. somehow when i run the code, the box is just too big, is there anyway to change the textfield height? i tried with setPrefferedSize but somehow it showing error, mayb i put it ...
Read More
41 Votes
Chess in java
http://www.daniweb.com —
package newsatranc; import java.awt.BorderLayout; import java.awt.Color; import java.awt.ComponentOrientation; import java.awt.Cursor; import java.awt.GridLayout; import java.awt.event.InputEvent; import java.awt.image.BufferedImage; import java.io.IOException; import java.io.InputStream; import java.util.Map; import java.util.TreeMap; import javax.imageio.ImageIO; import javax.swing.ImageIcon; i
Read More
33 Votes
36 Votes
42 Votes
Delete method in AddressBook.java
http://www.daniweb.com —
/* * @author JDickerson * Created on 4 Aug 2008 */ package com.jjpeople.addressbook.gui; import com.jjpeople.addressbook.lineformatter.LineFormatter; import com.jjpeople.serviceworker.gui.GuiException; /** * This application uses a Service to Worker pattern which is located in the * package: com.jjpeople.serviceworker * * This interface models the Gui. * * @author JDickerson * Created on ...
Read More
32 Votes
Java ArrayList expected error from command line
http://www.daniweb.com —
Hi, I've written the below code as part of a University assignment, it compiled ok in Eclipse but returns the ` expected` error when compiling via the command line. The error appears on lines 7, 8, 12, 13 and 20. Could anyone shed any light on why i'm getting it ...
Read More
39 Votes
need help with MouseListener !!!
http://www.daniweb.com —
Hello ,,, am having trouble while making a drag and drop label i wrote a code i'v seen on youtube , but after compiling i had punsh of Exception and i don't know why !! can any one help me writing a drag and drop code , i'll post the ...
Read More
30 Votes
How to access variable in one method from another
http://www.daniweb.com —
The title might sound confusing, so here is what I want to do: I am currently working on a school project, and I have to make a rock, paper, scissors game. I am almost done and only need one more thing. I have two methods (bigWinner and finalResult) In method ...
Read More

