Horaci Macias

Ranch Hand
+ Follow
since Nov 08, 2001
Merit badge: grant badges
For More
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 Horaci Macias

Hi all,

I'm trying to find out how can I create a web application on jboss and "extend" the admin-console so that when I click on my application I can see some configurable values I can change from the admin-console.
Is there any special XML file I should be putting in my war file? Could somebody please point me in the right direction?

thanks,

Horaci
14 years ago
well, I have some suggestions but they are not new: read CAREFULLY the exam, do it twice if you've got the time, etc.
I also recomend "Sun Certified Programmer for Java 2 Study Guide (Exam 310-035)". Its exam simulator is the closest I've seen to the real exam.
Hope it helps and good luck!
20 years ago
Well, finally I passed the exam. It's a pity I got 1 answer wrong out of 61, but that's life.
BTW, don't repeat my mistake and remember that object1.wait() only releases object1's monitor, not all monitors the calling thread holds...
Anyway, good luck to not-yet-certifieds and thank you all for your help.
Horaci
20 years ago
Try pane.setViewportView(myTree); instead of add.
20 years ago
Make sure that your Midlet is in the .jar and the value of Midlet-Name in .jad is the same name of your Midlet (including packages). Try to copy your .jad here so we can help you better.
Hope it helps,
Horaci Macias
21 years ago
It looks really interesting. I couldn't go to JavaOne 2002 @ San Francisco, but I've found some slides of project Monty. They are here:
http://servlet.java.sun.com/javaone/resources/content/sf2002/conf/sessions/pdfs/2133.pdf
I hope that manufacturers adopt this new VM ASAP.
If someone has more information about project Monty I'd appreciate it.
Horaci Macias
21 years ago
Does anybody know how to debug with Sun's J2ME Wireless Toolkit ?
Thank you,
Horaci Macias
21 years ago
Have a look at MIDP API, interface Choice:


public int getSelectedFlags(boolean[]�selectedArray_return)
Queries the state of a Choice and returns the state
of all elements in the
boolean array selectedArray_return. NOTE: this is a result parameter.
It must be at least as long as the size
of the Choice as returned by size().
If the array is longer, the extra elements are set to false.


so, I suggest you to try (suposing that your ChoiceGroup/List is named list):

Hope it helps,
Horaci Macias
21 years ago
All you have to do is connect with a socket to port 21 (default ftp port) and talk with the server using FTP commands. I recommend you to have a look at RFC959 to know details about FTP commands.
Hope it helps,
Horaci Macias
[ May 03, 2002: Message edited by: Horaci Macias ]
21 years ago
I also recomend you to have a look at Sun's J2ME tech tips:
Client-Server Communication over HTTP using MIDP and Servlets
Here is the index of JDC J2ME Tech Tips:
http://developer.java.sun.com/developer/J2METechTips/
Hope it helps,
Horaci
21 years ago
I've compiled some classes with Sun Wireless Toolkit kToolbar. I've seen that their size is higher than if I compile them from the command line and -g:none option. I thought that it was because Sun Wireless Toolkit didn't use -g option, but if I compile without -g my class' size is smaller. Finally I read that if you don't use -g you're including line number and source file debug information, so maybe Sun Wireless Toolkit is using -g (all debug information)... I tried from command line and -g but..... kToolbar generated class files are bigger than command line generated
Any help or I'd better forget it ?
21 years ago
Does anyone know how to debug with J2ME Wireless Toolkit? Is there any other tool that provides midlet debugging ?
Thank you,
Horaci Macias
21 years ago
I've seen that System.arraycopy makes a native call, so it seems that you can make some CPU comparations using System.arraycopy in various environments. This is not what I was asking for, I would like to know how to use a profiler with midlets, count how much times a method is called, what methods are called if I press a button, etc.
Cheers,
Horaci Macias
21 years ago
I'll answer the second question since the first question is the same I'm asking too
Take a look at J2ME API and use a List.

The List class is a Screen containing list of choices.
Most of the behavior is common with class
ChoiceGroup and the common API
is defined in interface Choice.
When a List is present on the display the user can interact with it
indefinitely (for instance, traversing from element to element
and possibly
scrolling). These traversing and scrolling operations do not cause
application-visible events. The system notifies
the application when some
Command is fired.
The notification of the application is done with
commandAction .


So if you add an element to this List using
append(String�stringPart, Image�imagePart)
you'll see that image on the list. Now all you have to do is to code your CommandListener to handle commands.
Hope it helps,
Horaci
21 years ago