Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp

Alex Iordache

Ranch Hand
+ Follow
since Mar 13, 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 Alex Iordache

Originally posted by Kapil Nagpal:
We will be sticking to WebLogic 6.1 I guess. If anybody can point me to any site / example it would be a great help

Thanks all. I found the answer:
1.There is a pseudo Xserver which should be started first or,
2.A package named 'PJA Toolkit' does exaclty what I need: replace awt.Image package with theirs and is under GNU License.
17 years ago
I use a servlet for generating images and I have this problem: under Linux RedHat I cannot obtain a Graphics object to be used for drawing into it because (I think) the system doesn't allow me to do so as long as the X environment isn't running.
What I tried:
myClass extends Canvas{
.... Graphics g = this.createImage(w,h).getGraphics()
}
and:
...Graphics g = this.getToolkit().createImage(w,h).getGraphics()
Any suggestions ?
Thanks a lot.
17 years ago
I use a servlet for generating images and I have this problem: under Linux RedHat I cannot obtain a Graphics object to be used for drawing into it because (I think) the system doesn't allow me to do so as long as the X environment isn't running.
What I tried:
myClass extends Canvas{
.... Graphics g = this.createImage(w,h).getGraphics()
}
and:
...Graphics g = this.getToolkit().createImage(w,h).getGraphics()
Any suggestions ?
Thanks a lot.
17 years ago
I am about to make an applet for listening MP3s. Do you know if it's possible in jdk1.1 (as we know, most common browsers include this java version).
Thanks,
Alex
18 years ago
How can I catch the authorization request message when opening an URL connection? I get the 401 (Unauthorized) code in the message content, and the message is saying that I should put authorization info in the header content. I would like to be able to show a Dialog to the user in order to introduce the authorization information. The allowuserinteraction property is set to true in my connection.
Thanks!
18 years ago
I have a page with three frames.
The top frame is a login form.
The left frame is a navigation menu.
The right frame is the main page.
The problem is that when a login is a success, I put String values into a session. When the String values in the session ever turn null, I know that my session has expired.
There is no problem when my server is run from it's main URL: www.mycompany.com
The problem is that when my alias www.mycompany.org is loggin in, the menu appears, the values are put into the session(same
code), but my main pages saying that my session has timed out...
What could it be ?
18 years ago
I have a Win NT machine which EJB resides.I have got Windows 98 nd windows 95 m/c's connected to that NT m/c.
I made a login screen (using JFrame) in one of the client machines (Windows platform), from which one can login to my EJB application in the NT Server.
I am not able to connect ..
Please provide me the steps for doing that..and also the requiremnts..
Thx.
18 years ago
I like to know if there is a utility to transfer data from a stored procedure into an XML Document which
could be later sent to client using SOAP. The database used to store data is Sybase. So, the utility
should be Sybase Compliant.
A mistake, I think.
18 years ago
I will try to perform project,which allows people to chat by voice.
I need java component which can do this task..
i use jdk1.2,jsp,and tomcat as web server.
Any suggestions would be appreciated.
18 years ago
I will try to perform project,which allows people to chat by voice.
I need java component which can do this task..
i use jdk1.2,jsp,and tomcat as web server.
Any suggestions would be appreciated.
18 years ago
Reading the API of JOptionPane in the most parameters showInputDialog (see copy below), at the end I
read :
It is up to the UI to decide how best to represent the selectionValues, but usually a JComboBox, JList,
or JTextField will be used.
Now in a JCombobox you are sure only one value is selected, in a list you can select more.
How can I make sure :
that I have a combobox,
or in case I will get a list, that only one value can be selected?
General idea is : how to make sure there is only one selection possible?
Please add codesnippit,
Thanks,
javabit
showInputDialog
public static Object showInputDialog(Component parentComponent,
Object message,
String title,
int messageType,
Icon icon,
Object[] selectionValues,
Object initialSelectionValue)

Prompts the user for input in a blocking dialog where the initial selection, possible selections, and
all other options can be specified. The user will able to choose from selectionValues, where null implies
the user can input whatever they wish, usually by means of a JTextField. initialSelectionValue is the
initial value to prompt the user with. It is up to the UI to decide how best to represent the selectionValues,
but usually a JComboBox, JList, or JTextField will be used.
An example will help me very much. Thanks.
18 years ago
Does anyone have any knowledge of an interface called RReports? I am using it now to access an Oracle database but have been having problems with the data not showing and even out of memory errors during sql calls through it. It works great with MS Access and according to the writer it should work with
Oracle. If anyone has knowledge of this interface please help. Thanks in advance.
18 years ago
Hello, I have a piece of code written in C++ which I have wrapped using JNI so that I can execute it from a Java application.
In such an environment, my C++ code can get a pointer to the Java Virtual Machine (cause it is being executed in its domain) and therefore it can execute other java classes itself.
Now I would like to try another chance. I would like to execute a C++ application as an standalone application rather than in the Java Virtual Machine domain. And I would like the C++ code to get a pointer to the JVM in order to execute java classes just like I did in the former environment.
Does anybody know whether it is possible? Any suggestions would be appreciated.
18 years ago