Sylvia Allen

Greenhorn
+ Follow
since Apr 02, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sylvia Allen

Dreamweaver is tempting to use because of how easily you can get great HTML effects with it, but it makes a mess of the HTML code. If you use Dreamweaver, be prepared to go in and clean up your HTML afterward, for exactly the kind of reason you're talking about. The other thing you can do is use Dreamweaver to get the effect you want, then go in to the code and see how it did it, and then make your real page with nice, clean HTML.
19 years ago
JSP
I'm trying to write a little app with several text fields and a JComboBox. When the user clicks File > New, the focus should go to the JComboBox, but I haven't been able to make that happen. I have tried using JComboBox.requestFocus() and I have tried JComboBox.requestFocusInWindow() but both ways nothing happens at all--the combo box does not get the focus, nothing changes. What should I be using for this? Any help appreciated.
- SA
20 years ago
Oh yeah--so in that case, how WERE you supposed to do something like this in 1.3?
int i; // Counter
JMenuItem origItem; // Item to clone
JMenuItem dupItem; // Duplicate for popup
ActionListener[] listeners; // Listeners for origItem
popupMenu = new JPopupMenu("Menu for Everything");
origItem = saveMenuItem;
dupItem = new JMenuItem(origItem.getText());
listeners = origItem.getActionListeners();
for (i=0; i<listeners.length; ++i)
dupItem.addActionListener(listeners[i]);
popupMenu.add(dupItem);
... etc.
20 years ago
I hope this isn't a really dumb question: If you install J2EE, do you have everything that's in J2SE plus the server stuff, or do you have to have J2SE and J2EE on top of that, or do you basically have to choose? Like, if you want to do server stuff and Swing stuff at the same time, what do you need to have installed to do that? And what version of J2SE do you use?
- SA
20 years ago
OOOOOOH! You're SO right. I just went and checked 1.2 again. My bud must have upgraded in the middle of the project w/out telling me, is what he must've done. That scum. Thanks, Dirk. Guess I gotta go install 1.4 before I can get any further. What kind of badness is in store for me there, she wonders? I'll go look for that thread elsewhere. Thanks again.
- SA
20 years ago
I am WAY puzzled. I'm using 1.3.1, and I am trying to run someone else's code he wrote in 1.2. When I try to compile, I get a "cannot resolve symbol" for the JMenuItem method getActionListeners().
So I went to the 1.3 API, and sure enough, there is no JMenuItem getActionListeners() method. I mean, there isn't any such method inherited from anywhere, either. It's there in 1.2, and it's there in 1.4, inherited from AbstractButton. Not there in 1.3.
What the heck?!? Do I have to install 1.2 or 1.4 to run this program? And what are we supposed to do instead of that method in 1.3?
- SA
20 years ago
I imagine this is a really dumb question, but is there some standard simple code for generating the next largest number in hexadecimal format? I need to generate sequential alphanumeric passwords. There must be some standard simple way to do this.
- SA
20 years ago
I hope this isn't a really dumb answer, but it looks to me as if you have a typo--
<% = Attr1 %>
There shouldn't be a space between the % and the =.
<%= Attr1 %>
Though for all I know, it works just fine with the space there; I've never tried it that way. Somebody just shoot me if this is a clueless answer.
- SA
20 years ago
I'm sorry if this should be obvious, but I've looked around on JavaRanch and can't see a reasonable place to post a request for a tutor.
This isn't, like, an ongoing deal. I would like to hire somebody who knows Java servlet programming to come to my house once and walk me through the process of:
* Installing and setting up a servlet engine, either Tomcat or Caucho Resin
* Installing and setting up an IDE, whichever one they like best (I've tried Forte but...)
* Writing one working project that includes an html page, a servlet, a bean, and a jsp, all working together
The reason I'm even telling you all this is because usually people say, "Why not just get the advice you need by email?" This is not a situation where I can get the advice I need by email. What I need is someone who has done all the things listed above to come and walk me through making it actually work. I've been struggling with this for WEEKS and am frustrated beyond belief.
Is there a place where I can make this request on JavaRanch?
- SA
20 years ago
I have this app that has a JFrame with a menu, and some JInternalFrames inside that. Each JInternalFrame has its own menuitem on the menu. How can I get the menuitem to go away when its JInternalFrame is closed? I tried to find this information on the Sun tutorial site but couldn't find it. I tried several ways already but nothing has worked. A code snippet would be very much appreciated.
- SA

------------------
Sylvia Allen
sylviaa@screaminet.com
20 years ago
Whoops--my sig was outdated. Not that I need a reply offline particularly, but if you do send me one the correct address is:
------------------
Sylvia Allen
sylviaa@screaminet.com
Well, then, since it's going to rule the world, I suppose I'd better get on it. Ajith's list of XML resources was very helpful. Where can I learn more specifically about DOM?
- SA

------------------

--
Sylvia Allen
sylviaa@sirius.com
I'm new to Java and to programming. I've taken one Java course (it was fun!), am enrolled in another one now, and am scheduled to take a third course in the fall. I am especially interested in using Java for wireless and small devices. I would like to know at what point it would be realistic for me to start learning J2ME. Generally speaking, what should I have learned before trying J2ME?
- SA
21 years ago