Search Results

Showing results 1 to 23 of 23
Search took 0.01 seconds.
Search: Posts Made By: llemes4011 ; Forum: Java and child forums
Forum: Java Oct 12th, 2009
Replies: 10
Views: 504
Posted By llemes4011
Hello! Most Applets now extend the JApplet class now. (JApplet is part of the javax.swing package) So you should probably be extending that instead. also, all applets make a call to init(),...
Forum: Java Aug 31st, 2009
Replies: 4
Views: 452
Posted By llemes4011
No, you do not have 100,000 panels on top of each other. But if the screen is still being filled with black, you might want to insert the line:
super.paintComponent(comp); as the first line in your...
Forum: Java Aug 22nd, 2009
Replies: 7
Views: 753
Posted By llemes4011
That's alright. you can still make a tray icon, in Java 1.6, there is a SystemTray class that can add an icon to the tray, and you don't have to mess with JNI (YAY!)
Forum: Java Aug 21st, 2009
Replies: 7
Views: 753
Posted By llemes4011
If you're asking about how to bring UP a window or do something when a hotkey is pressed, it would involve making an invisible Window that's always on top of everything else, and adding a key...
Forum: Java Aug 15th, 2009
Replies: 2
Views: 296
Posted By llemes4011
If I'm understanding your question, you want to know how to pass ArrayLists as arguments to methods, right? It's the same as any other arg.
public void func(ArrayList<Double> arrayList){}
Forum: Java Aug 15th, 2009
Replies: 5
Solved: Paint
Views: 310
Posted By llemes4011
Hi. First off, please correctly use the [code] tags:
http://www.daniweb.com/forums/announcement9-3.html

Second, the syntax for drawString is: (Most likely used in the paint method)...
Forum: Java Jul 12th, 2009
Replies: 23
Views: 877
Posted By llemes4011
A) If it works, mark the thread as solved.
B) If you have another question, unrelated to this thread, please start a new thread. StringBuffers have nothing to do with this thread.
C) A...
Forum: Java Jul 12th, 2009
Replies: 23
Views: 877
Posted By llemes4011
If you don't enter anything in the Textfield and press ok, or press cancel, it will give you that error.

This probably isn't what you're looking for, but read this article about JOptionPanes:...
Forum: Java Jul 11th, 2009
Replies: 23
Views: 877
Posted By llemes4011
When you try to convert a String to an int, you have to be careful. If you don't put a value in, or type a letter by mistake, it can lead to strange results. Try defaulting the JOptionPane's value...
Forum: Java Jul 11th, 2009
Replies: 23
Views: 877
Posted By llemes4011
yes, but after the foo.doSomething() line, put a "}" to close the method.

also, you don't want another main method inside class foo, call it something else, and it probably doesn't need the...
Forum: Java Jul 11th, 2009
Replies: 23
Views: 877
Posted By llemes4011
you don't want to declare class foo inside your main method. close the method before coding the foo class
Forum: Java Jul 11th, 2009
Replies: 7
Views: 420
Posted By llemes4011
No problem, don't forget to set the thread to solved =)
Forum: Java Jul 11th, 2009
Replies: 23
Views: 877
Posted By llemes4011
O.o That's a lot a white space 0.0 In the future, try to write and post a simple example of what's wrong instead of posting your entire code.

public class Change {

public static void main...
Forum: Java Jul 11th, 2009
Replies: 7
Views: 420
Posted By llemes4011
Oh, Ok, i think I see.
you need to do something like this:

class newuserListener implements ActionListener{
public void actionPerformed(ActionEvent ev)
{
optionsGUI tx = new...
Forum: Java Jul 11th, 2009
Replies: 23
Views: 877
Posted By llemes4011
Hi! Welcome to DaniWeb!

When Posting code please wrap the code in tags so it's easier for people to read ^_^

As for your question, you can't declare a public class inside another class. ...
Forum: Java Jul 10th, 2009
Replies: 7
Views: 420
Posted By llemes4011
in the JTabbedPane class there is a method setSelectedIndex(int index). where 0 is the first tab, 1 is the second, ect. (I believe that is how it works, you can also select the tab with the method,...
Forum: Java Jul 5th, 2009
Replies: 3
Views: 393
Posted By llemes4011
I suggest taking a look at the JFileViewer class.
Forum: Java May 5th, 2009
Replies: 11
Views: 1,127
Posted By llemes4011
after you send the contents of the text area, set the contents to nothing (ie. JTextAreaObject.setText("");) Hope that clears some of it up
Forum: Java May 3rd, 2009
Replies: 11
Views: 1,127
Posted By llemes4011
I suggest taking a look at the InputEvent methods that are inherited by the KeyEvent class. One of them is "isControlDown()" look at that one. =)
Forum: Java Apr 29th, 2009
Replies: 1
Solved: Arrays in Java
Views: 221
Posted By llemes4011
Arrays - Here (http://www.particle.kth.se/~lindsey/JavaCourse/Book/Part1/Java/Chapter03/arrays.html)

ArrayLists - Here (http://www.bestjavainterviewquestions.com/arraylist-class/)
Forum: Java Apr 7th, 2009
Replies: 7
Solved: JTabbedPane
Views: 1,060
Posted By llemes4011
What if when you resize the JFrame, you pass the JTabbedPane the width and height through the resize(int width, int height) method while resizing the JFrame?
Forum: Java Mar 29th, 2009
Replies: 3
Views: 358
Posted By llemes4011
you could check the number of characters in the string, break it up into sections using a String ArrayList, and insert a \n after each string portion
Forum: Java Feb 27th, 2009
Replies: 30
Views: 3,175
Posted By llemes4011
if you messed with it enough, the modulus would work... but... it's a hassle, and breaking the String apart using the Scanner class is easier, in my opinion. If you create a Scanner that reads the...
Showing results 1 to 23 of 23

 


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

©2003 - 2009 DaniWeb® LLC