Forum: Java Nov 7th, 2009 |
| Replies: 5 Views: 341 Introduce own boolean flag 'pressed' and use it to switch needed behavior |
Forum: Java Oct 26th, 2009 |
| Replies: 4 Views: 254 First init all components
Used BorderLayout and CardLayout
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
public class... |
Forum: Java Oct 23rd, 2009 |
| Replies: 2 Views: 497 seats[i] = new JButton(String.valueOf(i + 1));
seats[i].addActionListener(this);
public void actionPerformed(ActionEvent ae){
String text = ((JButton) e.getSource()).getText();
//..... |
Forum: Java Oct 22nd, 2009 |
| Replies: 4 Views: 204 In one loop
for(int i=0;i<Name.length();i++){
ch[i] = Name.charAt(i);
.....
}
for current i , are only defined values ch[0]......ch[i-2]..ch[i-1]...ch[i]
but no ch[i+1] or ch[i+2] ... |
Forum: Java Oct 21st, 2009 |
| Replies: 1 Views: 214 Line 8: JPanel titlePanel, buttonPanel, dealerPanel, playerPanel;
Line 68: JPanel playerPanel = new JPanel();
Two declaration of playerPanel? First of them is null!
Line 136:... |
Forum: Java Oct 21st, 2009 |
| Replies: 3 Views: 214 http://itextdocs.lowagie.com/examples/com/lowagie/examples/fonts/styles/FontStylePropagation.pdf
http://itextdocs.lowagie.com/tutorial/fonts/styles/index.php |
Forum: Java Oct 20th, 2009 |
| Replies: 3 Views: 570 http://java.sun.com/mailers/techtips/corejava/2006/tt0822.html
public void delete(String val) {
current = head.next;
temp = head;
boolean looking = true;
while... |
Forum: Java Oct 13th, 2009 |
| Replies: 3 Views: 226 comparecase 11:
x2 = Arreglos.existeValor(a);with public static boolean existeValor(int a[], int valor, boolean v) {
existeValor(a) --->missed valor and v parameters in invocation... |
Forum: Java Oct 9th, 2009 |
| Replies: 8 Views: 387 |
Forum: Java Sep 27th, 2009 |
| Replies: 2 Views: 324 You are declared panelCenter2, but you still add buttons to panelCenter. |
Forum: Java Aug 20th, 2009 |
| Replies: 3 Views: 476 String[] splitPath = line.split("\\\\"); |
Forum: Java Aug 17th, 2009 |
| Replies: 6 Views: 504 In release 1.4, the focus subsystem was rearchitected.
Use the piece of code. This adds an AWTEventListener to receive all AWTEvents dispatched system-wide that conform to the given eventMask.
... |
Forum: Java Jul 24th, 2009 |
| Replies: 2 Views: 354 I working on Windows XP platform, and I am able to get the popup for this JTree.
From api doc java:
public boolean isPopupTrigger()
Note: Popup menus are triggered differently on different... |
Forum: Java Apr 19th, 2009 |
| Replies: 6 Views: 566 is $120. Invest this sum in your education. |
Forum: Java Jan 23rd, 2009 |
| Replies: 2 Views: 482 private void processConnection() throws IOException {
String message = "Connection successful";
...
message = (String) input.readObject(); // read new message
... |
Forum: Java Jan 15th, 2009 |
| Replies: 2 Views: 387 Look at Circular Hough Transform, a Java applet demonstration
http://www.markschulze.net/java/hough/index.html |
Forum: Java Dec 17th, 2008 |
| Replies: 10 Views: 2,501 Generics in the Java Programming Language
Gilad Bracha
July 5, 2004
http://java.sun.com/j2se/1.5/pdf/generics-tutorial.pdf |
Forum: Java Dec 1st, 2008 |
| Replies: 3 Views: 541 class TestTable {
public static void displayCity(City c) {
System.out.println(c.getKey());
} // end displayCity
// Main entry point
public static void main(String[]... |
Forum: Java Nov 22nd, 2008 |
| Replies: 2 Views: 503 http://penguin.ewu.edu/~trolfe/NaturalMerge/PgmAsg/PgmAsg.html
check and compare
quuba |