A question about JDialog Title bar

Dear All...
I'm using Netbeans 6.0.1 IDE it looks great...
but suddenly i failed to create a JDialog without title bar (or without Frame Border - that forder which contains the image icon, form title, minimize button, maximize button and close button)
i want a simple dialog box without frame border (or title bar) is it possible?????????
and if it is possible can any one say how?
thank you...
Amanj MM

Well, according to the api docs you should try
java.awt.Dialog.setUndecorated(true)

Similar Messages

  • Setting icon in JDialog title bar.

    Hi all,
    Can u send me the code for setting the icon in the title bar of JDialog?
    Currently i'm working on linux.
    Is there any possible way to set it.

    1) Swing related questions should be posted in the Swing forum.
    2) Quit multi posting, you where given the answer yesterday when you originally posted this question.

  • Another question about altering nav bar templates

    I'm currently building a site using the "modern" template in iweb. So far I've been able to do a lot of customizations, which I love, but the nav bar is driving me CRAZY!
    I've read a bunch of other topics and from that I've managed to create my own text box nav bar, but it's still not 100% what I'd like. Here's what I'm looking for:
    I love the modern template except the rollover colour in the nav bar being red. I'd like the colour to be dark grey when rolled over just like it is when you're visiting the current page. I made my own text bar in that way but now when I'm on a specific page, that page heading in the nav bar doesn't stay highlighted in dark grey. Is that clear? I'm not familiar with web design and the language that corresponds so if there's anything I can do to clarify, please let me know. I need to know how I can get both: nav bar rolled over in dark grey AND the current page (page being viewed) in dark grey. If anyone has any information to help, I'd greatly appreciate it!
    Thanks in advance,
    S

    Hi OT!
    Thanks for the help. I've already done what you suggested but it unfortunately doesn't answer what I'm looking for.
    In the modern template, when you're on a specific page, that page's header in the nav bar is dark grey whereas the other tabs in the nav bar remain light grey. I don't want the tabs the change after they've been clicked, rather, I want to keep the function of the template and simply change the rollover colour. Two questions:
    1. Is there are way to make a text nav bar do the same thing as the template so when I'm viewing a specific page, the page's nav bar tab remains dark grey but goes back to light grey when I'm viewing a different page?
    2. Thank you for the link with the HTML snippet. I had found that link last week but couldn't find it again. I don't know how to alter HTML so while this seems like a great option, I'm wondering how it works. If I put an HTML snippet in the header, is it viewable when the website is live? Is there a way to view the source code of a page?
    I apologize if these questions seem rudimentary....I'm quite new to all of this!!!
    Thanks for all your help!!!
    S

  • Question about Theme title...

    Quick question, I have applied the theme "open" from the travel section but I cannot figure out how to put in my title where it says "title one" please help.

    Be sure you are in "Themes" then just type in what you want in the text field next to "Title 1:" then hit apply. You will be able to see the title as well as the pictures or video you dropped in displayed in the preview before you apply it.

  • Question about JDialog - dispose()

    I use in my application a custom JDialog to get inputs from the user.
    When the "ok" button is pressed, i store all the inputs i need inside an object and then i dispose the JDialog.
    Now, the code which made the JDialog retrieve the object containing all the inputs through a call to a method of my custom JDialog.
    But this happens after i called dispose() on my JDialog.
    According to what i understood about it, it should release all the resources related to the JDialog and all its own children, so, how can i possibly access to it after i have disposed it?
    The object is not destroyed?
    Is there a time interval before it is "destroyed"?
    Thanks,
    Nite

    According to what i understood about it, it should release all the resources related to the JDialog and all its own children, so, how can i possibly access to it after i have disposed it?Read more carefully.
    Releases all of the native screen resources used by this Window, its subcomponents, and all of its owned children. That is, the resources for these Components will be destroyed, any memory they consume will be returned to the OS, and they will be marked as undisplayable.
    dispose() doesn't pre-empt the garbage collector. The native resources related to displaying the dialog are released, not the associated Java objects.
    Fresh resources will be obtained form the OS if the dialog is redisplayed.
    The Window and its subcomponents can be made displayable again by rebuilding the native resources with a subsequent call to pack or show.
    db

  • Question about safari status bar

    Hi All,
    I have a web application , mainpage contained an iframe . the Page in iframe will set data to status bar . And mainpage will scan status bar by a timer to get the update info . All the flow was controlled by JavaScript .
    It works fine with IE , but for Safari , i saw the status bar was updated and the data is correct , but window.status alway be empty .
    Did anyone know how to get the data ? if Safari can show the correct data in status bar , it should mean the browser contains the data , right?

    BTW , the version number of my Safari is 5.0.1

  • Question about ScrollPane scroll bar

    Hello Everyone,
    Currently I am working in Flash Professional 8. I need to
    customize the scroll bar in the ScrollPane. I figured out how to
    customize the graphics.
    Instead of the lil grey scroll bar that you can drag I want
    it to be an arrow. I made it into an arrow but there appears to be
    some sort of size restriction on it and the arrow I created appears
    distorted. Is there some way I can change this size restriction and
    have the scroll bar be 100 pixels high if I wanted it to be?
    Thanks in advance for any help!

    anybody?

  • Question about transparent scroll bar?

    i have a Tree with some data in it. Verticalscrollpolicy = "ON". HorizontalScrollPolicy = "ON".
    When i click on one of my branches it expands, making horizontal width greater than the horizontal size of the Tree. The horizontal scroll bar springs into action, but the vertical scroll bar is still disabled because the data hasn't expanded that far vertically yet.
    However, when the vertical bar is disabled, the text overlaps the vertical scroll bar, like the bar is clear or something. I don't want this. I want the bar to be opaque, so the text never shows through it, even when the vertical scroll bar is disabled.
    any ideas? thanks!

    anybody?

  • Basic question about positioning titles & text...

    Hi there,
    I am working on a presentation that will be shown via laptop>projector>big screen. I am very used to working with the title safe option for tv screens, does this not apply for my text using laptop and projector? (I need all the screen space I can get!)
    Thanks,
    Karen

    I am no expert so please check other replies.
    The "TV safe" area ONLY applies to television sets that block the edges of the picture from the viewer with the TV's plastic or whatever material frame that "blocks" the view of these edges.
    Your laptop and projector will show everything.
    No need to consider "TV Safe" for your project.
    Good Luck!
    Frank

  • A few questions about my navigation bar, centering, getting rid of margins and changing colours via

    I am having a few problems with my navigation bar, could be quite simple fixes but I haven't managed to find an answer yet that works. I am wanting to get rid of the white margins at the top of my page and just below the nav bar and centre the text on the page. I want to get rid of the gradient and turn the background white, black text and a light grey hover background. I have a link here
    http://vps3147.inmotionhosting.com/~hannahro/home.html
    I tried adding aligning the text in nav and I tried changing float left to center. but this only listed my nav bar contents under each other centered. I tried to change the background colour in nav ul from #efefef to #ffffff. However this made no difference either
    Here is the navigation css
    @charset "UTF-8";
    /* CSS Document */
    nav {
              margin: 0 auto;
              width: 100%;
              text-align: center;
    nav ul ul {
              display: none;
              nav ul li:hover > ul {
                        display: block;
    nav ul {
              width: 100%;
              max-width: 1064px;
              background: #efefef;
              background: linear-gradient(top, #efefef 0%, #bbbbbb 100%);
              background: -moz-linear-gradient(top, #efefef 0%, #bbbbbb 100%);
              background: -webkit-linear-gradient(top, #efefef 0%,#bbbbbb 100%);
              box-shadow: 0px 0px 9px rgba(0,0,0,0.15);
              padding: 0px 60px 0px 60px;
              /*border-radius: 10px;*/
              list-style: none;
              position: relative;
              display: inline-table;
              nav ul:after {
                        content: ""; clear: both; display: block;
              nav ul li {
                        float: left;
                        nav ul li:hover {
                                  background: #4b545f;
                                  background: linear-gradient(top, #4f5964 0%, #5f6975 40%);
                                  background: -moz-linear-gradient(top, #4f5964 0%, #5f6975 40%);
                                  background: -webkit-linear-gradient(top, #4f5964 0%,#5f6975 40%);
                                  nav ul li:hover a {
                                            color: #fff;
                        nav ul li a {
              display: block;
              padding: 20px 20px;
              color: #757575;
              text-decoration: none;
              nav ul ul {
                        width: auto;
                        background: #5f6975; border-radius: 0px; padding: 0;
                        position: absolute; top: 100%;
                        nav ul ul li {
                                  float: none;
                                  border-top: 1px solid #6b727c;
                                  border-bottom: 1px solid #575f6a; position: relative;
                                  nav ul ul li a {
                                            padding: 15px 40px;
                                            color: #fff;
                                            nav ul ul li a:hover {
                                                      background: #4b545f;
              nav ul ul ul {
                        position: absolute; left: 100%; top:0;

    I'm wanting to change the background colour of the nav bar to white, without a gradient,
    Change this:
    nav ul {
        width: 100%;
        max-width: 1064px;
        background: #efefef;
        background: linear-gradient(top, #efefef 0%, #bbbbbb 100%);
        background: -moz-linear-gradient(top, #efefef 0%, #bbbbbb 100%);
        background: -webkit-linear-gradient(top, #efefef 0%,#bbbbbb 100%);
        box-shadow: 0px 0px 9px rgba(0,0,0,0.15);
        padding: 0px 60px 0px 60px;
        /*border-radius: 10px;*/
        list-style: none;
        position: relative;
        display: inline-table;
    To this:
    width: 100%;
        max-width: 1064px;
        background: #FFF;
        box-shadow: 0px 0px 9px rgba(0,0,0,0.15);
        padding: 0px 60px 0px 60px;
        /*border-radius: 10px;*/
        list-style: none;
        position: relative;
        display: inline-table;
    And add this:
    nav li a {
         width:5em;  /**ADJUST TOP MENU WIDTH TO FIT**/
         text-align:left;
    Nancy O.

  • Question about JDialog

    hi, i have a JDialog i want to use when I can't find a certain file. However, there are no Swing Components on the screen when i want to fire it up.
    Is there a way to use a JDialog in this instance? Should I just instantiate an invisible JFrame object and then use it?
    thanks

    That is an option. JDialog does not necessarily need a Window to be on screen to show, that is why there is the no argument construct "public JDialog()". You can use that except yo have no owner for the dialog so be cautious when using this later when there are more windows on screen
    ICE

  • Question about black side bars CS6

    I am exporting media from and HD 1080 original, I use the H264 preset, everything looks fine in Media Encoder, once it's encoded the image doesn't fill the screen, I have black bars on left and right.  Why?  What can I do?

    my export settings are 1080i, 16:9 ratio 1440x1080.  My export settings are the same.  These black bars appear in my computer even when I am not exporting to DVD but exporting H264 of FLV.  When I view the footage in Media Encoder prior to exporting the composition is fine there are no black bars.  However, once it's exported in any format the bars appear.

  • A question about song titles

    hello everyone, i am a new mac user and i'm having problems with itunes
    ok my main problem is that i have a fairly large music collection and i have always organised them without using tags, just with the filenames (i.e artist-album-song.mp3) so now they're all showing up in itunes as unknown artist . is there a program available that can automatically sort it out and split the three into the right categories? (manually renaming everything is not an option, it would take weeks) someone recommended idtunes in another thread but using that would cost me over $200 to fix everything and anyway all the i nformation on my songs is correct it just needs to be put into tags.
    if this is not possible can anyone recommend a different music player that allows that kind of thing?
    imac g5   Mac OS X (10.4.3)  

    If you need utility software for Macs, go to http://versiontracker.com.
    I did a search on "mp3 tags" and this came up.
    These programs are freeware or inexpensive shareware. Maybe one of these can do the job for you.

  • Help - How to Remove X on the Dialog Title Bar

    I have been trying for a while to remove the X(Close) on the Jdialog title bar. Is this possible? Is there an alternative? I have a progress bar in the JDialog and don't want to user to X out....
    appeciate the help.

    Use setUndecorated(true) to remove the entire titlebar...
    otherwise it is not possible to just hide the close button b/c it is provided by the OS's window manager. Try using a JWindow instead.

  • Add maximumsize icon to title bar in JDialog

    My question is how to add a maximumsize icon to the title bar of JDialog, i want to create a dialog that when user double-click the JDialog's title bar or click the maximumsize icon in the JDialog's title bar the dialog can be displayed as maximum size. it just likes Frame.
    Thanks in advance!
    lupeng
    [email protected]

    Hi Lupeng,
    I can think of 2 approaches, firstly and probably the most easiest is to use a frame to mimic the behaviour of the dialog.
    Secondly, implement your own L&F for dialogs by wrting your own RootPaneUI that uses your own version of TitlePane. The TitlePane class will take care of the buttons and mouse handling. Have a look at BasicRootPaneUI to get a better understanding of the implementation ;)
    N35Sy

Maybe you are looking for

  • Choosing Default Program for Opening .doc files

    Hi all, A couple of days ago I somehow managed to change my default program for opening .doc files to Pages and I would rather use Microsoft Word as the default. I dont know how I ended up changing this default, but I would like to know how to put th

  • Digitizer/Dead spots

    i have an iphone it works great in some places but i have a couple of dead spots. the phone,email,safari, and ipod icons dont work at all. since i have these dead spots on the bottom row of the phone and also in the middle of the phone. Would buying

  • Oracle Database Inserts Via Microsoft Data Transformation Services (DTS)

    This question involves a SQL Server database and an Oracle database. The databases reside on different servers. One of our developers periodically uses Microsoft DTS (Data Transformation Services) to read data from a SQL Server database and insert it

  • Help Desk Ticket - Waiting on User

    Having one of those days :-) Can't seem to find anything on if having Waiting on User in affect on a ticket stops its tracking time. I hope it does, because a single long term ticket can completely screw up your ticket response times. This topic firs

  • Doubts on IDOC Scenarios

    Hi Experts, 1) How many Business/Technical Systems created for <b>IDOC to File</b> and <b>File to IDOC</b>? 2) Is it necessary to create Business systems while doing above scenarios (both cases) ? 3) Is it necessary to create RFC Destination (like R/