Help please! Going mad with CSS in JEditorPane

Hi gurus,
For more then two days now i am trying to get css working with html in my jeditorpane.
This is the stylesheet:
.toc1
font-size:12.0pt;
font-family:Arial;
font-weight:bold;
margin-bottom: 0px;
.toc2
font-size:11.0pt;
font-family:"Times New Roman";
margin-left: 20px;
margin-top: 0px;
margin-bottom: 0px;
.plannerhyperlink
color:green;
text-decoration:italic;
SIMPLE isn't it?
In my JEditorPane constructor I do this
StyleSheet styleSheet = new StyleSheet();
//StyleSheet styleSheet = kit.getStyleSheet();
FileReader reader = new FileReader("/programs/eclipse/workspace/Planner/src/nl/renepetersconsultancy/planner/gui/HTMLHelp/test.css");
styleSheet.loadRules(reader, new URL("file:/programs/eclipse/workspace/Planner/src/nl/renepetersconsultancy/planner/gui/HTMLHelp/test.css"));
kit.setStyleSheet(styleSheet);
setEditorKit(kit);
setPage(url);
I know that the rules are loaded: I printed them to check that. But nothing happens!!!! Almost all layout is gone. If I use the original stylesheet and load my rules on top of them, I can see I have all of them, but everything is layout with the original default style and again my layout is ignored.
HELP Please, anyone. I am desperate (deadline + demo is tomorrow) :-(
Rene'

GL is far easier to do simple CSS than DW, but once you get through the awkward DW interface, it can become clearer. I can only easily see how CSS is created in DW by exporting a GL site that has some already in it. Still not as easy as GL, but we're now stuck with it.
DW still does not handle full fledged CSS unless you have coding experience.
DW has always been more for the programmer than designer (just try asking a question on the DW forum :-)
CS4 seems to be an improvement, but not there yet.

Similar Messages

  • Urgent help please, I made an file with the size 1024x768, then i made two folios, one for retina 2048x1536 and one for non retina 1024x768, i have alot of video content in it, everything works perfect on my retina ipad, but when i open it on ipad 2 an er

    Urgent help please, I made an file with the size 1024x768, then i made two folios, one for retina 2048x1536 and one for non retina 1024x768, i have alot of video content in it, everything works perfect on my retina ipad, but when i open it on ipad 2 an error appears on the pages with video content?

    its in german:
    der Vorgang könnte nicht abgeschlossen werden.
    something like the process coundnt be completed

  • Help Please! -- issue with Mad Catz controller

    Can anyone help me out here? I have a Mad Catz Wireless PC Con and I'm having trouble getting it to work. After plugging it into a USB port, when I go to the System Profiler and go to the USB section, the PC Con is listed as hooked up to the USB port like it should be, so I know the computer is reading it properly, but I can't get it to work. When I open the apps I want to use it with, the buttons don't do anything. The obvious reason for this would be that the PC Con isn't compatible with those applications, but that's not the issue here because I have an application (USB Overdrive) that allows joysticks (or controllers or whatever) to be set up to work with any application, and this always worked for me perfectly when I had Tiger. With Tiger I used to use the PC Con with the emulator applications all the time, but now that I've upgraded to Leopard, nothing happens when I hit the buttons. There were no decent instructions with the PC Con. Is there anything I need to to do install the controller first before I can use it or something like that? Does anyone have any ideas for me? Any help is greatly appreciated. Thanks alot.

    In your Preferences menu, Type section, what Text Engine Option have you chosen?
    -Noel

  • Im going mad with duplicate photos! help!

    i was always aware i had duplicate photos... today i deleted my photo library and rebuilt it with backups i had from iphoto itself! but then i go to spotlight.. write a name of a photo and i see two of each photo.. i click reveal in finder.. and one is in the date folder ex "19" and one is in the original folder!!! "Originals"! What does this mean??
    I love apple, everything apple.. but the way iphoto saves the photos in the library i just hate it!! GRRRR!
    Help plz... should i delete some? Only God knows how many duplicates i must have

    Clive
    iPhoto uses Version Control - the ability to revert to the Original file. SO if you modify your pic the modification is made to a copy and your original is left untouched. This way you can use the 'Revert To Original' command.
    If you don't want this facility, then, frankly, don't use iPhoto. It's hardwired into the application and can't be turned off.
    Regards
    TD

  • I need help.somethings going on with my itunes purchases?can someone please please help me?

    these past couple of days my itunes library is going crazy..all the music in my library are bought from there store..when i play Adele 'rolling in the deep' song Ke$ha's 'blow' song plays instead..when i play Leona Lewis 'Bleeding love' Mariah Carey's 'we belong together' plays instead & so on..when i delete them and re-download them its still the same..most of my songs are like this..the Jeniifer's body movie i bought from the itunes store has justin bieber's 'believe' artwork on it.does anyone know whats going on?when i call apple they don't know anything..there no help..this is going completely crazy to the point were im not gonna use itunes anymore..does anyone know how to fix this?

    It's in recovery mode. Plug it into your computer and restore it using iTunes.

  • Installation trouble please help im going mad

    right hello
    iv got an imac 10.2.8
    ((by the way i am not all that bright with macs))
    iv always had windows.
    and iv recently got the tiger version
    and im trying to update
    i have enough space and all
    but when it gets the the actual installing part it just says error occurred during installation.
    is driving me crazy
    I NEED TO UPDATE MY MAC so i can do my college work.
    thanks.
    Rhian
    x

    Tell us which iMac you have. You may need a firmware update.
    http://docs.info.apple.com/article.html?artnum=88010

  • Help please.  Trouble with a table

    Hi All.  Hope you can help.  Looked through the Q & A but it's all about CS4 so no good to me as I have CS3.  I am new to DW and trying to start my site.  I inserted a table with 1 x row and 2 x columns.  I first made the left column 160 px wide, and the rest for the main body.  Inserted a graphic at the top of the left column to head the menu.  Then I tried to insert another graphic into the body (right column)  I could not place this graphic at the top because the cursor would only go half way down the image on the left.  I tried doing various things and one image would go up and the other down or vice versa.  It's driving me nuts :-))  Does anyone have any idea what I am doing wrong please?
    Also, does anyone know of a site where I can get good tutorials in CS3 please/, without it costing me a small fortune.  TIA
    Regards
    Jon

    With your cursor in the table cell, set the verical alignment to Top in the properties panel.  That will ensure that any images or text you place within that cell stays at the top no matter how the cell or table expands.
    And not to be disrespectul in any way, this is a pretty basic function of table layouts.  You are sure to run into many more troubles along the way unless you study up on tables and how they work in DW.  So instead, I agree with the above response - you're going into a learning curve anyway, so you may as well apply it to CSS - I think things will even go quicker for you that way and you'll be building sites using the current and better technology.

  • Help Please!  working with avi files.

    I need to import an avi file (320 x 240) into FCP 3. The clip will be composited with a title that was originally in eps format which I have converted into a PSD file.
    When I put them on my sequence it both need rendering. I have adjusted my sequence settings to match the files but still rendering is necessary.
    The avi properties are:
    320x240
    30 fps
    6.8 MB / S
    Alpha : none/ignore
    Composite: normal
    pixel aspect: square
    Compressor field is blank
    Sequence Settings are:
    320x240 Multimedia (large)
    30 fps
    Data Rate field is blank
    Alpha field is blank
    Composite: normal
    pixel aspect: square
    Compressor: DV/DVC Pro - NT
    The PSD file also needs rendering to view. This is when they are just individually side by side on the timeline, not even stacked above one another. How can I get both the avi file and PSD file to play without rendering?
    My deadline for this intro clip is tomorrow and I need help quickly!

    I was going to wait till you bumped your post again.
    Don't do that.
    Please.
    There are dozens of AVI codecs that have been obsolete for ten years and even more that never made it to the Macintosh. QT may or may not be able to open them. If you can play them, export from QTP to conventional DV and bring the newly created copy of the movie into a conventional DV sequence in FCP. There are other AVI conversion utilities.
    bogiesan

  • Help please? problems with screen resolution & external monitor

    had a look around this forum and seen many questions about screen resolution when connecting to an external monitor but unfortunately, non that help me answer my problem.
    got a brand new macbook a few months ago and today bought a HP v220 22" external monitor.
    I am new to the idea of external monitors and am unsure what i am doing wrong settings-wise. it seems that no matter what resolution i set either my macbook display, or the external monitor display to. the external monitor is still not sharp.
    Im not sure how to explain what i need but basically i need it to be so that things appear on the external the same size as they do on my macbook screen, so that i will have more space to work in on my external monitor (i am a graphics student) but at the moment what appears on the monitor is lieterally just a magnified version of my macbook screen, hence it lacks clarity.
    the highest resolution offered in the menu for my macbook screen is 1280x800 and my external is recommended to be set at 1680x1050.
    what settings should i have to get the resolution right?
    i will be so so grateful if you can help. i think ive tried every single display setting but to no avail. so please help me!

    The 13.3" screen on the MacBook running at 1280 x 800 will have a ppi (pixels per inch) of around 113. A 22" monitor running 1680 x 1050 will have a ppi of around 90. So it is natural that it will look magnified compared with the MacBook. The two displays have different a pixel pitch.
    Since there are no monitors with ~113 ppi out there in the market, what you want to do with having the same size and sharpness between the MB and a monitor will not be possible.
    If you ran the MB's screen at 1024 x 640 (not even sure if that is an available choice), then the two screens would match in terms of "magnification." But the MB isn't going to look very sharp running such a low, non-native format.

  • HELP PLEASE - Still struggling with 3-5 minute boot times - Neo4 SLI

    Okay, I THOUGHT my computer was "locking up" after the "DMI Pool" meesage on about every other boot.  The fact is, it may have never actually locked up, I just thought it did whe it just needed more time.  I've read about possibly trying to roll back my NVidia ATA drivers, but Windows says there are no drivers to roll back to.  Could someone tell me where to get alternative drivers?
    Better yet, could someone tell me what I'm doing wrong to get this LOOOOOOONNNNNGGGG Boot time?
    By the way, I have tried going with just one SATA, I've tried two, I've tried a PATA drive alone, and I've tried all three.  No help
    (I'm a newbie here, but I THINK my system specs will show up below in my signature.  If not, I'll follow up in a reply messagewith the specs.)
    PLEASE HELP!
    Thanks for reading - thanks even more if you can help.   

    1) Quote
    Lite-On CDRW
    seems common. Check that your optical drives are correctly jumpered (master/Slave). The Nvidia ATA drivers require this & don't like CS(cable select) which some drives are set to. if in doubt check the manufacturers site for the jumper settings.
    2) if there is room have the optical drives on seperate ide channels. again if moving them update jumper positions if necessary.
    3) If all else fails change Ata drivers to the Nicrosoft ones.
    In device manager :-
    Click update driver on the Nvidia Pata driver tab in properties.
    Choose install from a specific location
    Select dont choose , i will choose the driver
    Then select standard dual channel pci controller which is the XP 1
    luck

  • Going mad with my Audigy2zs+Inspire 5700

    ?Hello,
    after going through all the available manuals/support websites/board topics, etc. I finally decided to create an account and post my question, as I am reaching dangerous levels of exasperation. One may assume that two digital products from one brand should be entirely compatible and should work together easily. Sadly, this is not the case with these two.
    The thing is, that I have tried multiple solutions to get all my speakers to produce sound of decent quality. Currently I have connected the Inspire set with Audigy using two jack cables and one digital-coaxial cable. This is the best I've achieved yet, i.e. I get sound from all the speakers apart from the center one.
    Is there any chance I can get it to work properly WITHOUT buying the mysterious 9-pin mini-din cable, which is by no means available to buy anywhere in my country (Poland)?, nor in the UK (where I study) or anywhere else I've tried.
    Any help would be appreciated. Thanks.

    Please try the following instructions to test your Inspire 5700, this should tell you if the speakers system is working properly.
    1. Disconnect the audio cable connected to the Front analog input on the back of the decoder.
    2. Connect an audio device like an mp3 player to the Front analog input, you will need a 3.5mm to 3.5mm cable for this.
    3. Select CMSS movie or CMSS music on the decoder and play a music track on the mp3 player.
    You should get sound from your center speakers. If you are not getting sound, you probably need to check the connections.

  • BT box wiring! (Help please , bank hol with no int...

    Hi, wonder if anyone can help ...
    anyone able to advise what the wiring sequence should be on my BT open reach box?
    It looks like there is a blue (A) and white blue (B) cables connected to the internal A/B connectors, but where do these corresponding cables then connect into? There appears to be two options - either they connect to the A/B connectors on the plate that fits onto the main box or they connect up to the 2 / 3 / 5 connectors on the rear of the faceplate - anyone got any ideas?
    Solved!
    Go to Solution.

    the lay across the terminal and then 'punched' in with an IDC tool  often they are plastic 
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Help please! Issues with Superdrive.

    I was ahving huge issues with my MBA these past days. Now I was able to boot with the OS X dvd and reinstall the OS. the installation went well, but now I have an eject symbol in the upper right corner of the system bar and it seems my USB port is either fried or locked. I can not use any other USB devices (wanted to hook up to my external HD to backup all my stuff and then zero out my MBA and clean install). its strange. I can restart the MBA pressing C and then the Superdrive runs. Guess this speaks against the USB port being fried.
    Would appreciate any help given soon!!

    Sorry if this is too basic and you have tried it but here goes:
    to eject the superdrive select the icon for it on the desk top (with the s-drive connected) then press and hold down the eject button on the keyboard upper most right on keyboard.
    You may even need to have the disc in the drive but I doubt that.
    Or go to iTunes or Finder, select the drive and eject from there.

  • HT201263 Help please! Problems with iPhone 4 after iOS 6 upgrade

    Tried to upgrade iPhone. Got a message saying settings were lost, connect to iTunes. I did this and it said I had to restore. I did this and it said unable to restore due to unknown reason. Now phone keeps trying to upgrade and then restarts. iTunes doesn't recognise my phone.
    I have tried all troubleshooting tips and nine work!
    Please help!!

    same here..it doesnt work for me too!!
    exactly same issue. Apple got something wrong with iOS 6

  • Help please ~ sound problems with menus in iDVD

    I launch iDVD from within iMovie. Then I start to personalise the menus.
    But the menu screens although showing the chapters only give a loop duration of between 00:00 and 13:30 seconds.
    Every time whenever I import QuickTime dv. files (made in iDVD 5 to avoid the dreaded rise in volume at the end) the sound in iDVD is grotesquely distorted.
    Each of the QuickTime dv. movies last 10 seconds.
    I don't know what I'm doing wrong! Please help!!

    Thanks John Beatty of Maryland for responding. But I think I'll need to post my question again in hopes that someone else will recognise my difficulty.
    I was hoping for a solution.
    The distortion in audio occurs during the process of DESIGNING my DVD ~ I don't get as far as previewing.
    It's only occurring in one screen (or menu). Although my QuickTime dv. file lasts only 10 seconds (in this case) and should therefore fit within a 13 and a half second limit, it shouldn't be offering me such a short time frame ~ normally it's quite a bit more ~ 51 seconds, is it? ~ and you move the slider back to the time you require for the dv. movie to loop.
    But thanks anyway, John. Someone else might recognise my difficulty.

Maybe you are looking for

  • Different Apple IDs for iCloud on 2 iOS5 devices

    I have two Apple IDs. When setting up iCloud on myiPad I made the mistake of using a different Apple ID from the one I used on my iPhone, and there doesn't seem to be any way of reversing this so that they both access iCloud with the same Apple ID. A

  • What are differences between nokia N95 8gb new upd...

    what are differences between nokia N95 8gb new update V20 and previous update V15 and what are the bugs in new update V20??

  • Slow running spatial query

    I am hoping someone can help. I am writing alot of spatial queries but I am having a hard time figuring out what is wrong with this one and maybe someone can give me some advise. Here is my query select count(inc) from public_crimeshapes.aggassault20

  • Restrict multiple Proforma invoice from order

    Hello All, Our customer wants to restrict multiple proforma invoice from sales order.I have written a logic in copy requirement routine.Its working when there is already created invoice from order .But if i try to create invoice first time from order

  • Batch renaming with droplets

    I'm trying to create a Photoshop droplet that will: (1) resize a set of images (2) append a suffix to their document names and save them as a .jpg in a specific folder (3) repeat actions (1) and (2) so that I end up with several different-sized copie