Mihalache Catalin

Greenhorn
+ Follow
since Sep 01, 2003
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 Mihalache Catalin

Hello,
I use Tomcat 4.1.24 with SUN J2SDK 1.4.2 on Windows 2000 Professional.
In my webApplication I perform a custom authentication
through HTTPS (not HTTP). If the account and the password are
OK, I start a new session and I put some important data into
the session object. After this I perform a redirect to a
HTTP address in the same site and I want to re-obtain that
important data. Here is my problem: it's a new session, it isn't
the old one (from HTTPS). I need the same session.
So, how can I solve this problem ?
Thanks in advance for your help,
Catalin
20 years ago
Hi,
It is possible to run Tomcat on Windows with GCJ instead of SUN JDK ?
Thanks,
Cata
20 years ago
Hi,
On RedHat Linux is possible to run TOMCAT 4.1.27 compiled in native code.
The link is:
http://people.redhat.com/gbenson/naoko/
Is there somebody that knows how to compile Tomcat (4.1.x) with gcj
for Windows or, at least, to run Tomcat with gcj instean of SUN j2SDK ?
Thanks,
Catalin
20 years ago
This is the problematic code:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class myDialog extends JDialog {
/** Creates a new instance of myDialog */
public myDialog(){
setModal(true);
setTitle("Some data into a dialog window");
getContentPane().setLayout(null);
setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
JButton btnOpenJFrame = new JButton("Open a JFrame()");
btnOpenJFrame.setSize(300, 25);
getContentPane().add(btnOpenJFrame);
btnOpenJFrame.setLocation(30, 30);

pack();
setLocation(10, 10);
setSize(400, 300);
setResizable(false);

addWindowListener(
new WindowAdapter(){
public void windowClosing(WindowEvent e){
myDialog.this.dispose();
System.exit(0);
}
}
);

btnOpenJFrame.addActionListener(
new ActionListener(){
public void actionPerformed(ActionEvent e){
JFrame myJFrame = new JFrame(
"Here I perform some edit operations");
myJFrame.setDefaultCloseOperation(
JFrame.DISPOSE_ON_CLOSE);
myJFrame.setSize(600, 500);
myJFrame.setLocation(10, 10);
myJFrame.show();
myJFrame.requestFocus();
}
}
);

}

/** Main entry point */
public static void main(String args[]){
new myDialog().show();
}

}
20 years ago
This is the code:

import java.awt.event.*;
import javax.swing.*;
public class myDialog extends JDialog {
/** Creates a new instance of myDialog */
public myDialog(){
setModal(true);
setTitle("Some data into a dialog window");
getContentPane().setLayout(null);
setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
JButton btnOpenJFrame = new JButton("Open a JFrame()");
btnOpenJFrame.setSize(300, 25);
getContentPane().add(btnOpenJFrame);
btnOpenJFrame.setLocation(30, 30);

pack();
setLocation(10, 10);
setSize(400, 300);
setResizable(false);

addWindowListener(
new WindowAdapter(){
public void windowClosing(WindowEvent e){
myDialog.this.dispose();
System.exit(0);
}
}
);

btnOpenJFrame.addActionListener(
new ActionListener(){
public void actionPerformed(ActionEvent e){
JFrame myJFrame = new JFrame(
"Here I perform some edit operations");
myJFrame.setDefaultCloseOperation(
JFrame.DISPOSE_ON_CLOSE);
myJFrame.setSize(600, 500);
myJFrame.setLocation(10, 10);
myJFrame.show();
myJFrame.requestFocus();
}
}
);

}

/** Main entry point */
public static void main(String args[]){
new myDialog().show();
}
}
When I push the button it will appear a frame but I cannot use it!
20 years ago
Thanks for your responses,
My problem is:
I have a JDialog with some data. When I push a button in this dialog (an "edit" button) I need to open a JFrame with some details for editing.
I want this JFrame to be on top of the parent JDialog; I don't want to close the original JDialog; I just want JDialog to be parent for a JFrame.
I tried: I can open that JFrame but it always loose the focus.
Thanks,
Cata
20 years ago
Hello to all,
From a very specific reason I need to open a JFrame from a JDialog.
I think that is impossible.
Maybe somebody bad the same problem and can help me with some tips.
Thaks,
Cata
20 years ago