Unsightly Colors!

Having a minor inconvenience with the JFrame and JTabbedPane colors for they seem to clash with my overall simplistic theme. Code is as follows...
import java.awt.EventQueue;
import javax.swing.text.BadLocationException;
@SuppressWarnings("serial")
public class RTE extends javax.swing.JFrame implements java.awt.event.KeyListener {
     //Variable declarations
     private javax.swing.JPanel titlePanel, cliPanel;
     private javax.swing.JLabel titleLabel = new javax.swing.JLabel("TITLE");
     private javax.swing.JLabel clockLabel = new javax.swing.JLabel();
     private java.text.SimpleDateFormat timeFormat = new java.text.SimpleDateFormat("HH:mm:ss");
     private javax.swing.JTextPane cliTextPane = new javax.swing.JTextPane();
     private javax.swing.JTextField cliEntryTextField = new javax.swing.JTextField();
     private javax.swing.JScrollPane cliScrollPane = new javax.swing.JScrollPane();
     private javax.swing.JTabbedPane tabbedPane = new javax.swing.JTabbedPane();
     private javax.swing.JTextArea missionTextArea = new javax.swing.JTextArea("Mission TextArea!");
     private javax.swing.JTextArea helpTextArea = new javax.swing.JTextArea("Help TextArea!");
     //Doc variables
     private javax.swing.text.StyledDocument doc = cliTextPane.getStyledDocument();
     private javax.swing.text.Style def = javax.swing.text.StyleContext.getDefaultStyleContext().getStyle(javax.swing.text.StyleContext.DEFAULT_STYLE);
     private javax.swing.text.Style reg = doc.addStyle("regular", def);
     private javax.swing.text.Style white = doc.addStyle("white", reg);
     private javax.swing.text.Style green = doc.addStyle("green", reg);
     //End variable declarations
      * |-- Application initiation --|
     private void init() {
          //Start timer
          setTime();
          timer.start();
          //Doc variables
          javax.swing.text.StyleConstants.setFontFamily(def, "Lucida Console");
          javax.swing.text.StyleConstants.setFontSize(def, 12);
          javax.swing.text.StyleConstants.setForeground(white, java.awt.Color.WHITE);
          javax.swing.text.StyleConstants.setForeground(green, java.awt.Color.GREEN);
          try {
               doc.insertString(doc.getLength(), "Hello World!", reg);
          }catch (BadLocationException ble) {  }
          //GUI variable alterations
          titleLabel.setForeground(java.awt.Color.WHITE);
          titleLabel.setFont(new java.awt.Font("Lucida Console", java.awt.Font.BOLD, 14));
          clockLabel.setForeground(java.awt.Color.WHITE);
          clockLabel.setFont(new java.awt.Font("Lucida Console", java.awt.Font.BOLD, 14));
          cliTextPane.setForeground(java.awt.Color.WHITE);
          cliTextPane.setBackground(java.awt.Color.BLACK);
          cliTextPane.setEditable(false);
          cliScrollPane.setViewportView(cliTextPane);
          cliScrollPane.setBorder(null);
          cliEntryTextField.setForeground(java.awt.Color.WHITE);
          cliEntryTextField.setBackground(java.awt.Color.BLACK);
          cliEntryTextField.setFont(new java.awt.Font("Lucida Console", 0, 12));
          cliEntryTextField.setCaretColor(java.awt.Color.WHITE);
          cliEntryTextField.addKeyListener(this);
          cliEntryTextField.setEditable(true);
          missionTextArea.setForeground(java.awt.Color.WHITE);
          missionTextArea.setBackground(java.awt.Color.BLACK);
          missionTextArea.setFont(new java.awt.Font("Lucida Console", 0, 12));
          missionTextArea.setBorder(null);
          missionTextArea.setEditable(false);
          helpTextArea.setForeground(java.awt.Color.WHITE);
          helpTextArea.setBackground(java.awt.Color.BLACK);
          helpTextArea.setFont(new java.awt.Font("Lucida Console", 0, 12));
          helpTextArea.setEditable(false);
          //Dimension of screen size
          java.awt.Dimension dimension = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
          //Panel configuration
          titlePanel = new javax.swing.JPanel();
          titlePanel.setLayout(new java.awt.BorderLayout());
          titlePanel.setBackground(java.awt.Color.BLACK);
          titlePanel.setBounds(0, 0,(int) (dimension.getWidth()), 20);
          titlePanel.add(titleLabel, java.awt.BorderLayout.WEST);
          titlePanel.add(clockLabel, java.awt.BorderLayout.EAST);
          cliPanel = new javax.swing.JPanel();
          cliPanel.setLayout(new java.awt.BorderLayout());
          cliPanel.setBackground(java.awt.Color.BLACK);
          cliPanel.setBounds(0, 20, (int) (dimension.getWidth()), (int) (dimension.getHeight()*0.8));
          cliPanel.add(cliScrollPane, java.awt.BorderLayout.CENTER);
          cliPanel.add(cliEntryTextField, java.awt.BorderLayout.SOUTH);
          tabbedPane.setBackground(java.awt.Color.BLACK);
          tabbedPane.setBounds(0, (int) (dimension.getHeight()*0.82), (int) (dimension.getWidth()), (int) (dimension.getHeight()*0.18));
          tabbedPane.setBorder(null);
          tabbedPane.addTab("Mission Objective", null, missionTextArea, "Mission objectives.");
          tabbedPane.addTab("Help", null, helpTextArea, "Help");
          setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE);
                setSize(0, 0);
                setBackground(java.awt.Color.BLACK);
                setLayout(null);
                add(titlePanel);
                add(cliPanel);
                add(tabbedPane);
                pack();
                setVisible(true);
                java.awt.Container container = getContentPane();
                javax.swing.JWindow window = new javax.swing.JWindow(this);
                window.setSize(dimension);
                window.add(container);
                window.setVisible(true);
     private void setTime() {
          clockLabel.setText(timeFormat.format(System.currentTimeMillis()));
     private javax.swing.Timer timer = new javax.swing.Timer(1000, new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            setTime();
      * |-- Key Listener --|
     public void keyPressed(java.awt.event.KeyEvent ke) {
          // TODO Auto-generated method stub
     //Not used
     public void keyReleased(java.awt.event.KeyEvent ke) {
     //Not used
     public void keyTyped(java.awt.event.KeyEvent ke) {
      * |-- Main method run --|
     public static void main(String[] args) {
          EventQueue.invokeLater(new Runnable(){
            public void run() {
                new RTE().init();
}If you notices there is a grey color above the JTabbedPane and a blue border to the panels within the JTabbedPane. I would like to be able to get rid of these colors. Any help would be much appreciated.

Hi ehoran
I think the issue here is the following:
1. I believe you are asking about FlashHelp created using the
new RoboHelp 6. I say this because the former versions never had
the "Loading FlashHelp" screen. Or if it did, nobody ever reported
an issue with it. Aesthetic or otherwise.
2. Changing this will likely require a unique individual that
has both RoboHelp and Flash skills. I'm guessing that there aren't
many folks out there with that unique skill set.
3. You are probably fairly accurate with your assumption that
not many folks are probably using this format.
Wish I had more to offer. Hopefully your "bump" will cause
someone else to chime in with some sage advice.
Sincerely... Rick

Similar Messages

  • Rendering Intent

    Lately, I've come to the conclusion that the proper rendering intent for printing is Absolute, with the caveat that there is no out of gamut colors with which to accommodate. The text in the selection menu for this function states that Absolute is best for simulating a particular device. Well, duh, it's the monitor I want to simulate, not some veiled look supplied by Perceptual or Relative.
    So why are those two the recommended pick? There is no shift in dynamic range when invoking Absolute as soft proof unless there is trouble in gamut. If little to no shift between Relative and Perceptual can be seen, use Absolute.
    You don't know how much screwing around with curves etc I have gone through trying to match Perceptual to the screen w/o soft proof enabled.
    Who decided on the algorithms for these functions, and what was the criteria, particularly visual? It sure sells a bunch of ink and paper trying to get it right!

    Addendum:
    Been doing a bit of reading:
    http://www.cambridgeincolour.com/tutorials/color-space-conversion.htm
    From the article:
    "Absolute colorimetric preserves the white point, while                 relative colorimetric actually displaces the colors so that the old                 white point aligns with the new one (while still retaining the                 colors' relative positions).  The exact preservation of colors may sound appealing, however                 relative colorimetric adjusts the white point for a reason.                  Without this adjustment, absolute colorimetric results in                 unsightly image color shifts, and is thus rarely of interest to                 photographers." (Emphasis theirs)
    So, I took my test image and proceeded to ad a grayscale to the bottom and printed both Relative and Absolute. The results show that the gray scale shifted color in Absolute, very slightly from neutral to a barest cream color, which corresponds to a gray value I knew to be quite neutral, but slightly low in blue, to more neutral in Relative. This is what I expected to find based on the above definition.
    I also noted that the first and last stop of the 21 step part were clipped back to 19 steps in Absolute. I can easily do that with levels, if that's all it takes.
    No unsightly colors appeared in the image. I showed the two images to ma associate, who is a colorist by training, and her selection was the Absolute. (Interestingly, after running it I tended toward the Relative! As Jeff said YMMV, but in this case, slightly!).
    My whole effort is this: I want to obtain the maximum dynamic range of which the paper/ink is capable. I will specify the white point as I can using the info palette. After that, I want the conversion to do what I asked...white is white black is dMax of the combo. This shading back from this standard by the rendering intent is counter intuitive, as well as counter productive.
    So it comes down to this:
    What is meant by color accuracy
    What is meant by the white point.
    I define color accuracy to be what I see on the screen, pre soft proof, white point to be the white of the paper. If I want to depart from that I can do so at will, but to try to get it to match the screen before even departing is a load I wish not to have. The most reliable way to do this would be for the Info palette give out the actual numbers after invoking the soft proof.
    But I suppose that's asking too much!
    Thanks for looking.

  • How to deal with transparency, variable background color and unsightly edges?

    I am a software developer, only know the Photoshop basics.
    A graphic professional designed for me an icon with transparent background. On some backgrounds it looks fine, but on other backgrounds the edges look bad. I read an Internet article that the problem is that the pixels should merge smoothly into the background. I understand how that workd provided that the background is a known constant (in math terms). My program may run on different versions of Windows, with different window styles (Classic Look, XP Look) and hence the backgrounds are variable.
    How can an icon be designed so it blends smoothly into a background whose color is not known at design time?
    TIA,
    -Ramon

    What version of Windows? If you are just using Vista and W7, you can use 24bit PNGs with proper Alpha channels as your icon resource. I think they prefer straight Alpha, but you may laso be able to use black or medium grey on the RGB channels hen it's premultiplied. (there's a guide somewhere on MS' developers' pages). For XP you are of course stuck with palette-based BMPs/ ICOs, which is no different than when creating GIFs or 8bit PNGs in PS. Generally, though, you may wish to work with a dedicated editor like Axialis Icon Workshop, especially when needing to create multiple versions of an icon. The rest is out of your hands. Some icons will always look frizzled, if the user applies an all too wild color scheme. It's just how it is....
    Mylenium

  • Color blend without creating intermediate object

    I suspect the answer to this may be painfully obvious, so please put any "Doh!" thoughts on hold.
    I have two overlapping objects of very different shapes, each with a gradient. I want to smooth the color transition between them so that it looks as if there's a single surface.
    When I use the Blend tool Illustrator not only blends the colors, it creates an intermediate object as well. Is there a way simply to do the color without creating a new object?

    Blends, by definition, create intermediate objects between the original key objects. A Blend creates objects. It does not create color ramps independent of objects. That's what a graduated fill does, but grad fills are very limited in AI compared to just about all of its competing programs.
    Mesh Gradients can create multi-directional grad fills. But using the feature can easily become very tedious depending upon the specifics of what you are trying to do.
    You need to describe what you are actually trying to do.
    It sounds like you may be trying to build simple highlights and shadows to "model" what is to look like 3D surfaces. Using ordinary Blends is the most common way to do that. If that's what you are trying to do, the following may help:
    -To avoid the unsightly sawtooth or twisting or spiking "giveaways" of highlight / shadow blends, they should be made between paths which contain the same number of points.
    Using paths with equal number of points may require stacking two or three separate blends, instead of assuming the whole start-to-end color ramp has to be accomplished in a single Blend. For example: Start with the underlying shape, and create a Blend that goes from the outer color (rearmost) color to a midtone color (frontmost). Those two paths have the same number of points. Then, create a separate pair of paths (again with same number of points) for a separate highlight. That blend goes from the midtone color (rearmost) to the highlight color (frontmost).
    -Make sure the two paths used in the Blend have the same direction.
    -You can "index" two corresponding points on the two paths being used for a Blend by directSelecting a point on each path before creating the Blend.
    -Realize that Blends are not limted to paths that have solid fills. You can Blend between paths that have Gradient Fills. Many seemingly complex shading problems can be accomplished with simple Blends by just blending between two paths that have the same number of points, but have slightly different grad fills.
    -Specified Steps is almost always the best Blend option to use for modeling highlights/shadows. But use common sense. Do not assume that 256 steps are required to get the "smoothest" color transition. For example, if the start-to-finish color ramp of a highlight only spans 10% of a spot color, nothing is gained by using 256 steps. A mere 10 steps will probably do just fine. (Can your eye discern a smaller-than-1% change in halftone dot size?)
    Similarly, even if the colors are radically different, 10 or 20 steps may be just fine if the
    distance spanned by the Blend is small. (Can your eye detect 256 different different-shaped edges within a quarter-inch span?
    JET

  • Scrolling down in web pages causes color saturation

    I'm not sure if this should go under Safari or the Mighty Mouse (plugged/not Bluetooth). This just started a couple of days ago. When I use the scroll wheel to scroll down in web pages, the colors and fonts all get continually more saturated. I can't do a screen shot because once I click off the page, the page goes back to normal. I checked the settings for the fonts and it had smooth scrolling set for 8 size or smaller. I set it to 4 and it still is doing the same thing so I'm guessing it's not that.
    I have no idea what could be causing this. Any ideas?

    I have the same problem with Safari. As I scroll down fonts gradually lose anti-aliasing and in addition all inline images blotch to unsightly colours. Scrolling inline pdfs produces horizontal lines in the viewer pane.
    It occurs with trackpad two finger scrolling as well as with the MM's scroll ball.
    Rebooting and resetting Safari doesn't help.

  • Can I show a color bar instead of a color bullet in iCal Monthly view for all my events in all calendars?

    In the Monthly view of iCal the only events that show a color bar in the event is the Birthday Calendar. All other events in all my other calendars only show a color bullet next to the event (unless I click on that event which then shows as a color bar). I would like to know if it is possible for all the calendar events to have a color bar in the monthly view instead of just that tiny color bullet.

    Greetings Judith,
    Before making any attempts at deleting calendar data, backup what you have just in case:
    Click on each calendar on the left hand side of iCal one at a time highlighting it's name and then going to File Export > Export and saving the resulting calendar file to a logical location for safekeeping.
    iCal has an automated function located in iCal > Preferences > Advanced > Delete events "X" days after they have passed.  By typing in a value for days you can tell iCal to delete all events before that time frame.
    Example:
    Today is 4-16-2012.
    If I wanted to delete all events prior to 1 year ago (4-16-2011) I would type in "365" for the number of days.
    Once you type in the number of days you want kept in iCal, close the preferences and then quit iCal.
    Re-open iCal and check to see if the events are gone.  If not you may want to leave it open for several minutes and then quit again.
    Once the events are removed go back to  iCal > Preferences > Advanced > Delete events "X" days after they have passed and make sure the check mark is removed to prevent future deletion.
    Hope that helps.

  • Fax function of HP LaserJet Enterprise 500 Color MFP M575

    Hi,
    I am one of users of HP LaserJet Enterprise 500 Color MFP M575​.
    I would like to know can I set the printer do not print my fax number and fax header on paper when I fax my document to others.
    I had login as admin but I did not see where I can config it.
    Thank you.
    Regards,
    Jimmy Pun

    There is no change to this problem after 6 months since the last post. Put simply, and as stated in the previous posts, there is no way to scan a document and receive the image on your PC. If you are working with graphics for any length of time or want to create an image for inclusion as an image in a document or web page using this piece of equipment will not allow you to do so.
    Great shame as every other function works well - it cannot be beyond the wit of HP to include a Windows application that enables you to scan an image, receive it in the software you are using at the time (e.g. Outlook, Word, Photoshop...) and use it in your work.
    HP Printers several years older than this £1000+ Enterprise printer were able to do this simple job and have done so for a great many years. Just being able to use Microsoft's Fax and Scan would be start.

  • HP LaserJet Enterprise 500 Color MFP M575 - Can't scan from Windows

    We recently purchased and installed an HP LaserJet Enterprise 500 Color MFP M575 to be used as a networked all-in-one solution for a number of offices. I have been able to get it set up on our network and have installed the appropriate drivers on the requested Windows 7 x64 machines, and network printing works perfectly. However, it seems that despite the fancy scanning features available from the all-in-one itself (scan to email, scan to a network folder, etc.), I can't find any way to do an old-fashioned scan from Windows.
    I have installed the full software solution available on the driver download page for the device, and while Windows lists the device as a "Multi Function Printer; Scanner" it does not recognize it as an actual scanner. The built-in Windows Fax and Scan simply reports that no scanners are installed. The software installation did not include the HP Solution Center (which I am used to seeing from my experience with various other HP all-in-one devices) or any equivalent for direct scanning. The driver download page for the device does not include any separate scanning drivers, so I can't be certain if they were included with the full installation or exist at all.Some of our staff also use Adobe Acrobat to scan, and even that fails to recognize the MFP as a scanner.
    We'll eventually be setting up the device to scan directly to a network folder, but we need a fallback while IT takes their time getting it set up; I can't imagine that the simplest option is not available at all. I must be missing something here, any assistance would be greatly appreciated.
    Edit: To add, I also ran the HP Print and Scan Doctor. Interestingly, it reports the device as a printer and only offers to "Fix Printing" without any sort of resolution for my scanning problem.

    There is no change to this problem after 6 months since the last post. Put simply, and as stated in the previous posts, there is no way to scan a document and receive the image on your PC. If you are working with graphics for any length of time or want to create an image for inclusion as an image in a document or web page using this piece of equipment will not allow you to do so.
    Great shame as every other function works well - it cannot be beyond the wit of HP to include a Windows application that enables you to scan an image, receive it in the software you are using at the time (e.g. Outlook, Word, Photoshop...) and use it in your work.
    HP Printers several years older than this £1000+ Enterprise printer were able to do this simple job and have done so for a great many years. Just being able to use Microsoft's Fax and Scan would be start.

  • How do I only allow certain users to print in color?

    Product Name: HP Color LaserJet Professional CP5225dn Printer (CE712A)
    Operating System Installed: Windows 7 Enterprise (64bit)
    I work at a K-12 school and purchased the HP Color LaserJet Professional CP5225dn Printer (CE712A) for use in our computer lab. I would like to know if it is possible to have it so that only certain users can print in color (possibly put a password on it). I know the cost for color is higher, and therefore, would like it so that students have to approve through teacher if they want to print in color.
    We are running it on our Print Server (networked) not through USB.
    Thank you for the help.

    Hi,
    That's a very good question actually. In my corporate networks, we are talking about hundreds of laser printers and the ONLY thing we can do: only allow people access to a set of mono laser printers, not all printers. For example, the following printer is using B&W as default but can't stop users to print in colors if they could access to the resourse:
    Regards. 
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • My Excel with PowerPivots acts weird, it hangs when i try to change font color

    Hi 
    I am facing a weird issue using PowerPivot in my workbook, there is a worksheet named Charts in my workbook and all the charts i am using resides in that worksheet. Whenever i try to change the font color in that sheet, my excel's color palette goes blur
    and then everything just freezes and turns black. This problem is happening only with Charts worksheet, when i try to change the color in other sheets, it works just, the problem is only with Charts sheet. File
    size is 16 MB, there are just 10 pivot tables with some calculations and some calculated fields. There are no add-ins other than PowerPivot. 
    Thanks,
    Shanker

    Hi,
    In regarding of the issue, please provide us more information to assist you better.
    Do you receive any error message?
    Which Excel version are you using?  Excel 2013 or other?
    Which workbook format are you using? XLS or XLSX?
    Are you performing any specific task?
    According to your description, this issue seems only occur with the special worksheet "Charts".
    Firstly, I recommend we copy all of the content to a new/blank Excel file to test.
    If it works fine, this issue might be caused by the "Charts" workbook itself. We'd better check the "Charts" workbook. Or re-build the file with a new workbook.
    If it still makes Excel hang with a new file, this issue might due to the content. Please check the content first.
    Secondly, we could follow below KB to troubleshoot this issue:
    https://support2.microsoft.com/kb/2758592/en-us?wa=wsignin1.0
    Thirdly, if the issue still exists, we may try to collect the Event log and App crash dump file to do advanced troubleshooting.
    Event log:
    http://windows.microsoft.com/en-US/windows7/Open-Event-Viewer
    App crash dump file:
    First enable app crash dump collection by copying following words into notepad, saving it as dump.reg and importing
    it:
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\localdumps\EXCEL.EXE]
    "DumpFolder"=hex(2):63,00,3a,00,5c,00,63,00,72,00,61,00,73,00,68,00,64,00,75,\
      00,6d,00,70,00,73,00,00,00
    "DumpCount"=dword:00000010
    "DumpType"=dword:00000001
    "CustomDumpFlags"=dword:00000000
    Then, open Excel
    to repro the issue. If crash issue appeared, please find the crashdump file under c:\.
    To further help you, please upload this file into Skydrive and shared the link here.
    Also, you can try to analyze dump by yourself if you would like to:
    How to analyze app crash dump file:
    http://blogs.technet.com/b/askperf/archive/2007/05/29/basic-debugging-of-an-application-crash.aspx
    Hope it's helpful.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Messed up color display and resolution because of mini-DVI to video adapter

    Once I connected the mini-DVI to video adapter to the tv and got weird colors on my screen for a while but then it worked out, then after a while I disconnected the cable and turned my computer off. After that, everytime I turned my macbook on, the color is fine for two seconds and then it turns into a weird offset color, really bright colors, kinda sketchy and just a few colors, and a weird resolution and display obviously, but then I just connect my Mini-DVI to video adapter and disconnect it again (quickly) and the color returns to normal. How can I make the normal colors stay and not have to connect the mini-DVI to video adapater everytime I want to see the normal color display and resolution??
    please help!

    Open the Universal Access pane of System Preferences, click on Seeing, turn off the White on Black, VoiceOver, and Zoom options, and drag the Contrast slider all the way to the left. If the issue persists, create a new folder on the desktop, drag half of the items from the Library/Preferences/ folder of the item in the Finder's sidebar with the house icon into it, and narrow down the files until you've isolated the one responsible.
    (30807)

  • How to give Common Background color for all JPanels in My Swing application

    Hi All,
    I am developing a swing application using The Swing Application Framework(SAF)(JSR 296). I this application i have multiple JPanel's embedded in a JTabbedPane. In this way i have three JTabbedPane embedded in a JFrame.
    Now is there any way to set a common background color for the all the JPanel's available in the application??
    I have tried using UIManager.put("Panel.background",new Color.PINK);. But it did not work.
    Also let me know if SAF has some inbuilt method or way to do this.
    Your inputs are valuable.
    Thanks in Advance,
    Nishanth.C

    It is not the fault of NetBeans' GUI builder, JPanels are opaque by default, I mean whether you use Netbeans or not.Thank you!
    I stand corrected (which is short for +"I jumped red-eyed on my feet and rushed to create an SSCCE to demonstrate that JPanels are... mmm... oh well, they are opaque by default... ;-[]"+)
    NetBeans's definitely innocent then, and indeed using it would be an advantage (ctrl-click all JPanels in a form and edit the common opaque property to false) over manually coding
    To handle this it would be better idea to make a subclass of JPanel and override isOpaque() to return false. Then use this 'Trasparent Panel' for all the panels where ever transparency is required.I beg to differ. From a design standpoint, I'd find it terrible (in the pejorative sense of the word) to design a subclass to inconsistently override a getter whereas the standard API already exposes the property (both get and set) for what it's meant: specify whether the panel is opaque.
    Leveraging this subclass would mean changing all lines where a would-be-transparent JPanel is currently instantiated, and instantiate the subclass instead.
    If you're editing all such lines anyway, you might as well change the explicit new JPanel() for a call to a factory method createTransparentJPanel(); this latter could, at the programmer's discretion, implement transparency whichever way makes the programmer's life easier (subclass if he pleases, although that makes me shudder, or simply call thePanel.setOpaque(false) before returning the panel). That way the "transparency" code is centralized in a single easy to maintain location.
    I had to read the code for that latter's UI classes to find out the keys to use (+Panel.background+, Label.foreground, etc.), as I happened to not find this info in an authoritative document - I see that you seem to know thoses keys, may I ask you where you got them from?
    One of best utilities I got from this forum, written by camickr makes getting these keys and their values very easy. You can get it from his blog [(->link)|http://tips4java.wordpress.com/2008/10/09/uimanager-defaults/]
    Definitely. I bit a pair of knucles off when discovered it monthes after cumbersomely traversing the BasicL&F code...
    Still, it is a matter-of-fact approach (and this time I don't mean that to sound pejorative), that works if you can test the result for a given JDK version and L&F, but doesn't guarantee that these keys are there to stand - an observation, but not a specification.
    Thanks TBM for highlighting this blog entry, that's the best keys list device I have found so far, but the questions still holds as to what specifies the keys.
    Edited by: jduprez on Feb 15, 2010 10:07 AM

  • Problem with clipping and concerned objects (or rather their color)

    Greeting everyone,
    I hope i don't bother you with things that are already known or, in the end, are a product of my own stupidity ;P
    My problem is the following:
    I was working on a neat design for a list. The first version (without clipping) looked like this:
    [http://www.7pics.info/?image=GHApp-Gradient-Mobile-HowItShouldBe_2c5.jpg]
    As you can see on the bottom, the list was on top of all graphical elements.
    And because this looks stupid, i decide to simply clip the list via "clip: Rectangle{...}".
    Well... turns out it's not as easy as i hoped it would be; all of a sudden the list looks like this:
    [http://www.7pics.info/?image=GHApp-GradientProblem-Mobile-1_fb7.jpg]
    From the left to the right you see the following: first picture is what you'd see initially, from the second to the last i scrolled down one entry each (respectively moved the list up 30 pixels).
    Further scrolling down doesn't change the look, it stays like in the last picture.
    Scrolling up again delivers the same image, but in reverse order.
    The clipping seems to change something in the style of the list elements.
    To be more specific, the gradient of a single element is now applied to the whole list.
    here is a Listing
    //the group which contains the list and the clipping
    Group{
         clip: Rectangle {
              x: 0, y: 70
              width: PublicVars.screenWidth, height: 210
              fill: Color.BLACK        //which color i use doesn't change the look
         content:[
              createChoicesList()
    //create a box for each entry and add text from a string sequence "results"
    createChoicesList():Node[]{
          for(result in results){
                           singleField = Group{
                   Rectangle {
                        fill:  LinearGradient {
                             startX : 0.0
                             startY : 0.0
                             endX : 0.250
                             endY : 0.250
                             stops: [
                                  Stop {
                                       color : Color.LIGHTBLUE
                                       offset: 0.0
                                  Stop {
                                       color : PublicVars.coolGradientBlueTransparent
                                       offset: 0.5
    }I have no clue why this happens. I tried to shift some things around, thinking it had to do something with the order of some elements but... it didn't change anything.
    Another thing i noticed afterwards:
    If i run the App as a desktop program, the gradient effect is all messed up. but this time it doesn't matter if I clip the list or not:
    [http://www.7pics.info/?image=GHApp-GradientProblem-Desktop-1_d5e.jpg]
    The gradients are totally misplaced and if I scroll down they move and appear/disappear randomly across the list entries. sometimes the highlighted elements even look like this:
    [http://www.7pics.info/?image=GHApp-GradientProblem-Desktop-2_89f.jpg]
    Any Ideas?
    P.s.:
    Could it be that retrieving the resolution of a mobile device via
    "var screenWidth = java.lang.Integer.parseInt(FX.getProperty("javafx.screen.width"));"
    isn't very accurate?
    If i use the values i get from this method for the desktop application, the screen will be smaller than in the emulated mobile phone
    Edited by: Mr._Moe on 04.09.2009 21:31

    Not sure about your problem, but I can answer your last question: you can now use the [javafx.stage.Screen|http://java.sun.com/javafx/1.2/docs/api/javafx.stage/javafx.stage.Screen.html] class to get screen dimensions.

  • Mini-DVI to Video shows w/o color and atleast 2 of everything

    I just bought a mini-DVI to Video converter for my Macbook. I tried to hook it up to my 42" Panasonic Viera and had white static lines going up my screen with no picture. I then tried to hook it up with the composite and lowered the resolution all the way down and had picture but only in black and white and it divided my TV almost in half and put the images on my monitor up twice. How do I get the whole picture to take up the whole screen in color so I can watch my iTunes movies and DVDs on my TV.

    From your posting, I can't tell what Viera model you have. However, I was just over to the Panasonic website and one 42" Viera advertised 4 HDMI inputs with 2 of them with separate audio inputs. If you have a similar model, you should go with the HDMI option. As per the posting above, you should be using the Apple mini DVI-->DVI cable. Couple that up with a DVI-->HDMI cable and you should be in business with the best video on your big screen. Works great on my 40" Sony.
    Re your problem with double images in black and white, I had a similar problem in a different vain. My problem was a DVD player that I had hooked up to my TV with a s-video cable and it did the exact same thing. It was driving me nuts until I had the bright idea of reading the DVD manual. Sure enough, there was a setting in the DVD setup that had to be checked in order to view through a s-video output. Once I changed the setting, I only had one picture and the color reappeared. You probably had a similar setting in your Viera manual that would correct that problem.
    Go with the HDMI option. Note that it will be necessary to run a separate cord for the audio.

  • Animated gif changes color palette while playing

    Hi everyone,
    I've been creating animted gifs using Matlab and the ImageMagick suite (convert). If I open the gifs in Preview, the color comes out fine in each frame; however i I use Quicktime (which is necessary, that's what we use for presentations) the color palette will change as the frames play.
    I just got the newest version of Quicktime, hoping that it would solve the problem, but it didn't. Any ideas?

    I'm not familiar to the software but I can guess what is happening.
    Too many colors. A GIF is 8 bit (256 colors) but some of them are not used by all software. Windows and Mac's are different.
    Does the software offer a way to reduce the number of colors used? Can you get it down to 8 bit? Can you discard unused colors with some other software?
    Have you considered building an image sequence movie? These allow many different images formats and support up to 32 bit formats (millions of colors).
    QuickTime Pro ($30) can import a series of images as a movie. The file size is much smaller than any video format used today (just the total of the images file size).

Maybe you are looking for

  • Private Key File problem

    I have Weblogic Server Version 6.0. I created Private Key File using Certificate Request Generator Servlet. It created the the private key file (.der) file & CSR using which I got the Trial Server Certificate from Verisign. I installed the certificat

  • InDesign CS6 - Can you add Google Walking Tour into a PDF document or interactive pdf?

    Hello, I am trying to figure out how to add a Google Walking tour into my pdf document. I tried using the HTML feature in InDesign CS6 but all i get is a static image of a map. Acording to the features of InDesign this should be working correct? Plea

  • Error while trying to retrieve text for error ORA-12162

    I'm accessing the VM through Putty. My DB and GGate both reside on the same machine. I'm trying to connect to DB using GG but It seems to be throwing some Issue. I tried to search for solution over net but couldnt get it fixed. I have set My ORACLE_H

  • [svn:fx-trunk] 10876: Add support for drag-and-drop from Spark List to Spark List.

    Revision: 10876 Author:   [email protected] Date:     2009-10-05 15:20:07 -0700 (Mon, 05 Oct 2009) Log Message: Add support for drag-and-drop from Spark List to Spark List. - List drop related handlers - LayoutBase APIs - VerticalLayout DND support N

  • System Error Messege in ABAP stack of XI

    Hi,   I cannot find the Basic Type IDOC = /ISDFPS/CREMAS04 in my XI server. I have checked it in WE30. However I have imported metaData using IDX2. How to get this in XI srver. I need this as I am gettinh another error in WE02/ WE05 as " error during