Forum: Java 21 Hours Ago |
| Replies: 2 Views: 80 use varibles for labels
first declare in proper place: JLabel label1;
In constructor create new instance of label: label1 = new JLabel(card1);
add this label ...
///
In method actionPerformed... |
Forum: Java 23 Hours Ago |
| Replies: 4 Views: 90 http://www.javaworkspace.com/connectdatabase/connectPostgre.do
http://jdbc.postgresql.org/download.html |
Forum: Java 1 Day Ago |
| Replies: 3 Views: 81 Nothing to change. This form is fully acceptable.
--------
You can try CardLayout; on each tab, you can put only the necessary components labels and txtfields, and switch between tabs in accordance... |
Forum: Java 1 Day Ago |
| Replies: 7 Views: 127 . check x on input, where x is old
. if x >=0, INPUT never occurs, then x remain forever old >= 0 value |
Forum: Java 1 Day Ago |
| Replies: 3 Views: 138 here is! , and annunfanwen is an author
methodadds usefull spaces as separator L28,38,48,54
method don't know about it . Also can't collect digits together to form number
In addition little... |
Forum: Java 2 Days Ago |
| Replies: 3 Views: 115 whiteyoh, look at static int ConsoleOptionGUI(String s) method http://www.daniweb.com/forums/thread231390.html
Yet you will not always write all the code in the main method. |
Forum: Java 2 Days Ago |
| Replies: 3 Views: 131 Look at java doc java.util.Calendar and java.util.GregorianCalendar classes. Nice implemented interfaces, constructors and methods. Nice examples. Their use will reduce drastically the volume of... |
Forum: Java 3 Days Ago |
| Replies: 1 Views: 105 System.exit(0);
comment this, it closes all windows and ends program
find another solution e.g. setting the status window on the invisible |
Forum: Java 3 Days Ago |
| Replies: 4 Views: 170 http://fivedots.coe.psu.ac.th/~ad/jg/objm3g/index.html |
Forum: Java 3 Days Ago |
| Replies: 1 Views: 106 Active Rendering
http://www.gamedev.net/reference/programming/features/javarender/default.asp
Thread Pools
http://www.brackeen.com/javagamebook/
Threads... |
Forum: Java 3 Days Ago |
| Replies: 9 Views: 216 public static void main(String args[]) {
QApplication.initialize(args);
//
QFont font = new QFont();
font.setFamily("Lucida Console");
... |
Forum: Java 3 Days Ago |
| Replies: 9 Views: 216 Summary of conversation.
I know, You want to use the package trolltech to create applications.
As a beginner java programmer you cetainly think "this is the shortest way to achieve rapid... |
Forum: Java 4 Days Ago |
| Replies: 1 Views: 117 Learn first http://www.brpreiss.com/books/opus5/ |
Forum: Java 4 Days Ago |
| Replies: 9 Views: 216 public class CodeEditor extends QPlainTextEdit
{
public CodeEditor(QTextDocument textDocument) //textDocument as parameter in constructor
// public CodeEditor()
{
// here
... |
Forum: Java 4 Days Ago |
| Replies: 9 Views: 216 use method (from documentation of package mentioned above) |
Forum: Java 4 Days Ago |
| Replies: 3 Views: 155 Loading images from filesystem throws I/O error.
I think , better way (for me) is load all images in initial phase of program. For example in specialized method loadImages() , that returns array of... |
Forum: Java 4 Days Ago |
| Replies: 4 Views: 170 On a very general question, do not expect a detailed response
The same url as peter_budo posted
http://chumbalum.swissquake.ch/files/MS3DHelp-HTML.zip |
Forum: Java 4 Days Ago |
| Replies: 3 Views: 155 Add field in Room .
Extend the Room constructor , or write the new one, which takes into account a new parameter, image.
If you dane this, look
Each neighbor already has its own image!
//
Good... |
Forum: Java 4 Days Ago |
| Replies: 9 Views: 216 You are working with package qtjambi. You should know it better.
first read
http://doc.trolltech.com/qtjambi-4.5.2_01/index.html... |
Forum: Java 4 Days Ago |
| Replies: 1 Views: 126 Decide, that you need single Frame. If yes, create class MyLinkPanel extends JPanel in same way as class MyPanel.
Inside constructor MyFrame() add new instance of MyLinkPanel in same way as instance... |
Forum: Java 4 Days Ago |
| Replies: 2 Views: 93 http://www.brpreiss.com/books/opus5/html/page264.html |
Forum: Java 4 Days Ago |
| Replies: 4 Views: 163 public class GCD have a static method gdc. Then you do not need to create new instance of this class .
simply use long val = GDC.gdc(l1,l2); |
Forum: Java 5 Days Ago |
| Replies: 1 Views: 118 1. to generate random index, use public int nextInt(int n) method from java.util.Random, where n is number of questions.
2. introduce int varibles counters for correct and wrong answer. Check... |
Forum: Java 5 Days Ago |
| Replies: 2 Views: 105 L24-29 this is initialization
When you creates (in main method) new instance of ExitJoke the first executed code is L24-29. L26 here is "new ExitJoke", this executes code in L24.
Then your program... |
Forum: Java 5 Days Ago |
| Replies: 3 Views: 138 properly write constructor
reply , what does mean parameter "String in" in contructor?
What information is transmitted to a class? |
Forum: Java 5 Days Ago |
| Replies: 1 Views: 140 this mean
use methods to setColor green,yellow,red ;getColor |
Forum: Java 6 Days Ago |
| Replies: 1 Views: 137 Start work with the base linear function. Create a class (for example Equation extends java.lang.Object) with constructor and methods. Results print only to console. This is not a joke.
See you... |
Forum: Java 6 Days Ago |
| Replies: 10 Views: 142 The way is use constructor , and write own String comparator where the case of letter is irrelevant |
Forum: Java 7 Days Ago |
| Replies: 4 Views: 145 Go step by step
Create from scratch class Polynomial
implement set( , get( , String toString() methods
and show |
Forum: Java 7 Days Ago |
| Replies: 7 Views: 178 #6 too long
9 posibilities 10 returns
public int compareTo(Somthing with two things _1 and _2 to compare) {
// _1 comparation higher priority
if (GT_1) {
... |
Forum: Java 7 Days Ago |
| Replies: 7 Views: 178 About
You are using default method toString(), which not reflect the order.
Try print in loopmethod |
Forum: Java 7 Days Ago |
| Replies: 7 Views: 178 About L63:
L42 and L72 methods do not cover all cases, comparisons.
character GT LT ? |
Forum: Java 8 Days Ago |
| Replies: 4 Views: 137 Masijade, I appreciate your posts and welcome your comments towards me. |
Forum: Java 8 Days Ago |
| Replies: 4 Views: 137 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 9 Days Ago |
| Replies: 14 Views: 266 Feel free traying this code.
here is modified method with cancelCellEditing
private void setValueAtSelectedCell(String value) {
//if (wallChooser.isEditing()) {
... |
Forum: Java 9 Days Ago |
| Replies: 1 Views: 115 It is possible in Java.
how to work with camera with JMF :
http://www.darnok.org/programming/motion-detection/
FMJ extension of JMF (MPEG4 codec):... |
Forum: Java 9 Days Ago |
| Replies: 2 Views: 123 public class Picture {
public static void main(String[] args) {
String s1 = "pppppppppppplllllllllleeeaaaaaaaaasssssssse";
String s2 = "pppppppppppp ... |
Forum: Java 9 Days Ago |
| Replies: 1 Views: 149 http://www.brackeen.com/javagamebook/
Chapter 4, "Sound Effects and Music" |
Forum: Java 9 Days Ago |
| Replies: 3 Views: 158 http://mindprod.com/jgloss/applet.html#RESTRICTIONS |
Forum: Java 10 Days Ago |
| Replies: 14 Views: 266 check
wallChooser.isEditing()
if result is true, blocking the setting |