Chichi Gautam

Greenhorn
+ Follow
since Jun 12, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Chichi Gautam

yes !
I have added JInternalFrames to panel...

with the above problem,
I am also having problem with placing the InternalFrame to front.
Can anyone help plzz
thanks.
18 years ago
I am having a JPanel that impelements a Layout Manager.
In this I am having few JInternalFrames
for ex following actions are taken::
-- I iconify an Internal frame
-- resize the main frame containing the panel,and thus resize the panel
-- deiconify the frame
-- again iconify the same frame...(sorry if this is confusing )

Here the frame gets Iconified in its previous iconified location.
Where as I want it to be iconified at the bottom of the panel
everytime i resize the panel.

Is it that while the Internal Frame is iconified
it doesn't listen to the layout container
or some thing different..


Please do help me JavaRanchers.
Thanks in advance.
18 years ago
Thanks to both of you.

Now what I did is the code someWhat like this

public void actionPerformed(ActionEvent evt)
{
LoginFrame.setVisible(false);


Thread LoginThread=new Thread()
{
public void run()
{
LoginInit();
}
};
LoginThread.setDaemon(true);
LoginThread.start();
}

where LoginInit() does all the login and initialization process.

Also it has
if(IsImageLoaded)
{
MainFrame.setVisible(true);
}


This also contains the adding of few components to MainFrame.

Now as soon as I say Submit and reach MainFrame.setVisible(true)
I can view the MainFrame .

This mainFrame was shown Gray previously, until ActionPerformed is completed.

Well, Thanks to java ranchers........
18 years ago
I am having a simple login window

and in the actionPerformed of the Login Button
I have to a lot of initialization for my application.

But i want my Main Frame to be visible as soon as i click Login button

This MainFrame is having a menu bar and different images

Each of the tasks in actionPerformed are as separate threads.

But my MainFrame is shown as complete gray frame...(though all the images are
loaded)

and is completely visible with its components ONLY at the end of ActionPerformed

Can anyOne help me out of this..


I want to display the frame as soon as i click Login button.

Thanks in advance
18 years ago
In this line compiler first executes (byte)b and then multipiles
result with 2....which gives an integer result
so trying to store it into a byte will give error..
correct code is ::

byte b=1;
b=(byte)(b*2);