Forum: Java 1 Day Ago |
| Replies: 2 Views: 107 When someone creates a reply, keep track of the parent message that new reply belongs to. |
Forum: Java 2 Days Ago |
| Replies: 8 Views: 179 I think you should tell us what specific error you are receiving at this point. I don't know where you're having trouble at as I posted an example that should work for you.
You should also read... |
Forum: Java 2 Days Ago |
| Replies: 8 Views: 179 Well, the actionPerformed method takes an actionEvent, not a windowEvent. As long as your class implements ActionListener and contains the method void actionPerformed(actionEvent e) then you should... |
Forum: Java 3 Days Ago |
| Replies: 4 Views: 207 Read it like a Properties file, you just won't have the section headers like [xxxxx], but all the properties will be read into basically a hashtable.
Properties p = new Properties();
p.load(new... |
Forum: Java 5 Days Ago |
| Replies: 11 Views: 502 Always happy to help out a fellow top gear viewer ;) |
Forum: Java 6 Days Ago |
| Replies: 1 Views: 139 I need a method of rendering HTML in Java. I was originally planning to use WebKit for SWT (http://www.genuitec.com/about/labs-webkit-for-swt/WebKit%20For%20SWT%20Developer%20Guide.html), but I'm... |
Forum: Java 6 Days Ago |
| Replies: 1 Views: 146 I ended up using Jericho to do what I needed. |
Forum: Java 6 Days Ago |
| Replies: 3 Views: 199 I was just trying to figure out the same thing last week. Basically, your 'Word' nodes are still Elements with children. To get the text between the opening and closing tags, grab the element's... |
Forum: Java 6 Days Ago |
| Replies: 1 Views: 192 It's a security issue. The following link should explain things.
http://www-personal.umich.edu/~lsiden/tutorials/signed-applet/signed-applet.html |
Forum: Java 6 Days Ago |
| Replies: 11 Views: 502 Think of an ArrayList as table. You'd make 1 class for each different table, not each variable. Let's say you need to store customer information, a typical table would look like this:
... |
Forum: Java 6 Days Ago |
| Replies: 1 Views: 130 I suggest asking on JForum's forum.
http://jforum.net/forums/list.page
As it's their project, I'm sure they could help you a lot quicker than those of us who have never looked at their source... |
Forum: Java 6 Days Ago |
| Replies: 1 Views: 186 For starters, I don't see how that would compile considering you instantiate JPanel with reference to 'card' before it is even initialized.
Secondly, you should add your CourseChooser component to... |
Forum: Java 6 Days Ago |
| Replies: 1 Views: 146 I've played around with HTMLEditorKit and HTMLDocument, and while I've managed to do the parsing I needed, I also need the complete source code of the document to pass along to a webkit renderer. ... |
Forum: Java 18 Days Ago |
| Replies: 2 Views: 162 Thanks for reading the API closer than I did.
I guess it would be the DOM parser. The fact that DocumentBuilder.parse() can throw a SAXException is what made me think it was SAX parser. |
Forum: Java 18 Days Ago |
| Replies: 2 Views: 162 I'm using javax.xml.parsers.DocumentBuilderFactory to load an XML file. The file contains paired elements like so:
<A></A>
<B></B>
<A></A>
<B></B>
<A></A>
<B></B>
So if I did the... |
Forum: Java Nov 8th, 2009 |
| Replies: 3 Views: 232 What isn't your method doing that it should be doing?
Your instructions say you should have a Customer.borrowVideo(Video v) method, but I don't see one in your class. |
Forum: Java Nov 8th, 2009 |
| Replies: 2 Views: 216 Change:
byte[] requestArray, rec_bytes
To:
byte[] requestArray, byte[] rec_bytes
I don't think you can initialize multiple variables from a single type like that within the method header. |
Forum: Java Oct 12th, 2009 |
| Replies: 2 Views: 140 I'm starting to remember why I stopped visiting the forums.
Good job, you pasted your homework assignment. Why are you sharing it? Have a specific question? |
Forum: Java Oct 12th, 2009 |
| Replies: 2 Views: 173 |
Forum: Java May 11th, 2009 |
| Replies: 15 Views: 690 Ok, so you were able to post your homework, but how about explaining what the problem is you're having? |
Forum: Java May 11th, 2009 |
| Replies: 6 Views: 298 For starters, you can initialize your array like this:
int[] values = {1,4,9,16,17,21,25,33,37,40};
You can use "values.length" to get the number of elements in the array. Use that in... |
Forum: Java Sep 21st, 2008 |
| Replies: 2 Views: 664 I would do something like this:
if (!(option == JOptionPane.YES_OPTION))
stop = true;
I have no idea what the values are for the constants, so always better to use the constant name... |
Forum: Java Sep 20th, 2008 |
| Replies: 3 Views: 1,251 So what's holding you back from doing it? I'm guessing you need help on parsing the initial string? |
Forum: Java Sep 20th, 2008 |
| Replies: 5 Views: 11,987 What is wrong with you? You brought back a 4 year old thread and hijacked it. Do a search on the forum, hundreds of kids have asked for project ideas already. Develop a front-end interface for an... |
Forum: Java Sep 20th, 2008 |
| Replies: 1 Views: 518 I know you can access the registry from command line, I had to do that with Basic awhile ago. This only helps in reading the registry as far as I know, if you need to write to it you'll need to look... |
Forum: Java Sep 20th, 2008 |
| Replies: 2 Views: 1,768 The parent nodes still require the same number of columns as the children. In that jtreeTable example, I would still need to span the folder row across all 4 columns. |
Forum: Java Sep 19th, 2008 |
| Replies: 3 Views: 527 You want an HTML/CSS forum. Your question still makes little sense, what is this "hover" feature? Do you mean your background changes color when you hover your mouse over it? To override a hover... |
Forum: Java Sep 19th, 2008 |
| Replies: 2 Views: 1,768 I need to create table with expandable rows. Each row in the table can be expanded to display a secondary row. While I have managed this in the past for other projects, this problem is slightly... |
Forum: Java Sep 19th, 2008 |
| Replies: 2 Views: 493 I don't know what your "getThePage()" method looks like. I'm assuming you're trying to listen for the ENTER key? Add a KeyListener to the text field. To set the page, look at the following method in... |
Forum: Java Sep 19th, 2008 |
| Replies: 1 Views: 822 Recalculate the price after a selection change.
public void valueChanged(ListSelectionEvent evt){
if (!evt.getValueIsAdjusting()){
price = basePrice;
if... |
Forum: Java Aug 22nd, 2008 |
| Replies: 8 Views: 815 These might help you solve your equations:
http://www.mathreference.com/la-det,simeq.html
http://www.themathpage.com/alg/simultaneous-equations-3.htm
They explain the method, or "formula"... |
Forum: Java Aug 22nd, 2008 |
| Replies: 8 Views: 1,687 Platform games are generally tile-based. So use a 2D array to store your map tiles. You only draw the tiles that are visible within the viewport (what the play can see on the screen). You'd... |
Forum: Java Jul 21st, 2008 |
| Replies: 1 Views: 3,507 Read through this (assuming a GroupBox is what I think it is):
http://java.sun.com/docs/books/tutorial/uiswing/components/border.html |
Forum: Java Jul 21st, 2008 |
| Replies: 11 Views: 2,455 Here's a good project for you to work on, a spell checker. |
Forum: Java Jul 18th, 2008 |
| Replies: 2 Views: 1,319 I'm assuming you're talking about adding columns to a JTable? Check out the methods in the DefaultTableModel class. |
Forum: Java Jul 8th, 2008 |
| Replies: 1 Views: 615 We don't know what you're building, you're going to have to do a much better job at explaining what you're trying to do. |
Forum: Java Jun 5th, 2008 |
| Replies: 1 Views: 1,501 Where are you getting lost at ? |
Forum: Java Apr 14th, 2008 |
| Replies: 7 Views: 1,710 Well here's the api docs for JAI if thats what you wanted:
http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/index.html
JAI is the only library I know for this, unless you... |
Forum: Java Apr 14th, 2008 |
| Replies: 1 Views: 1,695 Found this, not sure if its quite what you want or not.
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#validtext |
Forum: Java Apr 4th, 2008 |
| Replies: 3 Views: 557 You might want to search google for info about C++ pointers, but the code looks pretty straight forward for porting it to Java. |