Results 1 to 11 of 11

Thread: Topless JFrame

  1. #1
    ld_pvl is offline Member
    Join Date
    Jun 2009
    Posts
    14
    Rep Power
    0

    Default Topless JFrame

    Hello,

    How can I get rid of the header of a JFrame or a JInternalFrame?

    For example, instead of having this kind of window:

    =========
    Title [-][x]
    =========

    Content

    =========

    I would like something like this

    =========

    Content

    =========

    I just need a container with borders which can be resizable by the user.

    Just to elaborate the main problem that I'm looking for a solution now: I have a number of JInternalFrames inside a JDesktopPane which in turn is inside a JApplet. What I would like to do now is to get rid of the headers whilst the user could still drag them about, and resize them. It would not matter, for now, whether the desktop pane should be the parent or the applet should be the parent of the topless frames.

    Some have advised me to use JWindows, however apparently they can't be child components of an applet. The .setUndecorated(true) method works only for a JFrame which again cannot be added into a JApplet. JInternalFrames do not possess .setUndecorated(boolean boo) method.

    Any further ideas?

    Thanks,
    LD

  2. #2
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,234
    Rep Power
    7

    Default

    Triple posted in in another forum.

  3. #3
    ld_pvl is offline Member
    Join Date
    Jun 2009
    Posts
    14
    Rep Power
    0

    Default

    Quote Originally Posted by camickr View Post
    Triple posted in in another forum.
    I admit it. I've posted on some other forums as well. Just looking for help. It's not a crime is it? =]

    Can you help me on this matter? Or you'd rather busting? =)

    I just noticed that it's your first post in this forum. I'm amazed dude =P.
    Last edited by ld_pvl; 07-16-2009 at 08:27 AM.

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    No, it's not a crime to cross-post, but it is considered poor form by many to cross-post without being upfront about it. The problem comes when the volunteers here and elsewhere give time and effort to try to come up with and post a solution without knowing that the very same solution was posted elsewhere perhaps a day prior. I'm sure you don't like wasting your time by expending that same precious time that could have been used for work or pleasure by formulating an answer to an insensitive and selfish poster who already received the same answer days ago. For this reason, many will refuse to help repeat offenders.

    So with this in mind, I welcome cross-posts here as long as the poster posts links in all cross-posts to each other. For further views on this, please see what the JavaRanch has to say on this: BeForthrightWhenCrossPostingToOtherSites
    Last edited by Fubarable; 07-16-2009 at 02:05 PM.

  5. #5
    ld_pvl is offline Member
    Join Date
    Jun 2009
    Posts
    14
    Rep Power
    0

    Default

    I did not post all the posts at the same time. I only move to another forum whenever I feel that the other forum lack the answers that I'm looking for.

    I always check all the topic in the forums and keep them up-to-dated. When I've solved my matter, I announce that the case is closed in every forum with the aim not to waste anybody's time. An example of which is the post right in this topic which is the summarization of everything that I have discussed with other people in another forum but yet my problem hasn't been solved I sought help in this forum.

    Sometimes, I have experience that relying solely on forum can have situations when you are the person left hanging for days without a suggestion or advice.

    I apologize for making anyone upset. But I'm still looking for a solution for my problem =]

    As posted, what I am looking for right now is just a container which will contain some Swing controls, which the user can resize and drag. It appears that even if you can get rid of the title bar of the (internal) frames, you would not be able resize them (in windows point).

    Regards,
    LD
    Last edited by ld_pvl; 07-16-2009 at 04:11 PM.

  6. #6
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    I've yet to see a post in your Sun thread stating that you've posted here, or a link to either thread in the other. You haven't seem to have read the link that I have provided despite its being there to help you get help. Again, transparency is paramount. Best of luck.

  7. #7
    ld_pvl is offline Member
    Join Date
    Jun 2009
    Posts
    14
    Rep Power
    0

    Default

    No, I have read the link, and yet I felt no necessity to state the link in my thread in Sun's forum that I've posted here because of three reasons:

    - I've asked in Sun's forums first. Therefore, I should be posting the link of the Sun's forum thread here instead, but I've already summarized all the important points which were derived from the other forum. However, as you request: I have visited sun's forum but yet to find the solution for my problem, so I'm asking here.

    - Second, we haven't discussed anything in this thread, have we? So what's the point?

    - And the third: "To be able to post links or images your post count must be 20 or greater. You currently have 4 posts."

    This is getting way off-topic and fussy. I thought forums are the places where we can ask questions and discuss the answers for those questions, not the places where you get scrutinized for your actions.

    Yet I apologize again for not making clear that I have asked in another forum first. But please can we get back to the main topic?

    Regards,
    LD

  8. #8
    ld_pvl is offline Member
    Join Date
    Jun 2009
    Posts
    14
    Rep Power
    0

    Default

    I have been discussing the matter on the other forum and was given some good advices. Please visit the suns forums, swing section, thread "Topless JFrame", if you are interested. I cannot post any link for the moment.

  9. #9
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Thanks for updating us on this. I'll post the link: Swing - Topless JFrame

  10. #10
    ld_pvl is offline Member
    Join Date
    Jun 2009
    Posts
    14
    Rep Power
    0

    Default

    No problemo dude =]. Just doing the right thing as you guys advised me.

  11. #11
    ld_pvl is offline Member
    Join Date
    Jun 2009
    Posts
    14
    Rep Power
    0

    Default

    Just to note, the problem has been solved and an example is given in the Sun's forums. Please follow the link provided above by Fubarable if you're interested.

    Regards,
    LD

Similar Threads

  1. how to use JFrame in JSP ??
    By priyanka sharma in forum JavaServer Pages (JSP) and JSTL
    Replies: 8
    Last Post: 04-06-2011, 04:51 AM
  2. JFrame
    By aldo in forum Java Applets
    Replies: 2
    Last Post: 06-24-2009, 05:08 AM
  3. Replies: 4
    Last Post: 04-22-2009, 11:02 PM
  4. help in JFrame
    By kirtesh4u in forum AWT / Swing
    Replies: 1
    Last Post: 11-18-2008, 12:26 AM
  5. jframe
    By amith in forum AWT / Swing
    Replies: 1
    Last Post: 05-15-2008, 10:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •