No checkboxes and very big comboboxen when creating own L&F

Hello,
I wanted to create my own look and feel bij extending from BasicLookAndFeel. M class:
import javax.swing.plaf.basic.*;
import javax.swing.*;
public class PlanonLookAndFeel extends BasicLookAndFeel
//~ Constructors ................................................
* @return The name for this look-and-feel.
public String getName()
return "Planon";
* We are not a simple extension of an existing
* look-and-feel, so provide our own ID.
* <p>
* @return The ID for this look-and-feel.
public String getID()
return "Planon";
* @return A short description of this look-and-feel.
public String getDescription()
return "The Planon Look and Feel";
* This is not a native look and feel on any platform.
* <p>
* @return false, this isn't native on any platform.
public boolean isNativeLookAndFeel()
return false;
* This look and feel is supported on all platforms.
* <p>
* @return true, this L&F is supported on all platforms.
public boolean isSupportedLookAndFeel()
return true;
protected void initSystemColorDefaults(UIDefaults table)
String[] defaultSystemColors = {
/* Color of the desktop background */
"desktop", "#005C5C",
/* Color for captions (title bars) when they are active. */
"activeCaption", "#000080",
/* Text color for text in captions (title bars). */
"activeCaptionText", "#FFFFFF",
/* Border color for caption (title bar) window borders. */
"activeCaptionBorder", "#D4D0C8",
/* Color for captions (title bars) when not active. */
"inactiveCaption", "#808080",
/* Text color for text in inactive captions (title bars). */
"inactiveCaptionText", "#D4D0C8",
/*Border color for inactive caption (title bar) window borders.*/
"inactiveCaptionBorder", "#D4D0C8",
/* Default color for the interior of windows */
"window", "#FFFFFF",
"windowBorder", "#000000",
"windowText", "#000000",
/* Background color for menus */
"menu", "#D4D0C8",
/* Text color for menus */
"menuText", "#000000",
/* Text background color */
"text", "#D4D0C8",
/* Text foreground color */
"textText", "#000000",
/* Text background color when selected */
"textHighlight", "#0A246A",
/* Text color when selected */
"textHighlightText", "#FFFFFF",
/* Text color when disabled */
"textInactiveText", "#808080",
/* Default color for controls (buttons, sliders, etc) */
"control", "#D4D0C8",
/* Default color for text in controls */
"controlText", "#000000",
"controlHighlight", "#D4D0C8",
/* Highlight color for controls */
"controlLtHighlight", "#FFFFFF",
/* Shadow color for controls */
"controlShadow", "#808080",
/* Dark shadow color for controls */
"controlDkShadow", "#000000",
/* Scrollbar background (usually the "track") */
"scrollbar", "#E0E0E0",
"info", "#FFFFE1",
"infoText", "#000000",
/* color for planon application */
"planonMainColor", "#6787BA"
loadSystemColors(table, defaultSystemColors, isNativeLookAndFeel());
This works oke, but when i try to display a combox, it looks really ugly (a very big arrow and no borders). The checkbox isn't even displayed. Does anyone have a clue about this?
Thanks in advance
Hugo Hendriks

are there docu/tutorials which discribe how to create your own look and feel???????????????

Similar Messages

  • How to indent second line in a very long heading when creating a table of contents?

    I need to make a table of contents.
    Some of the chapter headings are very long and fill more than a single line.
    When I create my table of contents, I want the second lines to be 'pushed in' in the table.
    Like this
    1 chaper one xxxxxxxxxxx
    2 Chapter two xxxxxxxxxxxxxxxxxx
    3 Chapter three x xxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
         xxxxxxxxxxxxx xxxxxxxxxxx
    4 Charpter four xxxxx xxxxx
    5 Chapter five xxxxxxxxxx xxx xxxxx xx xxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxx
         xxxxxxxxx xxxx xxxxx
    I thought I had solved it by having the actual chapter headings indented like this, but the table of contents overlooks this/overrules this.

    See also my reply to the duplicate thread:
    http://social.technet.microsoft.com/Forums/office/en-US/8f88b64c-1a15-4761-aed9-f662f17b94ca/how-to-indent-second-line-in-a-very-long-heading-when-creating-a-table-of-contents?forum=word
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • No visible checkboxe and  when creating own L&F

    Hi,
    I tried to make my own look and feel by extending from BasicLookAndFeel. All the components work oke, only the checkbox isn't visible. When i create my own CheckBoxUI and use the MetalCheckBoxIcon, it works. Is there no standaard icon for the BasicLookAndFeel?
    Also, the BasicComboBoxUI doesn't have a border. Can anyone tell me how to set this?
    Much Thanks
    Hugo Hendriks

    are there docu/tutorials which discribe how to create your own look and feel???????????????

  • Very Big Cell when export in Excel

    Dear Tech guys,
    I use VS 2008 with VB and CR 2008.
    Crystal report, and export in PDF are OK, but when i export the report in Excel, i have the bellow problems.
    The report is a delivery note with 7 columns and many rows.
    1. In all pages, the page numbers are lost, except from the last page.
    2. After last row, excel has a very big in height (height > 300) row. Because of this, excel creates a new empty page and at the bottom of the new page i see the page number (Page 5 of 5).
    Can you help me with this problem??
    I have this problem after the last update (Service Pack 3).
    Visual Studio 2008: 9.030729.1 SP 1
    Crystal Reports 2008: 12.3.0.601
    Thank you in advance.
    Best regards,
    Navarino Technology Dept.
    Edited by: Navarino on Jul 15, 2010 2:47 PM

    Dear all good morning from Greece.
    First of all, i like to thank you for your quick respond.
    Dear Ludek Uher,
    1. Yes, this is from a .NET (3.5) application with VB.
    2. I do the export via code.
    3. From the CR designer i have the same problem.
    Dear David Hilton,
    The photo, is not working.
    I found the option "On Each Page" from the CR designer and i changed it. Now i get the page number on every page but i can see that something is wrong with the page height and with the end of the page of the report.
    I will try to show you the problem of the Excel file, after the option "On Each Page":
    Header........................
                      Field1     field2    field3 ......
    row1 .......
    row2 ......
    row3.....
    row56 ......
    {end of page 1}
    {new page 2}
    row57
    row58
    row59
    Page 1 of 4 (the footer of the first page must be in the first page, but it shown in the second page)
    row60
    row61
    row62
    {end of page 2}
    {new page 3}
    row110
    row111
    row112
    Page 2 of 4 (the footer of the second page must be in the second page, but it shown in the third page)
    row140
    row141
    row142
    {end of page 3}
    {new page 4}
    and go on.....
    I hope this helped.
    If i change the margins from Page Break Preview in Excel, the pages are OK. So i thing that something conflicts with the end of the page. The report does not understand the end of the page.
    If there is a way to send you the file or screen shots, please tell me how.
    Thank you in advance again.
    Best regards,
    Navarino Technology Dept.
    Edited by: Navarino on Jul 16, 2010 9:09 AM

  • Sales office and sales group compulsory when creating a sales order

    Hi,
    When creating a new sales order, I would like to have the sales office and sales group compulsory.
    Does anyone know where is the customizing point?
    Thanks for your help,
    Ronan

    Dear Ronan,
    Spro --> Img --> Sales and Distribution --> Basic Functions --> Log of Incomplete items --> Define Incompleeness Procedure (T. Code: OVA2)
    Here, Select Group as A - Sales Header
    and double-click: Procedures (left hand Dialog Structure).
    On to next screen, select Incompleteness Procedure "11" and double click: Fileds  (left hand Dialog Structure).
    On to next screen, include Table-Filed as:
    1. VBAK - VKBUR (for Sales Office) and
    2. VBAK - VKGRP (for Sales Group)
    for both the entries, select Scr. as "KKAU" and Status as 01 and check Warning.
    Note: To make changes in to InCompleteness Procedure, click: (CTRL+F1)
    Recommendation: Please save chnaged Incompleteness Procedure as Z - procedure; to avoid changes in to Standard Procedure.
    Now,
    Spro --> Img --> Sales and Distribution --> Basic Functions --> Log of Incomplete items --> Assign  Incompleeness Procedure --> Assign procedures to the sales document types (T. Code: VUA2)
    Here, assign your Order type (say, OR) to your Incompleteness Procedure (say, Z - Procedure)
    Check Field: IC-Dialog as per requirement (Clck the field and press F1, to read its usage).
    Now, Go to, T. Code: VOV8; and select your Sales Doc. Type (say, OR).
    Within the Sales Doc., Assign your defined Incompleteness Procedure in to:
    Tab: Transacton Flow --> Field: Incompl.proced.
    Note: To enable screen, for changes, press (CTRL+F4).
    Best Regards,
    Amit

  • Field Ref. and SRef,mat type when creating new material types

    Hi,
    While creating new material type we are giving the Filed ref. on that basis sytem find which fields are option mand. etc. below the filed ref. there is also SRef for material type , why this fileld is use ? if this is screen sequence ref. then what is use of industry sector when creating material bcoz industry sector also determines the scrren ref. then which will follow when we creat the material.
    regards,
      zafar

    Hi,
    SRef is the Screen reference .
    You have to create the Sref then it should assign depending on the transaction.
    Grouping of transactions that determines what screens are displayed depending on the transaction when you maintain material master records. It also determines the order in which the screens appear.
    The screen reference Transaction is in table T130M.
    In material master the first reference is industry sector,then specific to the industry sector what is the material type & screen sequence.
    Regards,
    Raj

  • Rman create some files  and very big size

    Dear all,
    I was implement rman back up on windows 2003 R2 with oracle9i.When i ran script
    for backup as below :
    RUN {
    allocate channel ch1 type disk;
    CHANGE ARCHIVELOG ALL CROSSCHECK;
    CROSSCHECK ARCHIVELOG ALL;
    DELETE NOPROMPT EXPIRED ARCHIVELOG ALL;
    BACKUP DATABASE PLUS ARCHIVELOG;
    CROSSCHECK BACKUP;
    DELETE NOPROMPT EXPIRED BACKUP;
    DELETE NOPROMPT OBSOLETE;
    RELEASE CHANNEL ch1;
    EXIT;
    During executed these script i found rman create some files the name is "CQISBDNR_1_1" and the size around 17 gb. @ "D:\oracle\ora92\database"
    and my config as below :
    RMAN> show all;
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 2 DAYS;
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'E:\Rmanbk\CF%F'
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'E:\Rmanbk\%d_DB_%u_%s_%p';
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'E:\RMANBK\SNCFAPPR.ORA';
    What happend ? and Pls advise !
    Thanks for advance !
    Chara

    I don't see any thing wrong in having a 17Gb rman backup file. It is just your backup in a single piece. You have configured rman to use the maximum size possible:
    BACKUP DATABASE PLUS ARCHIVELOG
    and
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    As long as you have enough space to grow and you can transfer your backup piece to a safe place in a timely manner, you may cope with this.
    ~ Madrid

  • Why don't ALL pages process and print in iphoto when creating a book?

    I have created a book using iphoto 6. All the pages are there when I see them on the screen, but when I go to assemble the book and do the preview as suggested before ordering only the first 20 pages are there. The last 20 pages are missing.
    If I save as pdf file the same thing happens only the first 20 pages are there.
    Any suggestions? Any Ideas?

    That issue was discussed in the iPhoto 6 forum at length. I don't remember the exact topic but you can search in the iPhoto 6 forum and find the thread.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • LR 2 and 2.1 Hang when creating eather a web gallery or HTML Gallery

    I was hoping that LR 2.1 would fix a problem creating either a Web gallery or an HTML gallery. The program hangs after about 15 files have been added to the gallery.
    Is there a configuration tweak I could make.
    Jim

    What system? Are previews built already.
    Don

  • BUG - Process Code Validator isn't working when creating a plsql process

    Steps to reproduce:
    1. New Process
    2. Type: PL/SQL
    3. Give it a name
    4. Enter process body (note I have just entered a random value which obviously isnt valid plsql code - no semi-colon, no procedure called abc, etc.)
    abc5. Click Create Process
    It succeeds!
    Alternatively, if I click next - the validator fires properly.
    Ta,
    Trent

    Some more observations in this regard
    <li>After opening the saved invalid PLSQL code for edit , it doesn't let you save it again , so the validation is firing at this point.
    <li>If you click on next and then click on back to return to PLSQL code page, and then press next once again, it validates and hence is working as expected.
    Now the weird part
    <li> If you check and then uncheck the "Do not validate PL/SQL code (parse PL/SQL code at runtime only)." checkbox the first time itself when creating , the validation will be fired.
    So my guess is that, the validation is fired based on the value of some item which is not set correctly during the first arrival on the PLSQL code page,possibly the item is null without any default value and the SQL query doesn't handle the null case (like an equals to check with NULL).

  • Display name not getting generated When creating user thorugh GTC

    We are using GTC flat file as a trusted source. We see that display name not getting generated. And same thing happening when creating a new GTC mapping.
    previously when we ran with few test user got created with display name through GTC flat file , Suddenly we see this issue display name not getting generated through flat file recon.
    Manually user creation has no issues.
    Please let me know if you have any idea about this issue.

    Don't use GTC... GTC is inflexible and buggy technology... Nothing guaranteed... Rather create your own custom trusted recon code...
    For more details
    26 Known Issues of Generic Technology Connectors
    http://docs.oracle.com/cd/E10391_01/doc.910/e10360/issues.htm

  • How to realize Checkbox and Radio Buttons based on Attributes in JHeadstart

    Hy@ all,
    I try to redevelop the Summit Forms Demo in ADF.
    The module "ORDER" contains, among other things, a checkbox and radio buttons based on database columns(VARCHAR2).
    The column(checkbox) named PAYMENT_TYPE contains the values CASH and CREDIT and the column(radio button) called ORDER_FILLED contains the values Y and N.
    After creating the business components, I set in JHeadstarts Application Definition the Display Type of these two attributes to checkBox and radio-horizontal.
    I created a dymanic domain for the radio-horizontal and a static domain for the checkBox.
    The radio-horizontal within the dymanic domain works nearly correct.
    I set the Data Collection in this dynamic domain to the required Group and the Value and Meaning Attribute to the necessary Attribute.
    Within the JSF- Page the values are shown right but unfortunately there are too many radio buttons available. Instead of displaying the two radio buttons CASH and CREDIT were many CASH and CREDIT radio buttons shown.
    I can´t find any solution for this case.
    The problem with the checkBox is that therfore a static domain is required but I want to show the value of the checkBox based on the described attribute, like the handling of the radio horizontal.
    But I don´t know how to implement this, if it is possible.
    I´m using JHeadstart v10.1.3.2 and I´m pleased about any reply or solution.
    Best regards
    Chris

    Chris,
    If you run the application module tester, and query the view object usage underlying your dynamic domain, how many rows does it return? It should return only two rows, one for CASH and one for CREDIT. If more than two rows are returned, your query is wrong.
    What is the problem with using a static domain for the checkbox?
    Steven Davelaar,
    JHeadstart Team.

  • How to display all authentication providers when creating a new user?

    I have configured active Directory with weblogic 10.3.1. Users and groups display correctly under the users and groups tab. When creating a new user only the defaultauthenticator provider is displayed in the drop-down selection. How do I get my active directory authenticator to display here also for selection?

    I'm confident that the Active Directory provider is read-only. You could write your own Authentication Provider for AD that supports create/update/delete functionality, but it is not included in the out of the box AD Authentication Provider to my knowledge.
    I know both the Default Authenticator and the database authenticator are read/write.

  • Very slow start up and very slow response

    Hi guys,
    SOS
    My iMac is so slow to boot or start up. It takes about an 1-2 hours. It has very slow and very delayed response when doing tasks. I'm not sure what happened.
    I have tried safe mode but it has not worked. I tried the disk utility but it was saying that my DVD (possibly because it is for snow leopard)  is outdated. I think I updated to Lion.
    Do you have any suggestions? I will try any other tricks. Do you recommend to back up before doing repair etc.?
    thanks in advance!!

    Tried to reset the RAM but did not get through. It went to disk utility again. Tried repair but it still saying to back up and restore files. Maybe the HD has been toasted. =(...
    It says: Invalid key lenght. Volume Mac HD could not be verifried completely.. then it says Error: disk utilityu can't repair close back disk out, restoere etc..
    In disk utillity as well, Mac OS X base system appeared- I dont know the purpose of this. It has some files on it. Dont know whether to restore it or what?..Mac HD seems like the it's empty..
    Thanks again guys...It feels like I'm in a maze..

  • Unexpected Error When Creating Network

    Running 10.9.1 and getting "Unexpected Error" When Creating a new network. Need help getting started.
    Thanks for the support!

    You need to use the alternatives under options..
    It will never pick this option itself.. so click Other Options.
    and use replace an existing device.
    Or simply remove the existing setup and start over..
    Reset to factory every time you start a setup.. and create a new network.. then reset the older units once this is working and use them to extend the network.
    Personally I prefer to replace and start afresh as it just leads to less issues.
    As far as range is concerned the new AC models are variously reported  as excellent to worse than existing old models.. wireless is simply another form of voodoo only in white plastic instead of black.. which sort of suits the black arts better.

Maybe you are looking for