- Giving a class its own "A" link color...

.title, .title a:link, .subtitle, subtitle a:link {
color: #FFFFFF;
Wouldn't this give the color white to all links located
within a paragraph
that had TITLE or SUBTITLE assigned to it, even if nothing
was assigned to
the A tag itself?
Links within the cell are still getting the default link
color... despite
the cell having class="title"
Where did I go wrong in my syntax?

"Reese" <[email protected]> wrote in message
news:es81kg$svh$[email protected]..
> .title, .title a:link, .subtitle, subtitle a:link {
> color: #FFFFFF;
> }
>
> Wouldn't this give the color white to all links located
within a
> paragraph that had TITLE or SUBTITLE assigned to it,
even if nothing
> was assigned to the A tag itself?
>
> Links within the cell are still getting the default link
color...
> despite the cell having class="title"
A couple of potential problems:
1. If you set a:link, without a visited class, then if that
link was
visited, it will be purple
Test by changing your rule to this:
.title, .title a:link, .title a:visited,
.subtitle, subtitle a:link, subtitle a:visited {
color: #FFFFFF;
2. You have a conflicting style. Look for any other <a>
selectors in
your page styles.
Al Sparber - PVII
http://www.projectseven.com
Extending Dreamweaver - Nav Systems | Galleries | Widgets
Authors: "42nd Street: Mastering the Art of CSS Design"

Similar Messages

  • HT5616 I have multiple phones and iPads and all are linked to one iCloud account and one iTunes Account.  I want to keep the same iTunes Account so I can share music, etc., however, I want each device to have its own iCloud account.  How do I do this?

    I have multiple phones and iPads and all are linked to one iCloud account and one iTunes Account.  I want to keep the same iTunes Account so I can share music, etc., however, I want each device to have its own iCloud account.  Any help on how I can I do this?

    You'll need to create an Apple ID for each device. Use the new Apple ID for FaceTime, iMessage and iCloud on the device. Use the original Apple ID for Settings>iTunes & App Store.

  • Can two or more devices use the same Apple  account with different cell phone numbers. I want to use FaceTime on a my 5s and my wife wants her own FaceTime on a new iPad Air with its own cell number but be linked with me with iCloud to share music

    I have a 5s with an apple account and wife has a iPad air with its own cell number. Does the iPad need it's own apple account to use it's own phone number so her FaceTime calls are not sent to my phone. We want to be able to link each device to iCloud and share music, photos, ect. iPad iMessage and FaceTime have my cell number activated.

    How to use multiple iPods, iPads, or iPhones with one computer
    http://support.apple.com/kb/HT1495
    How to Share a Family iPad
    http://www.macworld.com/article/1163347/how_to_share_a_family_ipad.html
    Using iPhone, iPad, or iPod with multiple computers
    http://support.apple.com/kb/ht1202
    iOS & iCloud Tips: Sharing an Apple ID With Your Family
    http://www.macstories.net/stories/ios-5-icloud-tips-sharing-an-apple-id-with-you r-family/
    How To Best Use and Share Apple IDs across iPhones, iPads and iPods
    http://www.nerdsonsite.com/blog/2012/06/07/help-im-appleid-confused/
     Cheers, Tom

  • Each exception class in its own file????

    Hi, I am still quite new to java, and I don't fully understand exceptions. Could you please tell me if for each exception class you require do you have to have a a seperate file. e.g. I'm creating my own array exceptions classes.
    The following is the structure:
    ** The base array exceptions class
    public class arrayException extends Exception {
    public arrayException () { super(); }
    public arrayException (String s) { super(s); }
    ** The outofboundsArrayException
    public class outofboundsArrayException extends arrayException {
    public outofboundsArrayException ()
    { super("Number entered is out of bounds"); }
    public outofboundsArrayException (String s)
    { super(s); }
    ** The fullArrayExceptiom
    public class fullArrayException extends arrayException {
    public fullArrayException ()
    { super("The array is full"); }
    public fullArrayException (String s)
    { super(s); }
    So will the three classes above need their own file.
    I wanted to also know what the super does. I thought when the exception was raised, the text message in the super method is outputted, but i've tested that and it doesn't output (e.g. the error message "The array is full" doesn't output). The only thing that outputs is what you put in the catch part.
    Thank You very Much!

    Could you please tell me if
    for each exception class you require do you have to
    have a a seperate file.Yes. Exception classes are like any other public class in Java, in that it must be in its own file with the standard naming conventions.
    I wanted to also know what the super does. I thought
    when the exception was raised, the text message in
    the super method is outputted, but i've tested that
    and it doesn't outputsuper([0,]...[n]) calls a constructor in the superclass of your current class matching the signature super([0,]...[n]). In this particular case, the Exception's message property is being set by the parent constructor. If you were to leave out super([0,]...[n]), the default no-arg constructor of the superclass would be invoked, and the message would not be set.
    Use the getMessage() method of the Exception class to return the message value in later references to your object.

  • Class implementing its own inner interface?

    Hi
    If I try to compile the following I get a "cyclic inheritance involving Data_set" compiler error on line 1:
        public class Data_set implements Data_set.Row
            public interface Row
                String column(final int a_index);
            public String column(final int a_index)
                return "something";
            public Row row(final int a_index)
                return new Row_impl();
            private class Row_impl
                implements Row
                public String column(final int a_index)
                    return "something else";
        }Is there any good logical reason why this should be disallowed, given that the interface is necessarily static and putting it inside the class seems like just a namespace issue that would involve no cyclic dependencies?
    Thanks
    Colin

    colin_chambers wrote:
    The Row component here only has meaning with respect to the Data_set container, so I do think that it makes sense to scope the Row name inside Data_set I respectfully disagree. Row is much more independent of a set of Rows than a DataSet is from Rows. A row can live on its own, a data set cannot. Your domain modeling is iffy at best.
    I would find it extra syntactic clutter to extract the row explicitly in these cases.You should never resort to a poor design to avoid "syntactic clutter", and it's quite likely that a proper design will reduce the clutter. My guess is that you've got a bad design through and through, and should consider maybe an inversion of control? Maybe what you're really looking for is a [Visitor pattern|http://en.wikipedia.org/wiki/Visitor_pattern]?
    public interface RowVisitor {
       void visitRow(Row row);
    public interface RowVisitable {
       void acceptRowVisitor(RowVisitor visitor);
    public class Row extends RowVisitable {
       public void acceptRowVisitor(RowVisitor visitor) {
          visitor.visitRow(this);
       //...other stuff
    public class DataSet implements RowVisitable {
       private final Collection<RowVisitable> children;
       public void acceptRowVisitor(RowVisitor visitor) {
          for ( RowVisitable row : children ) {
             row.acceptRowVisitor(visitor);
    DataSet set;
    RowVisitor printVisitor = new RowVisitor() {
       public void visitRow(Row row) {
          System.out.println(row);
    set.acceptRowVisitor(printVisitor);Another option would be an Iterator pattern.

  • My imessage stopped working over the wknd when I went to check if it was on it had switched off on its own. Now I try to turn my imessage back on and its giving me some kind of server error. Any suggestions?

    My imessage stopped working over the wknd when I went to check if it was on it had switched off on its own. Now I try to turn my imessage back on and its giving me some kind of server error. Any suggestions?

    Ok actually my mistake it says "an error occurred during activation. try again" I spoke with apple tech support right now and she mentioned they are having trouble with there servers.  Do you by any chance know what the restrictions area means? Should that be activated or deactivated, does that make a difference?

  • Each link opens to same popup, how to give each its own?

    Not sure I worded that right but...
    Each page has like the first page "Welcome" followed by a brief paragraph followed by a "read more..." link/button which opens to a small popup window with additional 3-4 paragraphs.
    So the main page has "WELCOME" > small paragraph > read more button
    Below that has "LATEST WORKS" > small paragraph > read more button
    Both of those "read more..." lead to the same popup window but have their own title "Welcome" and "Latest works"(don't know where the mini title file is) but the paragraphs are the same which I don't want. I want each "read more..." to open to its own little popup.
    Still learning script but is their anything in the script to change or something on stage? Or just redo everything somehow
    on (rollOver) {
        gotoAndPlay("p1");
    on (releaseOutside, rollOut) {
        gotoAndPlay("p2");
    on (release) {
        _root.popup.gotoAndStop(2);
        _root.popup.label.text = i;

    where's i defined.  that's the variable that's assigning text to your popup.

  • Link work iPhone with its own Apple ID to personal iTunes match.

    I recently received an iPhone 5c from work.  The phone has its own Apple ID.  How do I link my personal iTunes match with the work phone?
    Harold

    HI
    You cannot link your work Apple ID with your own Apple id. Match can only be used with the Apple ID that you used to subscribe to match.
    Jim

  • Calendar changing color on its own

    Hi,
    for a couple of days now (possibly since the last software update) my calendar has been changing the color assigned to the private calendar (which is set to be the default calendar) on its own. I always had it in green (which used to be the default setting) and now it's some kind of turquoise. I change it to green (by right-clicking on the calendar, going to "Get Info" and changing the color) and a few minutes later is turquoise again. It's driving me nuts, not because the color annoys me, but because it does this change without me doing anything. Does anyone else have this problem?
    Thanks,
    F.

    A lot of people are experiencing this - look at the 'More Like This' box to the right.
    In one of the discussions, someone posted they had talked to Apple and Apple is aware of the problem and working on a fix.

  • My Macbook Pro started freezing all the time & going to sleep on its own for no reason

    I've been having trouble for a few weeks with my computer freezing way too often for seemingly no reason - I'm using it exactly the same way I always have with no problems, and even actively trying to have less applications open (which seems to have no effect). I can't always load simple webpages without it freezing and giving me the color wheel and it's just MUCH slower in general. It is seriously making it difficult to use my computer for work  or for fun...
    It has also started going to sleep on its own - the screen will just go black (or sometimes BLUE) and the keyboard lights turn off, and the only way to get it to wake back up is to close the computer, wait, open it again and click or press a key. It doesn't respond to any keys/clicks until it has been closed and reopened.
    It seems to overheat really easily lately as well - but it does not always overheat when it freezes.
    SMC reset did not seem to have an effect. Activity Monitor doesn't show anything crazy, everything is pretty much 0% except Firefox around 7-12% as I'm typing this. 246 GB available on my hard drive so that doesn't seem to be the problem either. Right after restarting my computer it seems better but the problems quickly resurface...
    I googled for help before posting this and someone had suggested running the command
    syslog -k Sender kernel -k Message CReq 'Channel t|GPU D|I/O|find tok|n Cause: -' | tail | open -ef
    in Terminal, which they said "Normally the command will produce no output, and the window will be empty." But mine gave this:
    Tue Apr 15 21:04:24 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    Tue Apr 15 21:04:42 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    Tue Apr 15 21:35:04 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    Tue Apr 15 21:35:20 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    Wed Apr 16 10:56:46 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    Wed Apr 16 10:57:03 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    Wed Apr 16 12:11:17 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    Wed Apr 16 12:11:35 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    Wed Apr 16 12:11:52 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    Wed Apr 16 12:23:01 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    I don't know what that means or if that is useful info to help solve my problem? I just want to know what I can do to make my mac go back to normal!
    I ran Etrecheck:
    Hardware Information:
        MacBook Pro (15-inch, Early 2011)
        MacBook Pro - model: MacBookPro8,2
        1 2 GHz Intel Core i7 CPU: 4 cores
        4 GB RAM
    Video Information:
        AMD Radeon HD 6490M - VRAM: 256 MB
        Intel HD Graphics 3000 - VRAM: 384 MB
    System Software:
        Mac OS X 10.6.8 (10K549) - Uptime: 0 days 0:24:42
    Disk Information:
        Hitachi HTS725050A9A362 disk0 : (465.76 GB)
            (null) (disk0s1) <not mounted>: 200 MB
            Macintosh HD (disk0s2) / [Startup]: 465.44 GB (229.26 GB free)
        MATSHITADVD-R   UJ-898 
    USB Information:
        Apple Inc. FaceTime HD Camera (Built-in)
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Computer, Inc. IR Receiver
    FireWire Information:
    Thunderbolt Information:
        Apple, Inc. MacBook Pro
    Kernel Extensions:
        com.digidesign.iokit.DigiDal    (8.0.3f1)
        com.paceap.kext.pacesupport.snowleopard    (5.7.2)
    Startup Items:
        DigidesignLoader: Path: /Library/StartupItems/DigidesignLoader
        M-AudioFastTrack: Path: /Library/StartupItems/M-AudioFastTrack
        PACESupport: Path: /Library/StartupItems/PACESupport
    Problem System Launch Daemons:
        [System]    org.samba.winbindd.plist 3rd-Party support link
    Launch Daemons:
        [System]    com.adobe.fpsaud.plist 3rd-Party support link
        [System]    com.google.keystone.daemon.plist 3rd-Party support link
        [System]    com.microsoft.office.licensing.helper.plist 3rd-Party support link
        [System]    org.eyebeam.SelfControl.plist 3rd-Party support link
        [System]    PACESupport.plist 3rd-Party support link
    Launch Agents:
        [System]    com.google.keystone.agent.plist 3rd-Party support link
        [System]    com.hp.help.tocgenerator.plist 3rd-Party support link
        [System]    com.m-audio.mobilepremkii.helper.plist 3rd-Party support link
    User Launch Agents:
        [not loaded]    com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist
        [not loaded]    com.facebook.videochat.[redacted].plist 3rd-Party support link
        [not loaded]    com.spotify.webhelper.plist 3rd-Party support link
    User Login Items:
        Flux
        iTunesHelper
        RescueTime
    Internet Plug-ins:
        o1dbrowserplugin: Version: 5.2.4.18058 3rd-Party support link
        nplastpass: Version: 2.5.5 3rd-Party support link
        Unity Web Player: Version: UnityPlayer version 3.5.2f2 - SDK 10.6 3rd-Party support link
        RealPlayer Plugin: Version: Unknown
        Silverlight: Version: 5.1.20913.0 - SDK 10.6 3rd-Party support link
        FlashPlayer-10.6: Version: 13.0.0.201 - SDK 10.6 3rd-Party support link
        QuickTime Plugin: Version: 7.6.6
        Flash Player: Version: 13.0.0.201 - SDK 10.6 3rd-Party support link
        googletalkbrowserplugin: Version: 5.2.4.18058 3rd-Party support link
        SharePointBrowserPlugin: Version: 14.4.1 - SDK 10.6 3rd-Party support link
        AdobePDFViewer: Version: 10.1.1 3rd-Party support link
        iPhotoPhotocast: Version: 7.0 - SDK 10.7
        JavaAppletPlugin: Version: 13.9.8 - SDK 10.6 Outdated! Update
    iTunes Plug-ins:
        Quartz Composer Visualizer: Version: 1.2
    3rd Party Preference Panes:
        Flash Player  3rd-Party support link
        Growl  3rd-Party support link
        M-AudioFastTrack  3rd-Party support link
        M-Audio MobilePre  3rd-Party support link
    Old Applications:
        None
    Time Machine:
        Time Machine information requires OS X 10.7 "Lion" or later.
    Top Processes by CPU:
             5%    firefox
             3%    EtreCheck
             2%    WindowServer
             2%    hidd
             1%    mds
    Top Processes by Memory:
        545 MB    firefox
        74 MB    mds
        57 MB    WindowServer
        41 MB    Mail
        41 MB    Finder
    Virtual Memory Information:
        1.88 GB    Free RAM
        818 MB    Active RAM
        458 MB    Inactive RAM
        880 MB    Wired RAM
        190 MB    Page-ins
        0 B    Page-outs

    Eric - I dont understand how I'd use caffeinate.  I am not running any code or particular script.  My system goes to sleep if surfing the web, or running Word or Excel, etc. 
    Or..  Are you saying I should go through and type 'caffeinate X' for all of my applications?

  • Applet not opening a socket on its own host. Please help.

    I have also posted this in JSC2 forum.
    My applet is not able to open a socket on its own host.
    The applet is being served by a JSP (developed using Sun Creator2) from my laptop behind a DHCP broadband router at (say) 125.238.104.132 at my residence. I have a URL �samsub.no-ip.biz� that redirects port 80 calls to 29080 where my application runs. All required router rules/mapping are done and the JSPs run perfectly fine. In one of the pages, I have inserted an applet inside an escape disabled statictext field as follows:
    <applet code="AppClient.class" width=540 height=440></applet>
    The applet code and the test server code are shown below for your analysis. Note that, when run on the same machine (at home), the applet works fine. The commented lines will show other failed test. The error reported at the java console was: null pointer at line 56
    Could someone help me please. Thanx. MarySam
    The applet code
    1     import java.util.*;          
    2     import java.awt.*;          
    3     import java.applet.*;          
    4     import java.text.*;          
    5     import javax.swing.*;          
    6     import com.sun.java.swing.plaf.windows.*;          
    7     import java.awt.event.*;          
    8     import java.net.*;          
    9               
    10     public class AppClient extends Applet {          
    11     JInternalFrame jif;          
    12     JTextArea jta1, jta2;          
    13     Socket kkSocket = null;          
    14               
    15     public void init() {          
    16          try {     
    17               LookAndFeel lf = new WindowsLookAndFeel();
    18               UIManager.setLookAndFeel(lf);
    19          kkSocket = new Socket("125.238.104.132", 4444);
              //kkSocket = new Socket("samsub.no-ip.biz", 4444);
              //kkSocket = new Socket("125.238.104.132:29080", 4444);
              //kkSocket = new Socket("samsub.no-ip.biz:29080", 4444);
    20          }      catch(Exception e) {}
    21               
    22          setLayout(null);      
    23          setBackground(Color.black);     
    24          jif = new JInternalFrame();     
    25          jif.setLocation(20,20);     
    26          jif.setSize(500,400);     
    27          Container con1 = jif.getContentPane();     
    28          con1.setLayout(null);     
    29               
    30          jta1 = new JTextArea();      
    31          JScrollPane jcp1 = new JScrollPane(jta1);     
    32          jcp1.setBounds(10,10,410,100);     
    33          con1.add(jcp1);     
    34               
    35          jta2 = new JTextArea();     
    36          JScrollPane jcp2 = new JScrollPane(jta2);     
    37          jcp2.setBounds(10,115,470,245);     
    38          con1.add(jcp2);      
    39               
    40          JButton jb = new JButton("Go");     
    41          jb.setBounds(425,10,60,30);     
    42          jb.addActionListener(this);     
    43          con1.add(jb);      
    44               
    45          JLabel jlb = new JLabel();     
    46          jlb.setOpaque(true);     
    47          jlb.setBackground(Color.gray);     
    48          jlb.setForeground(Color.white);      
    49          jlb.setBounds(425,50,60,30);     
    50          con1.add(jlb);      
    51               
    52               
    53          jif.setVisible(true);     
    54          add(jif);      
    55          //jta2.setText(getCodeBase().toString());     
    56          jta2.setText(kkSocket.getInetAddress().toString());     
    57               
    58     }          
    59               
    60     public void start() {}          
    61               
    62     public void stop() {}          
    63               
    64               
    65     }          
    66               
    67               
    The test server Code
    1     import java.net.*;                         
    2     import java.io.*;                         
    3                              
    4     public class MyServer {                         
    5     public static void main(String[] args) throws IOException {               
    6                              
    7     ServerSocket serverSocket = null;                    
    8     try {                         
    9     serverSocket = new ServerSocket(4444);                    
    10     } catch (IOException e) {                         
    11     System.err.println("Could not listen on port: 4444.");          
    12     System.exit(1);                         
    13     }                         
    14                              
    15     Socket clientSocket = null;                         
    16     try {                         
    17     clientSocket = serverSocket.accept();                    
    18     System.out.println(clientSocket.getInetAddress().toString());          
    19     } catch (IOException e) {                         
    20     System.err.println("Accept failed.");                    
    21     System.exit(1);                         
    22     }                         
    23                              
    24     clientSocket.close();                         
    25     serverSocket.close();                         
    26     }                         
    27     }                         
    28                              
    29

    Hi Guys,
    I'm not actually from Mozilla Firefox, but I've had this problem before, and I've solved it with the help from another website.
    What you need to do is download a programme called "tdsskiller" from here:
    http://www.geekpolice.net/t23369-computer-infected
    scroll down the page and you should see a link. (I know the article itself seems irrelevant to your problem, but trust me, the programme they recommend works on this virus too.) It's only 1.3MB or so, so it doesn't take up huge amounts of space either! :)
    I can safely say that it is COMPLETELY safe to download this from geekpolice.net, as this website is a free website which helps people with viruses on their computer. If you ever have another problem with anything to do with computers, go and have a look on geekpolice.net, they should have something that might help you.
    Before anyone wonders why I am singing its praises so much, no I am not advertising them for any personal gain, but they have helped me get rid of some pretty nasty viruses on my computer before, so I am very grateful to them :)
    SO, anyway, after you've downloaded the tdsskiller, you should run it, and it may find some infected files, in which case let it repair them. After rebooting your computer, the annoying opening tab thing should be gone!
    I hope this works for anyone who's stuck :) If it doesn't, I'm really sorry, but it has definately worked for me!
    Good luck!
    Yashmeee :)

  • JSP error page does not displayed on its own, includes in the original JSP

    Problem Description: - Exceptions in a Condition cause pages to fail to render.
    The actual issue is, the JSP error page does not displayed on its own, included in the original JSP Page when exception occurs.
    Problem Cause: As per the JSP specification when jsp content reached the buffer size (default 8KB) the page being flushed (Part of condent displays). The default �autoFlush� value is true.
    When the page buffer value is default size (8KB), and if any exception occurs after flushing the part of the content, instead of redirecting into error page, the error page content included in the original page.
    If i specify autoFlush="false" and with default buffer size, at the runtime if the buffer size is reached, i am getting stackoverflow error.
    To solve the above problem we can make it autoFlush=�false� and buffer=�100KB�. But we can�t predict the actual size of the page.
    I found in one of the weblogic forum as no solution for this issue. Ref.
    http://support.bea.com/application?namespace=askbea&origin=ask_bea_answer.jsp&event=link.view_answer_page_clfydoc&answerpage=solution&page=wls/S-10309.htm
    Please provide me any solution to resolve the problem.

    Error-Page tags work best with an error.html pages. If you have an error.jsp page what I would do, and I have, is wrap my classes and jsp pages in a try catch block where you forward to the error jsp page and display anything you want. YOu can also do this with if else statements. I have used the tomcat error pages before but when I've implemented them I used java.lang.Exception as the error to catch not Throwable. I don't know if this would make a difference or have anything to do with your problem.

  • How to create a window with its own window border other than the local system window border?

    How to create a window with its own window border other than the local system window border?
    For example, a border: a black line with a width 1 and then a transparent line with a width 5. Further inner, it is the content pane.
    In JavaSE, there seems to have the paintComponent() method for the JFrame to realize the effect.

    Not sure why your code is doing that. I usually use an ObjectProperty<Point2D> to hold the initial coordinates of the mouse press, and set it to null on a mouse release. That seems to avoid the dragging being confused by mouse interaction with other nodes.
    import javafx.application.Application;
    import javafx.application.Platform;
    import javafx.beans.property.ObjectProperty;
    import javafx.beans.property.SimpleObjectProperty;
    import javafx.collections.FXCollections;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.geometry.Point2D;
    import javafx.geometry.Pos;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.ChoiceBox;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.AnchorPane;
    import javafx.scene.layout.StackPane;
    import javafx.scene.layout.VBox;
    import javafx.scene.paint.Color;
    import javafx.stage.Stage;
    import javafx.stage.StageStyle;
    import javafx.stage.Window;
    public class CustomBorderExample extends Application {
      @Override
      public void start(Stage primaryStage) {
      AnchorPane root = new AnchorPane();
      root.setStyle("-fx-border-color: black; -fx-border-width: 1px; ");
      enableDragging(root);
      StackPane mainContainer = new StackPane();
        AnchorPane.setTopAnchor(mainContainer, 5.0);
        AnchorPane.setLeftAnchor(mainContainer, 5.0);
        AnchorPane.setRightAnchor(mainContainer, 5.0);
        AnchorPane.setBottomAnchor(mainContainer, 5.0);
      mainContainer.setStyle("-fx-background-color: aliceblue;");
      root.getChildren().add(mainContainer);
      primaryStage.initStyle(StageStyle.TRANSPARENT);
      final ChoiceBox<String> choiceBox = new ChoiceBox<>(FXCollections.observableArrayList("Item 1", "Item 2", "Item 3"));
      final Button closeButton = new Button("Close");
      VBox vbox = new VBox(10);
      vbox.setAlignment(Pos.CENTER);
      vbox.getChildren().addAll(choiceBox, closeButton);
      mainContainer.getChildren().add(vbox);
        closeButton.setOnAction(new EventHandler<ActionEvent>() {
          @Override
          public void handle(ActionEvent event) {
            Platform.exit();
      primaryStage.setScene(new Scene(root,  300, 200, Color.TRANSPARENT));
      primaryStage.show();
      private void enableDragging(final Node n) {
       final ObjectProperty<Point2D> mouseAnchor = new SimpleObjectProperty<>(null);
       n.addEventHandler(MouseEvent.MOUSE_PRESSED, new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent event) {
            mouseAnchor.set(new Point2D(event.getX(), event.getY()));
       n.addEventHandler(MouseEvent.MOUSE_RELEASED, new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent event) {
            mouseAnchor.set(null);
       n.addEventHandler(MouseEvent.MOUSE_DRAGGED, new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent event) {
            Point2D anchor = mouseAnchor.get();
            Scene scene = n.getScene();
            Window window = null ;
            if (scene != null) {
              window = scene.getWindow();
            if (anchor != null && window != null) {
              double deltaX = event.getX()-anchor.getX();
              double deltaY = event.getY()-anchor.getY();
              window.setX(window.getX()+deltaX);
              window.setY(window.getY()+deltaY);
      public static void main(String[] args) {
      launch(args);

  • Mouse moves on its own

    hey,
    does anyone have the same problem?
    my mouse on the screen moves on its own and presses random buttons:( so annoying
    I haven't had this computer even a year and its giving me a problem.
    I use logitec wireless mouse. is there anything i need to set up in the preferences?
    thank you

    There are several possible causes for this issue. Take each of the following steps until it's resolved.
    1. Follow the instructions in this support article.
    2. Open the Bluetooth preference pane in System Preferences and check for unknown or forgotten input devices. Disconnect any USB input devices that you aren't using.
    3. Boot in safe mode and test, preferably without launching any third-party applications. If you don't have the problem in safe mode, but it comes back when you reboot as usual, stop here and post your results. If you can't boot in safe mode, do the same. If you booted in safe mode and there was no change, go on to the next step.
    4. Reset the System Management Controller.
    5. If you're using a Bluetooth trackpad, investigate potential sources of interference, including USB 3 devices.
    6. A swollen battery in a MacBook Pro or Air can impinge on the trackpad from below and cause erratic behavior. If you have trouble clicking the trackpad, this is likely the reason. The battery must be replaced.
    7. There's a report that a (possibly defective) Thunderbolt Ethernet adapter can cause the built in trackpad of a MacBook to  behave erratically. If you're using such an adapter, disconnect it and test.
    8. There's also a report of erratic cursor movements caused by an external display that was connected but not turned on.
    9. If none of the above applies, or if you have another reason to think your computer is being remotely controlled, remove it from the network by turning off Wi-Fi (or your Wi-Fi access point), disconnecting from a Bluetooth network link, and unplugging the Ethernet cable or USB modem, whichever is applicable. If the cursor movements stop at once, you should suspect an intrusion.
    10. Make a "Genius" appointment at an Apple Store to have the machine tested.

  • Change text "link" color only in Spry Tab content area

    I need to have multiple text link colors in my site for light
    and dark background colors. The only regions in my site that have a
    white background are in the Spry Tab Panel content area. I can't
    figure out how to change the text color for text links in the spry
    content only. I tried to add a:link ..etc... to the style sheet,
    but it did not effect anything
    (I also need to clean my style sheet (s). But that comes
    next.
    Here
    is a Link to a Sample Page in my site
    null

    Here is the SpryTabbedPanels style sheet in my site. I can't
    seem to figure out the changes I need to make to effect the content
    area.
    I tried to add the following (see .TabbedPanelsContentGroup
    below)
    a: link {
    color: #0099CC;
    text-decoration: none
    a:active {
    color: #99CC33;
    text-decoration: none
    a:visited {
    color: #0099CC;
    text-decoration: none
    a:hover {
    color: #99CC33;
    text-decoration: underline
    @charset "UTF-8";
    /* SpryTabbedPanels.css - version 0.4 - Spry Pre-Release 1.6
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights
    reserved. */
    /* Horizontal Tabbed Panels
    * The default style for a TabbedPanels widget places all tab
    buttons
    * (left aligned) above the content panel.
    /* This is the selector for the main TabbedPanels container.
    For our
    * default style, this container does not contribute anything
    visually,
    * but it is floated left to make sure that any floating or
    clearing done
    * with any of its child elements are contained completely
    within the
    * TabbedPanels container, to minimize any impact or
    undesireable
    * interaction with other floated elements on the page that
    may be used
    * for layout.
    * If you want to constrain the width of the TabbedPanels
    widget, set a
    * width on the TabbedPanels container. By default, the
    TabbedPanels widget
    * expands horizontally to fill up available space.
    * The name of the class ("TabbedPanels") used in this
    selector is not
    * necessary to make the widget function. You can use any
    class name you
    * want to style the TabbedPanels container.
    .TabbedPanels {
    margin: 0px;
    float: right;
    clear: none;
    width: 82%; /* IE Hack to force proper layout when preceded
    by a paragraph. (hasLayout Bug)*/
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 2px;
    padding-left: 0px;
    /* This is the selector for the TabGroup. The TabGroup
    container houses
    * all of the tab buttons for each tabbed panel in the
    widget. This container
    * does not contribute anything visually to the look of the
    widget for our
    * default style.
    * The name of the class ("TabbedPanelsTabGroup") used in
    this selector is not
    * necessary to make the widget function. You can use any
    class name you
    * want to style the TabGroup container.
    .TabbedPanelsTabGroup {
    margin: 0px;
    padding: 0px;
    /* This is the selector for the TabbedPanelsTab. This
    container houses
    * the title for the panel. This is also the tab "button"
    that the user clicks
    * on to activate the corresponding content panel so that it
    appears on top
    * of the other tabbed panels contained in the widget.
    * For our default style, each tab is positioned relatively 1
    pixel down from
    * where it wold normally render. This allows each tab to
    overlap the content
    * panel that renders below it. Each tab is rendered with a 1
    pixel bottom
    * border that has a color that matches the top border of the
    current content
    * panel. This gives the appearance that the tab is being
    drawn behind the
    * content panel.
    * The name of the class ("TabbedPanelsTab") used in this
    selector is not
    * necessary to make the widget function. You can use any
    class name you want
    * to style this tab container.
    .TabbedPanelsTab {
    position: relative;
    top: 1px;
    float: left;
    padding: 4px 10px;
    margin: 0px 1px 0px 0px;
    background-color: #CCCC99;
    list-style: none;
    border-left: solid 1px #CCC;
    border-bottom: solid 1px #999;
    border-top: solid 1px #999;
    border-right: solid 1px #999;
    -moz-user-select: none;
    -khtml-user-select: none;
    cursor: pointer;
    font-family: sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #000000;
    /* This selector is an example of how to change the appearnce
    of a tab button
    * container as the mouse enters it. The class
    "TabbedPanelsTabHover" is
    * programatically added and removed from the tab element as
    the mouse enters
    * and exits the container.
    .TabbedPanelsTabHover {
    background-color: #99CC33;
    color: #000000;
    /* This selector is an example of how to change the
    appearance of a tab button
    * container after the user has clicked on it to activate a
    content panel.
    * The class "TabbedPanelsTabSelected" is programatically
    added and removed
    * from the tab element as the user clicks on the tab button
    containers in
    * the widget.
    * As mentioned above, for our default style, tab buttons are
    positioned
    * 1 pixel down from where it would normally render. When the
    tab button is
    * selected, we change its bottom border to match the
    background color of the
    * content panel so that it looks like the tab is part of the
    content panel.
    .TabbedPanelsTabSelected {
    background-color: #FFFFFF;
    border-bottom: 1px solid #EEE;
    color: #000000;
    /* This selector is an example of how to make a link inside
    of a tab button
    * look like normal text. Users may want to use links inside
    of a tab button
    * so that when it gets focus, the text *inside* the tab
    button gets a focus
    * ring around it, instead of the focus ring around the
    entire tab.
    .TabbedPanelsTab a {
    color: black;
    text-decoration: none;
    /* This is the selector for the ContentGroup. The
    ContentGroup container houses
    * all of the content panels for each tabbed panel in the
    widget. For our
    * default style, this container provides the background
    color and borders that
    * surround the content.
    * The name of the class ("TabbedPanelsContentGroup") used in
    this selector is
    * not necessary to make the widget function. You can use any
    class name you
    * want to style the ContentGroup container.
    .TabbedPanelsContentGroup {
    clear: both;
    border-left: solid 1px #CCC;
    border-bottom: solid 1px #CCC;
    border-top: solid 1px #999;
    border-right: solid 1px #999;
    background-color: #FFFFFF;
    color: #000000;
    a: link {
    color: #0099CC;
    text-decoration: none
    a:active {
    color: #99CC33;
    text-decoration: none
    a:visited {
    color: #0099CC;
    text-decoration: none
    a:hover {
    color: #99CC33;
    text-decoration: underline
    /* This is the selector for the Content panel. The Content
    panel holds the
    * content for a single tabbed panel. For our default style,
    this container
    * provides some padding, so that the content is not pushed
    up against the
    * widget borders.
    * The name of the class ("TabbedPanelsContent") used in this
    selector is
    * not necessary to make the widget function. You can use any
    class name you
    * want to style the Content container.
    .TabbedPanelsContent {
    padding: 4px;
    /* This selector is an example of how to change the appearnce
    of the currently
    * active container panel. The class
    "TabbedPanelsContentVisible" is
    * programatically added and removed from the content element
    as the panel
    * is activated/deactivated.
    .TabbedPanelsContentVisible {
    /* Vertical Tabbed Panels
    * The following rules override some of the default rules
    above so that the
    * TabbedPanels widget renders with its tab buttons along the
    left side of
    * the currently active content panel.
    * With the rules defined below, the only change that will
    have to be made
    * to switch a horizontal tabbed panels widget to a vertical
    tabbed panels
    * widget, is to use the "VTabbedPanels" class on the
    top-level widget
    * container element, instead of "TabbedPanels".
    /* This selector floats the TabGroup so that the tab buttons
    it contains
    * render to the left of the active content panel. A border
    is drawn around
    * the group container to make it look like a list container.
    .VTabbedPanels .TabbedPanelsTabGroup {
    float: left;
    width: 10em;
    height: 20em;
    background-color: #CCCC99;
    position: relative;
    border-top: solid 1px #999;
    border-right: solid 1px #999;
    border-left: solid 1px #CCC;
    border-bottom: solid 1px #CCC;
    /* This selector disables the float property that is placed
    on each tab button
    * by the default TabbedPanelsTab selector rule above. It
    also draws a bottom
    * border for the tab. The tab button will get its left and
    right border from
    * the TabGroup, and its top border from the TabGroup or tab
    button above it.
    .VTabbedPanels .TabbedPanelsTab {
    float: none;
    margin: 0px;
    border-top: none;
    border-left: none;
    border-right: none;
    /* This selector disables the float property that is placed
    on each tab button
    * by the default TabbedPanelsTab selector rule above. It
    also draws a bottom
    * border for the tab. The tab button will get its left and
    right border from
    * the TabGroup, and its top border from the TabGroup or tab
    button above it.
    .VTabbedPanels .TabbedPanelsTabSelected {
    background-color: #CCCC99;
    border-bottom: solid 1px #999;
    /* This selector floats the content panels for the widget so
    that they
    * render to the right of the tabbed buttons.
    .VTabbedPanels .TabbedPanelsContentGroup {
    clear: none;
    float: left;
    padding: 0px;
    width: 30em;
    height: 20em;

Maybe you are looking for