Search Results

Showing results 1 to 40 of 1000
Search took 0.12 seconds.
Search: Posts Made By: Ezzaral
Forum: Java 6 Hours Ago
Replies: 3
Views: 388
Posted By Ezzaral
Looks like you have a bit of work ahead of you. Let us know if you have specific questions about portions of it.
Forum: Java 10 Hours Ago
Replies: 2
Views: 73
Posted By Ezzaral
Or keep them in a List.
Forum: Geeks' Lounge 10 Hours Ago
Replies: 68
Views: 97,555
Posted By Ezzaral
Absolutely brilliant.
Forum: Java 11 Hours Ago
Replies: 4
Views: 79
Posted By Ezzaral
It all comes down to the details of "changing the look". Some things are trivial, others are quite complicated. You asked a very general question.

If you just want to set the frame to be...
Forum: Java 13 Hours Ago
Replies: 8
Views: 85
Posted By Ezzaral
Call methods on "clickedButton". I wrote that to show you how to obtain a reference to the button that was clicked.
Forum: Java 13 Hours Ago
Replies: 4
Views: 79
Posted By Ezzaral
You can customize all kinds of things about how the UI appears. A lot is possible with the methods provided by the Swing components, but if that isn't sufficient it's possible to use the the...
Forum: Java 13 Hours Ago
Replies: 8
Views: 85
Posted By Ezzaral
Your listener is setting the icon on whichever button i and j corresponds tobutton[i][j].setIcon(imageO);What you really want to do is getSource() from the mouse event and cast that to a JButton and...
Forum: Java 13 Hours Ago
Replies: 3
Views: 75
Posted By Ezzaral
You could define a method like private void enableLength(boolean enable){
txtLength.setEnabled( enable );
lblLength.setEnabled( enable );
}so your if() code becomesif (optBox.isSelected() ){...
Forum: Java 14 Hours Ago
Replies: 8
Views: 85
Posted By Ezzaral
You have to actually create the JButtons in your array. You have only declared the array of references with this statementJButton[][] button = new JButton[3][3];You must still initialize those...
Forum: Site Layout and Usability 14 Hours Ago
Replies: 1
Views: 62
Posted By Ezzaral
Um, waiting for a question perhaps?
Forum: Java 16 Hours Ago
Replies: 2
Views: 58
Posted By Ezzaral
Window > Palette
Forum: C++ 1 Day Ago
Replies: 2
Views: 65
Posted By Ezzaral
Probably conversion things.

Probably.
Forum: Java 1 Day Ago
Replies: 2
Solved: Anonymous class
Views: 102
Posted By Ezzaral
Just like any anonymous implemenationreturn new Enumeration() {

public boolean hasMoreElements() {
throw new UnsupportedOperationException("Not supported yet.");
...
Forum: HTML and CSS 1 Day Ago
Replies: 7
Views: 113
Posted By Ezzaral
Agreed that this is more of a HTML/CSS question. Moving it over there. Carry on :)
Forum: JavaScript / DHTML / AJAX 1 Day Ago
Replies: 1
Views: 92
Posted By Ezzaral
Sounds like you probably need to fail then if you cannot show that you learned the material. Failing can be a great learning experience.
Forum: Java 2 Days Ago
Replies: 7
Views: 172
Posted By Ezzaral
The only requirement is that the parameter meet the type specified by the method declaration, which it does by implementing the interface. It doesn't care about anything else but the interface...
Forum: DaniWeb Community Feedback 4 Days Ago
Replies: 88
Views: 4,135
Posted By Ezzaral
I agree that the "New" buttons are too large. I prefer the previous version that wasn't so intrusive.
Forum: Java 4 Days Ago
Replies: 5
Views: 107
Posted By Ezzaral
Concatenate the string you want to printprintln(year + " " + population)or use printf.
Forum: Java 4 Days Ago
Replies: 7
Views: 172
Posted By Ezzaral
Here is a "bare bones" mockup of how such an event model can be implemented. I've retained your names so it might be a little clearer

import java.util.ArrayList;
import java.util.List;

public...
Forum: Java 4 Days Ago
Replies: 5
Views: 107
Posted By Ezzaral
long pop = 6816330827;Long is just another primitive data type.
Forum: Java 4 Days Ago
Replies: 7
Views: 172
Posted By Ezzaral
That is exactly the point of the models I mentioned above. You need to implement a way that your main frame can register itself as a listener for the selection change.

With the small model I...
Forum: Java 4 Days Ago
Replies: 5
Views: 107
Posted By Ezzaral
The max value for int is 2147483647, so you will need to use long for that value.
Forum: Java 4 Days Ago
Replies: 7
Views: 172
Posted By Ezzaral
I'm struggling a bit to understand the exact behavior you are aiming for, but if you're just saying that the "main frame" needs to take some action when the selection array changes, you can make a...
Forum: Java 4 Days Ago
Replies: 1
Views: 79
Posted By Ezzaral
You are executing this statement, exactly as is
"INSERT INTO user VALUES (forename, surname, dob, add1, add2, county, postCode, telNumber)"That does not contain any of the information that you...
Forum: Java 4 Days Ago
Replies: 20
Views: 368
Posted By Ezzaral
Ok, that isn't exactly what I thought you wanted to do, but if it works for you, great :)
I thought you wanted to be able to draw multiple lines by clicking and dragging to stretch the line, like...
Forum: Java 5 Days Ago
Replies: 20
Views: 368
Posted By Ezzaral
Keep the point2 assignment and a repaint() in mouseDragged(). Leave mouseReleased() as you have it, but also set point2 to null. Then alter your paintComponent() method to draw a line from point1 to...
Forum: Java 5 Days Ago
Replies: 20
Views: 368
Posted By Ezzaral
You're adding a new line for every mouseDragged() event. You only want to add a line when the mouse is released.
Forum: Java 5 Days Ago
Replies: 20
Views: 368
Posted By Ezzaral
So examine your loop and the code in it and try to figure out how it could access an index that is too high for your collection.
Forum: Java 5 Days Ago
Replies: 20
Views: 368
Posted By Ezzaral
I think you are getting more detailed information than "error message". I can guess what it is, but actually posting those error messages would be helpful. They are usually very specific in telling...
Forum: Java 6 Days Ago
Replies: 20
Views: 368
Posted By Ezzaral
You're trying to access the elements of lineList like an array, but it's an ArrayList. Use lineList.get(i) instead.
Forum: Java 6 Days Ago
Replies: 10
Views: 215
Posted By Ezzaral
Well, evidently you it's something that you cannot do because you are here asking how to do it. I'd say you lost the bet.
Forum: Java 6 Days Ago
Replies: 20
Views: 368
Posted By Ezzaral
Read carefully what you are doing in the paintComponent() method. You are looping through every point in the array list and each time drawing a line between point1 and point2 - which are completely...
Forum: Geeks' Lounge 6 Days Ago
Replies: 28
Views: 587
Posted By Ezzaral
I have a free upgrade coming from PC purchase as well, but I think I may wait a few more months.
Forum: Java 7 Days Ago
Replies: 4
Views: 180
Posted By Ezzaral
There are existing wrapper classes for all of the primitive types.
Use Integer. Auto-boxing will handle the casting for you.
Forum: Java 7 Days Ago
Replies: 11
Views: 242
Posted By Ezzaral
Use a scanner to get the input. Use a variable for "highest" and one for "lowest". Compare the input to those and alter as needed.
Forum: Java 7 Days Ago
Replies: 7
Views: 226
Posted By Ezzaral
Sure, which ever you want to work with.


As long as you provide a method to determine if it's selected, you can process that however you like, i.e. a button action that removes all selected...
Forum: Java 7 Days Ago
Replies: 7
Views: 226
Posted By Ezzaral
"Selection" is nothing more than a boolean. You can represent that however you choose.

The box layout just stacks the components vertically. You could use grid or grid bag as well. The point is...
Forum: Java 7 Days Ago
Replies: 7
Views: 226
Posted By Ezzaral
I can't figure why you would want to render it in a list. If you want to display a series of panel entries they you would be better off putting them in a vertical box layout in a scroll pane.
Forum: Java 7 Days Ago
Replies: 4
Views: 173
Posted By Ezzaral
I think you're talking about a combo box: http://java.sun.com/docs/books/tutorial/uiswing/components/combobox.html
Forum: Community Introductions 10 Days Ago
Replies: 1
Views: 126
Posted By Ezzaral
You cannot delete the account, but you can turn off all mechanisms for contacting you in your User Control Panel (http://www.daniweb.com/forums/usercp.php).
Showing results 1 to 40 of 1000

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC