Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2007

Tip: Looking for answers? Try searching our database.

Layout question

Thread view: 
nukleus - 18 Feb 2007 00:20 GMT
I am trying to restore a frame to its position from the last
time the app ran, but, for some reason, when bounds are saved,
the frame.y is offset by -19 pix from its true value.

Does anyone know what the issue is?
In following code, if you do:
MainFrameBounds = super.getBounds(); after app.show(),
rect has the same parameters as were loaded.

But, when you the same thing during save(), the
MainFrameBounds.y is offset by -19 pix.

Anybody knows what the issue is?
Thanks in advance.

public class Main extends MainFrame implements Runnable
{

       Rectangle MainFrameBounds = new Rectangle();

       public static void main (String args[])
       {
               NewsMaestro app = new NewsMaestro(args);
               app.show();
       }

       public void show ()
       {
               this.setBounds(MainFrameBounds);
               super.show();
       }

       void save()
       {
               ...

               MainFrameBounds = getBounds();

               pout.print("Main_Frame_Bounds: "
                  + MainFrameBounds.x + ", "
                  + MainFrameBounds.y + ", "
                  + MainFrameBounds.width + ", "
                  + MainFrameBounds.height + NewLine);
       }

       void load()
       {
           (get bounds from parameters file)

           super.setBounds(Bounds);
       }
}
hiwa - 18 Feb 2007 00:42 GMT
> I am trying to restore a frame to its position from the last
> time the app ran, but, for some reason, when bounds are saved,
[quoted text clipped - 49 lines]
>
> }
Post a small demo code that is generally compilable, runnable and
could reproduce your problem. See: http://homepage1.nifty.com/algafield/sscce.html
and http://www.yoda.arachsys.com/java/newsgroups.html
Giles - 19 Feb 2007 04:22 GMT
> I am trying to restore a frame to its position from the last
> time the app ran, but, for some reason, when bounds are saved,
> the frame.y is offset by -19 pix from its true value.

What is this chicken shite, you lil whiner?
You got any active neurons on line?
Are you gonna fall on yerr arse and cry like a 6 year old
pedo boy next?

> Does anyone know what the issue is?
> In following code, if you do:
> MainFrameBounds = super.getBounds(); after app.show(),
> rect has the same parameters as were loaded.

You suck?

> But, when you the same thing during save(), the
> MainFrameBounds.y is offset by -19 pix.

You give a f.ck?

> Anybody knows what the issue is?

How big is yerr output hole?
Good enough fer a chainsaw?

> Thanks in advance.

Is something broken with this thing?

> public class Main extends MainFrame implements Runnable
> {
[quoted text clipped - 24 lines]
>                    + MainFrameBounds.width + ", "
>                    + MainFrameBounds.height + NewLine);

Chainsaw up yerr arse.
You like?
Or you'd rather suck arse of a drunk gorilla?
>         }
>
[quoted text clipped - 6 lines]
>
> }
nukleus - 19 Feb 2007 07:46 GMT
>> I am trying to restore a frame to its position from the last
>> time the app ran, but, for some reason, when bounds are saved,
[quoted text clipped - 4 lines]
>Are you gonna fall on yerr arse and cry like a 6 year old
>pedo boy next?

Oh, DA dong beatle again?

I toldya already, suxy,
you have to dig deeper

and deeper

and deeper

and deeper

and deeper

and even deeper than that

Zo...

How's sucking?

Good enough fer breakfast?

ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ

ZZZZZZZZZZZZZZZZZZZZZZZ

ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ

Gremlin,
Gremlin,

Come in pleeeze.

Could you turn off the lights in Washington DC?

Just fer a couple of hours...

Cause we are nukin' da house

of da white mouse

and ....

Well, thats top secret informationz

As a matter of intercourse.

And then?

>> Does anyone know what the issue is?

You suck?

>> But, when you the same thing during save(), the
>> MainFrameBounds.y is offset by -19 pix.

You lil chicken sh.t impersonator?

>> Anybody knows what the issue is?

>How big is yerr output hole?
>Good enough fer a chainsaw?

Is it?

Is something broken with this thing?

Looks like it locked up or zomefin.

>> public class Main extends MainFrame implements Runnable

Would you like to talk to my monkay?

>Chainsaw up yerr arse.
>You like?

That was a compliment, dummy!

>>Or you'd rather suck arse of a drunk gorilla?

That was a typo.

The correct text is:

Or you'd rather suck DICK of a drunk gorilla?

You see how much difference such a lil thingy can make?

ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ

Gremlin,
Gremlin,

We're coming.

Where?

void loadCrapUpToYerrEars()
{
    (get more crap from Google and then Poogle)
    super.setBunnies(HorseShitPile);
}
Lew - 20 Feb 2007 01:52 GMT
"Giles" wrote a bunch of over-the-top obscene nonsense.

(understandably perturbed response to Giles's abuse.)

Nukleus, please do not feed this troll. "Giles" is obviously getting their
jollies just pissing you off. Don't give them the satisfaction.

You and I don't see eye to eye on many things, but I do not think you or we
should have to put up with the offensive playground insults "Giles" posted.

Ignore them.

- Lew
Giles - 20 Feb 2007 03:52 GMT
> "Giles" wrote a bunch of over-the-top obscene nonsense.
>
[quoted text clipped - 9 lines]
>
> - Lew

Sorry, pal. I was minding my own business when "Nukleus" saw fit to
flame me.
I don't know who he is, and I don't care.
I never wrote to him or about him, so I don't know what his problem
is.
My "abuse" was ALL HIS RESPONSES to one of my posts.
100%. HIS WORDS
Nice guy, huh?
I just posted them back to him.
Have a nice day!
Lew - 20 Feb 2007 13:25 GMT
Lew wrote:
>> "Giles" wrote a bunch of over-the-top obscene nonsense.
>>
[quoted text clipped - 7 lines]
>>
>> Ignore them.

> Sorry, pal. I was minding my own business when "Nukleus" saw fit to
> flame me.
[quoted text clipped - 6 lines]
> I just posted them back to him.
> Have a nice day!

Ah, I see. How very unfortunate.

It is true that some people's posting style is rather inflammatory. I have
more sympathy for your point of view now as well.

- Lew


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.