Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Advanced-java] Generating a html ImageMap from JTabbedPane


  • From: V.Tablan@xxxxxxxxxxxxxxx (Valentin Tablan)
  • Subject: [Advanced-java] Generating a html ImageMap from JTabbedPane
  • Date: Fri, 22 Feb 2002 14:29:10 -0000

When using JComponents to generate off-the-screen images it usually helps if
you size them first (via setSize()) otherwise you get weird results.

    hth,
    Valentin

----- Original Message -----
From: "Terry Williams" <terry.williams@xxxxxxxxxxxxx>
To: <advanced-java@xxxxxxxxxxxxxxxx>
Sent: Friday, February 22, 2002 2:22 PM
Subject: [Advanced-java] Generating a html ImageMap from JTabbedPane


> Hi,
>     I have a slightly strange requirement imposed on me in a project
> that I am working on.
>
> I have to generate an Image from a JTabbedPane (which I have done) and
> an image map ala <AREA> </AREA> for use in an html document.
>
> >From the BasicTabbedPaneUI I can use getTabBounds(JTabbedPane pane, int
> index) to theoretically get the bounding co-ordinates for each of the
> tabs - using this however returns all the tabs aligned vertically
> against the x=0 axis rather than where they are layed out naturally -
> does anyone know why this is the case. I have tried validating the
> JTabbedPane but this makes no difference. Is there an alternate strategy
> I can try?
>
> any ideas please, I and pulling out what little hair I have remaining
> :-)
>
> Terry
>
> _______________________________________________
> Advanced-java mailing list
> Advanced-java@xxxxxxxxxxxxxxxxxxxxxx
> http://lists.xcf.berkeley.edu/mailman/listinfo/advanced-java
>
>