Help coderanch get a
new server
by contributing to the fundraiser

Fernando Sanz

Ranch Hand
+ Follow
since Jun 27, 2003
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Fernando Sanz

Thanks Nathan,
it sounds like quite a difficult task for the moment.
20 years ago
Hi there,
I want to rotate by 90 degrees the JPanel that contains my GUI.
So far I have seen that using getRotateInstance (from AffineTransform), Strings and other components can be rotated.
But I haven't been able to understand how to rotate the whole GUI (or the JPanel, with everything it contains).
Could anybody tell me where I could find an example? or explain how I can rotate a JPanel?
20 years ago
can you send me by e-mail your .jar file, and I'll test it on my PDA?
you can see my e-mail from my profile
20 years ago
Have you tested the jar file on your desktop first?
20 years ago

Originally posted by Joe Ess:

I tried, but I'm not able to make my JPanel ocupy all the available space for the card.
20 years ago
Hi again,
finally I've managed to get it almost working.
I have a container that "holds" everything. At the SOUTH I added my buttons, and at the CENTER I thought I'd add all my different JPanels. Having something like:
c.add(twoPanel, BorderLayout.CENTER) ;
c.add(onePanel, BorderLayout.CENTER) ;
Then, by clicking on the appropiate button, I'd use something like nameOfJPanel.setVisible(true).
But, it doesn't work. The container will only display the last element to be added to any certain location. I mean, it'll display on the CENTER the last panel to be added. In my example, it'll display only the "onePanel".
Any other solution/idea to how to display different panels in the same location?
20 years ago
if you go for a Sharp/Linux, that'll give you lots of flexibility when working on the desktop and PDA at the same time. I've only seen/used it with Jeode, and it was quite good. BTW, what post was the one at the Sun forum?
have you ever tried CrEme? if so, what do you think about it? I prefer it over Jeode, becuase it gives you more area on the screen, it's more user-friendly for the developer (since all you need is a .jar file of your own projects), and it's easier to use Swing if you want to. Plus, you get to use a free evaluation copy of the JVM.
20 years ago

Originally posted by Paul W Lee:

Hi Yuan,
I've been away for several days, and just read your message.Thank you for your reply.
Now i am going to buy a PDA, and run some application developed by Personal Profile. would you give me some advices?
Thank you very much.


Hi Paul,
what kind of PDA do you have in mind?
20 years ago
I'm glad you got it working at the end.
It took me weeks to get, cause I didn't find all the relevan information I needed.
Have fun!
20 years ago

Originally posted by Wayne L Johnson:
A couple of things. First, look at what Jose said. In the class "MyButtonPanel" your constructor has a return type of "void". Constructors DO NOT have return types:

Second, just before your call to "setSize()" you probably want to call "pack()". This lets the layout manager (BorderManager in your case) go actually place and size all of it's components.
If you call "pack()" before the the call to "setSize()", you'll get a full-screen frame. If you call "pack()" after the call to "setSize()", you'll get a small frame only large enough to fit the three buttons.
There is no need to call "setVisible()" in the "MyButtonPanel" class.

Thanks a lot!
I haven't tried it yet, but it sounds like that's my problem
20 years ago
OK, this time I'm trying with a JFrame. So I've created my own JPanel:

Which is used by:

But, the top JPanel doesn't display the buttons that it should.
What am I still doing wrong?
Thanks guys
20 years ago
Hi Marina,
I just went to the NSIcom website and the cab file is available for download.
NSIcom Software: CrEme
Target CPU: x86
Target Operating System: Windws CE 3.0
Are those the options you chose?
20 years ago
Hi there,
I don't want to implement a JFrame as my GUI, so I thought I'd use a JPanel.
Since I was having problems with my GUI, I thought I should start again, with something very simple:
// I didn't post the import, but they're in my code

What am I missing so that it doesn't display my GUI at all?
20 years ago
You're welcome,
I've been using it for a while, and it was fine.
Although, the Emulator is not the best product you'll find from Microsoft. Very often, it makes your computer to crash. It has to do with the Graphics Card. That's one reason why I ended up getting a second hand iPAQ.
Most of the time, when I compile, I just have two lines of code in my programs, and depending if I'm going to test on the desktop or the PDA I comment out one of them:

That way, if you're using JDK 1.1.8, you can be almost sure that it's going to work on the PDA. At least the way your GUI will look. But, it's always better to test the behaving/events on the PDA itself.
For example, buttons might look a bit different, and you'll find out how easy or difficult is actually to tap on them.
Let me know if you don't find the proper .cab file for the Emulator.
20 years ago
You can use JDK 1.1.8.
You need to install a JVM (like CrEme form, just copy the .cab file on the Emulator. Click on the file name, and it'll install itself.
Then, all you need is to compile your code (using JDK 1.1.8) and build a jar file of your project. Then, copy the .jar file on the Emulator as well.
Just click on the .jar file name and your program will load.
20 years ago