Break this....

I have this problem of changing the look and feel of my application. I am not using any readymade theme but applying my own color combination to whole application. I am stuck in changing the background color of dialog boxes, filechoosers. basically the pop-ups. The sample code is shown below:
public class TestDialog extends javax.swing.JDialog {
/** Creates new form TestDialog */
public TestDialog(java.awt.Frame parent, boolean modal) {
super(parent, modal);
initComponents();
/** This method is called from within the constructor to
* initialize the form.
private void initComponents() {
jOptionPane1 = new javax.swing.JOptionPane();
setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
setTitle("Test Dialog");
setUndecorated(true);
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt) {
closeDialog(evt);
jOptionPane1.setBackground(new java.awt.Color(239, 239, 239));
jOptionPane1.setBorder(null);
jOptionPane1.setForeground(new java.awt.Color(0, 0, 0));
jOptionPane1.setMessageType(javax.swing.JOptionPane.QUESTION_MESSAGE);
jOptionPane1.setOptionType(javax.swing.JOptionPane.YES_NO_OPTION);
jOptionPane1.setPreferredSize(new java.awt.Dimension(200, 90));
getContentPane().add(jOptionPane1, java.awt.BorderLayout.CENTER);
pack();
/** Closes the dialog */
private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog
setVisible(false);
dispose();
* @param args the command line arguments
public static void main(String args[]) {
new TestDialog(new javax.swing.JFrame(), true).show();
// Variables declaration
private javax.swing.JOptionPane jOptionPane1;
// End of variables declaration
Now I dont want that irritating gray background, so i am changing it to some Color(239,239,239). buts its coming up only on the border area.. and not on the full screen. Now what do I have to change.. here i have three components.. JDialog, JOptionPane, and a parent frame... i have tried changing background of all three but for no use. Please help me out.. its urgent. Thanx in advance.

At other post
http://forums.java.sun.com/thread.jsp?forum=57&thread=264901

Similar Messages

  • Can any one tell me how to break this into separate columns 05/13/2014,"46","48","37","70","74","1","2","121000000.0000"

    Can any one tell me how to break this into separate columns 05/13/2014,"46","48","37","70","74","1","2","121000000.0000"

    Paste your content into TextEdit. Format > Make Plain Text.
    Comand-S to save.
    Command-Click the filename at the top of the TextEdit window. Click on the second line, the name of the folder where you saved the document.
    Select the extension of the document Name in the finder window that is being displayed and replace TXT with CSV.
    Right-Click the csv file and choose Open With > Numbers.
    Numbers will open with a column for each field in your data.
    Jerry

  • I am working on a book in the book module of Lightroom. When I started, I didn't realize that there was a limit of 240 pages. I am going to need to break this book up into two books now. Is there anyway to move pages from one book and create a new book wi

    I am working on a book in the book module of Lightroom. When I started, I didn't realize that there was a page limit of 240 pages. I am going to need to break this book up into two books now. Is there a way to take pages from one book to start a second book without having to "redo" the pages again in the new book?

  • How to Break this String and put into a Table

    Hi all,
    Currently i working on the Reading of Csv file.THe Csv file wil be stored as BLOB in one table.
    The Format of the Csv file is
    EMPCODE :DATEOFBIRTH
    312089 ,12/01/1984
    321456 ,03/05/1980
    120212 ,04/08/1987
    312456 ,23/12/1977
    311110 ,12/04/1998
    323232 ,20/06/1990
    UPLOAD_BLOB
    column     Datatype
    UploadId Number
    File_details BLOB
    And i reading the BLOB in one procedure and i m getting the String as like this ---->
    "312089 ,12/01/1984
    321456 ,03/05/1980
    120212 ,04/08/1987
    312456 ,23/12/1977
    311110 ,12/04/1998
    323232 ,20/06/1990"
    I am Dont know how to Parse this String and put in table
    While 1<STRING.LENGTH
    LOOP
    EMPCODE=SUBSTRING();
    DATEOFBIRTH=SUBSTRING();
    INSERT INTO TABLE VALID_EMPCODE(EMPCODE,DATEOFBIRTH)VALUES(......);END LOOP
    VALID_EMPCODE
    EMPCODE VARCHAR2(30)
    DATEOFBIRTH VARCHAR2(15)
    Can any one tell me how to parse this whole string and break them

    Duplicate post
    How to Break this String and put into a Table

  • Why is Safari/Mac breaking this site?

    What can we do to make Safari/Mac view this site without errors?
    http://apcinternet.com/edenvale/
    Site markup is 100% correct http://validator.w3.org/check?uri=http%3A%2F%2Fapcinternet.com%2Fedenvale%2F&cha rset=%28detect+automatically%29&doctype=Inline&group=0 and works perfectly on Firefox, IE7, IE6, Opera and even Safari/PC - but breaks badly on Safari/Mac.
    Any thoughts would be very welcome.
    Steve

    Klaus, from what ulysses69 said above:
    We don't have Macs, but our client and some colleagues do.
    It's clear he is troubleshooting a problem with the web site when viewed in the Mac version of Safari.
    To ulysses69: While clearly many of us are willing to help with this (and I kind of enjoy it, personally), questions like this are probably better suited to other web sites that have forums for general web site testing and troubleshooting. Apple's forums are specifically intended for questions and answers about problems using Apple's products, which isn't really what you're looking for. That said, I don't have a problem continuing in this thread. Just be aware that there are probably more effective places for this kind of question.

  • How do i break this code.

    All,
    I am getting the "PLS-00123: program too large error"
    when i execute the following code. Is there a way i can break the huge
    update statement.
    Please suggest me.
    PROCEDURE PR_UPD_FACT ( v_Part in varchar2 )
    IS
    fupd_stmnt VARCHAR2(19190);
    upd_cid      NUMBER;
    upd_recnum     NUMBER;
    BEGIN
    fupd_stmnt :=
    'UPDATE ' ||v_Part|| ' SET ' ||
         'WRKG01_ASM_BODY_DONE_Y = ' || 'TO_DATE(' || '''' || to_char
    (ods_record.WRKG01_ASM_BODY_DONE_Y,'DD/MON/YY HH:MI:SS') || ''''
    || ',' || '''' || 'DD/MON/YY HH:MI:SS' || '''' || ')' || ',' ||
    'WRKG01_ASM_BUCK_Y = ' || 'TO_DATE(' || '''' || to_char(
    ods_record.WRKG01_ASM_BUCK_Y,'DD/MON/YY HH:MI:SS') || '''' || ','
    || '''' || 'DD/MON/YY HH:MI:SS' || '''' || ')' || ',' ||
    -- *** UPDATTING 366 COLUMNS OF A HUGE TABLE ***
    ' WHERE ' ||
    ' WRKG01_CNT_MDL_YEAR_C = ' || '''' || ods_record.WRKG01_CNT_MDL_YEAR_C || '''' ||
    ' AND WRKG01_ORD_PROD_SRC_C = ' || '''' || ods_record.WRKG01_ORD_PROD_SRC_C || '''' ||
    ' AND WRKG01_ORD_PROD_ORD_ID_C = ' || '''' || ods_record.WRKG01_ORD_PROD_ORD_ID_C || '''';     
    upd_cid := DBMS_SQL.OPEN_CURSOR;
         DBMS_SQL.PARSE(upd_cid, fupd_stmnt, DBMS_SQL.NATIVE);
         upd_recnum := DBMS_SQL.EXECUTE(upd_cid);
         DBMS_SQL.CLOSE_CURSOR(upd_cid);
    END PR_UPD_FACT;
    Thank You

    I can't tell which Oracle version you are on, but the limit for v7.x is 64K, v8.0 (up to 8.1.3) is 128K, and 8i and up have a limit of 256M.
    One thing you should definitely incorporate - regardless of whether you split up this statement - is bind variables. Instead of hardcoding the literal values within the string, just assign placeholders and then, on a call(s) to dbms_sql.bind_variable, supply the value(s).
    So instead of:
    'WRKG01_ASM_BODY_DONE_Y = ' || 'TO_DATE(' || '''' || to_char (ods_record.WRKG01_ASM_BODY_DONE_Y,'DD/MON/YY HH:MI:SS')
    use:
    'wrkg01_asm_body_done_y = :w01abd'
    and then, after the call to dbms_sql.parse but before dbms_sql.execute:
    dbms_sql.bind_variable(upd_cid, 'w01abd', to_char(ods_record.wrkg01_asm_body_done_y, 'DD/MON/YY HH:MI:SS'));
    Also use bind variable for the parameters in your WHERE clause. You will still need to hardcode the table and column names (as you do for the tablename parameter v_part).
    Now, using bind variables is extremely important, but it doesn't help your size issue. Is this procedure in a package? It might be, but I couldn't tell. If not, it probably should be.
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:571023051648
    Another thing you might try is to break the update into two steps, each handled in a separate procedure (or separate packages). Now, if you are updating a column included in the WHERE clause, then this will not be a viable option.
    Just some initial thoughts...

  • It has repeatedly told me to restart my computer to uninstall a previous version, Ido that and then it tells me to do it againHow do I break this circle?. .

    I unstalled my previon versiion of firefox as it kept locking up, this included restarting my computer as the final step of uninstalling firefox. Now when I try to install firefox the installation program is interrupteded by an order to re start my computer to complete the prior uninstall. I restart my computer but then get the same order when i continue to try install firefox again. If I choose to not restart the install program disappears from my screen.

    <u>'''Kill Application'''</u>
    In Task Manager, does firefox.exe show in the <u>'''Processes'''</u> tab?
    See: '''[http://kb.mozillazine.org/Kill_application Kill Application]'''
    '''<u>Causes and solutions for Firefox hanging at exit:</u>'''
    '''[[Firefox hangs]]'''
    '''[http://kb.mozillazine.org/Firefox_hangs#Hang_at_exit Firefox hangs at exit (Mozillazine article)]'''
    '''[[Firefox is already running but is not responding]]'''
    <u>'''Safe Mode'''</u>
    You may need to use '''[[Safe Mode]]''' (click on "Safe Mode" and read) to localize the problem. Firefox SafeMode is a diagnostic mode that disables extensions and some other features of Firefox. If you are using a theme, switch to the DEFAULT theme: Tools > Add-ons > Themes before starting Safe Mode. When entering Safe Mode, do not check any items on the entry window, just click "Continue in Safe Mode". Test to see if the problem you are experiencing is corrected.
    See:
    '''[[Troubleshooting extensions and themes]]'''
    '''[[Troubleshooting plugins]]'''
    '''[[Basic Troubleshooting]]'''
    If the problem does not occur in Safe-mode then disable all of your extensions and then try to find which is causing it by enabling one at a time until the problem reappears. You have to close and restart Firefox after each change via File > Restart Firefox (on Mac: Firefox > Quit). You can use "Disable all add-ons" on the Safe mode start window.

  • How to break this by month

    Hi,
    please help me out from this problem.
    I need to generate a query group by day for every month i have to show the total.
    item_name sum(amt),start_date Total Amount
    x 10000 01/01/2005
    x 10005 01/02/2005
    x 12348 01/31/2005 5999344(some of those 31 days amt appx).
    x 23444 02/01/2005
    x 12232 02/28/2005 3434344(appx)
    like this i have to show for every month. Here I'm giving actual query.
    SELECT c . sttl_item_nme ,
    sum(a . sttl_amt)amt,a.start_dt_gmt
    FROM nm_settlement a ,
    nm_sttl_item_dtl b ,
    nm_sttl_item_dtl_type c,
    nm_sttl_component sc,
    nm_xp xp
    WHERE a . sttl_id = b . sttl_id
    AND b . sttl_item_num = c . sttl_item_num
    AND xP.xp_id = sc.xp_id
    AND a.sttl_id = sc.sttl_id
    AND a . ptcpt_cd = 'DEMO'
    and xp. XP_NME ='DECO.BLRVR1'
    AND a . start_dt_gmt > '04/01/2005'
    AND A . end_dt_gmt < '04/30/2005'
    AND c . sttl_item_nme = 'RT Uninstructed Deviation Amount'
    group by a.start_dt_gmt,c.sttl_item_nme
    order by a.start_dt_gmt
    Thanks & Regards,
    Ramana.

    Hi Ramana,
    I give you this example, please change this according to your code.
    HTH
    Ghulam
    select ename, hiredate, sal, sum(sal) over (partition by to_char(hiredate, 'MM-YY') order by hiredate) monthly_total
      from emp
    order by hiredate;
    ENAME      HIREDATE          SAL MONTHLY_TOTAL
    SMITH      17-12-1980        800           800
    ALLEN      20-02-1981       1600          1600
    WARD       22-02-1981       1250          2850
    JONES      02-04-1981       2975          2975
    BLAKE      01-05-1981       2850          2850
    CLARK      09-06-1981       2450          2450
    TURNER     08-09-1981       1500          1500
    MARTIN     28-09-1981       1250          2750
    KING       17-11-1981       5000          5000
    JAMES      03-12-1981        950          3950
    FORD       03-12-1981       3000          3950
    MILLER     23-01-1982       1300          1300
    SCOTT      09-12-1982       3000          3000
    ADAMS      12-01-1983       1100          1100
    14 rows selected.

  • HT1369 i tried to update my iphone 5s software but it stopped and now my phone dont want to go on,what can i do...please help before i break this **** iphone

    i have been trying to update my iphone 5s but after installing the phone doenst want to go on and it just shows the usb cord thing and arrow towards itunes,please help?

    1: Connect the device to Your computer and open iTunes.
    2: If the device appears in iTunes, select and click Restore on the Summary pane.
    Restoring  >  http://support.apple.com/kb/HT1414
    3: If the device doesn't appear in iTunes, try using the Steps in this article to force the device into Recovery Mode.
    Make sure you have the Current Version of iTunes Installed on your computer
    iTunes free download from www.itunes.com/download
    Note on Recovery Mode.
    You may need to try this More than Once... Be sure to Follow ALL the Steps...
    After you have Recovered your Device...
    Re-Sync your Content or Restore from the most Recent Backup...
    Restore from Backup  >  http://support.apple.com/kb/ht1766

  • I have the one year AppleCare warranty and I have gotten two new iPhones. If I break this one can I still get a new one?

    I got my iPhone 5 in November 2012 and when I got it, I got a one year warranty AppleCare on my phone. I got a new iphone in January because the lock button got stuck and I got another one because something was wrong with the camera. I just want to know (just in case) if I break my iphone can I still get a new one?

    Apple Warranty
    http://www.apple.com/legal/warranty/
    "Choose a product" and then "Choose a region"

  • I have a javascript function that calls an applet function, 3.67 breaks this, no problem before, on Mac 10.5, FF 3.66 worked fine, Safari works fine, so does IE on PC, will test FF on PC next

    I'm getting two javascript errors that I've never had before until 3.67. One of these is a MooTools error that I have to track down, the other is a failure to read a Java function on an applet
    == URL of affected sites ==
    need a login

    Hi gikku,
    Good idea! I forgot about the web server port forwarding, that will allow the wiki to be seen over the internet.
    One question: what does adding the dyndns address to "Server Admin > web > settings > sites" actually do? I'm not too knowledgeable about Server Admin.
    Thanks,
    Brian
    corewerkz

  • I have been having issues with downloading and updating apps on my iPod 4th gen. How do I fix this? It's getting really old really fast.

         So yeah, this has been going on the past week. When I tap to upload my apps, some update right away, but others won't. Sometimes they will dowload half way, sometimes they won't at all, what causes them to stop is this little message that pops up saying, "This app cannot be downloaded at this time." and it gives you options 'Done' or 'Retry." Instinctively I hit retry. Through the course of the day I did this, I kept hitting retry, and eventually all the apps that were updating, updated, but not very effieciently. All apps updated, except for one, Facebook. No matter how anytimes I hit retry, it wouldn't update. I got real sick and tired of it, so I deleted it. I decided to go through everything and delete old apps, pictures, music, thinking that I didn't have enough space. I go to download an app I've already had to test this theory out: Still doesn't work. The stupid thing won't even TRY to download. So, is there any way I can fix this without taking a sledgehammer to my iPod? Because, honestly, I am severly ticked off at how stubborn this is. Please help. Before my patience runs out and I break this thing.

    Try This...
    Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430
    If no joy...
    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact
    It should be Noted that anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID.

  • 2504 with new-architecture enabled breaks MAC auth for guest access

    Hello,
    We have (2) 2504 WLC running version 7.6.120. WLC1 is the local controller and WLC2 is an achor controller for guest-access. We need to incorporate a 3850 for use with the WLC2 anchor. The guest access is currently working with Mac-Auth and Mac-Auth-Fail to Web-Auth.
    When converged access is enabled on the WLC1 and WLC2, the MAc-Auth no longer works. That is, the previously authenticated user is now redirected to the Web-Auth page. The local controller shows the user as authenticated but the Anchor controller shows the state as WEb-Auth-REQD.
    Rolling back using "config mobility new-architecture disable" and rebooting resolves the issue.
    Does anyone what changes from the old to the new that would break this mac-auth/web-auth configuration?

    You should reach TAC for these sort of issues. Not many people deploying this CA setup yet & you may not get direct feedback immediately.
    HTH
    Rasika

  • I'm being told this is a DW problem

    I think this is a CSS issue, but because it's happening in
    DW, the CSS discussion forum I posted this to just summarily booted
    my topic.
    http://mdh-test.com/Quiel/index.shtml
    http://mdh-test.com/Quiel/quiel.css
    I'm recoding this site so my client can work with it in
    Contribute CS3. The background art on this has been reconstructed
    from little slices and dices and is now in two pieces, with the top
    being sliced just above the top of the curve near the bottom. The
    fill div contains a 1px-high strip that will fill in the
    black-white-black of the bottom part for when the page expands. I
    have a flashing gif that is hanging off the left side. Other art is
    laying on top of the bakcground art.
    One problem I've been running into since the beginning,
    pretty much, is that the section of content between the page header
    (Welcome) and that animated GIF on the left is uneditable, unless
    I'm in the code view of DW CS3. If I click on that section within
    design view, it grabs the page header, not what I've clicked on.
    Once I go into Contribute into the Edit Page, this area of
    the page is uneditable. I'm not talking about the parts put into
    SSIs (the left and right sides and footer).
    It's not a Contribute issue, per se, because I noticed I was
    having problems in the design view of DW as I was building the
    site. The CSS-Discuss list kept telling me I couldn't trust the way
    DW was rendering the page, and I needed to pay attention to how it
    looked on the browser instead. So I did, even though I was having
    major issues with laying it out. Worked fine in the browsers. It's
    not the JavaScript, because I saved a test-version of the page,
    took out the JavaScript, and tried to click on the text in the
    content area of the design view. Same thing.
    But now the problem I was having in DW has come to bite me in
    the butt in Contribute. I can't access the same area for editing,
    just the area of content below the nav & flashing sign. Even if
    you're not familiar with Contribute, perhaps you could look at the
    code and see why I can't access this area in DW. Is it a flow issue
    of the divs? Have I put something in the code that is breaking
    this?
    What do I need to do to fix this? Can anyone help?? My client
    won't be happy AT ALL if he can't access this area. What have I
    done wrong? I know I've div'ed the heck out of this, but there is
    so much going on that needs to be placed *just so* because it has
    to essentially match the original site.
    My CSS and HTML validates.
    Thank you so much in advance for your help.
    Theresa

    Hi Theresa,
    > One problem I've been running into since the beginning,
    pretty much, is that
    > the section of content between the page header (Welcome)
    and that animated GIF
    > on the left is uneditable, unless I'm in the code view
    of DW CS3. If I click on
    > that section within design view, it grabs the page
    header, not what I've
    > clicked on.
    If this is an overflow area, then you need to right-click and
    use:
    Element View > Full
    to edit (shortcut is double-click), and then:
    Element View > Hidden
    to return to the original state (shortcut is F5).
    HTH,
    Randy

  • How can I create a line break in pages for iPad?

    On the Mac you can hold the shift key while pressing the return key to creat a line break. Only pressing the return key will creat a new paragraph of course.
    On the iPad you only can creat paragraphs. Pressing the shif key does not change that.
    Does anybody know how to force a linebrek on the pages app for iPad?

    Tap and hold where you wish to insert the line break. Select Insert from the pop up menu, then Line break.
    this might be helpful for future reference: http://help.apple.com/pages/ipad/1.7/

Maybe you are looking for