How to get the colour of a line depending on the attribute of first charact

Hi
I am using DefaultStyledDocument in JTextPane.the function is depending on the frirst character of the line the whole line should be of one colour.for example if i tye the first character as '\' the whole line following this character must be green .Can anyone suggest me how to do it

Hi,
Simple example below:
Suppose you have this method in AppmoduleImpl:
public void testHello( ) {
return "Hello";
1.After you expose this to clientInterface,drop this method on the jspx page as ADF Parameter
form
2.Drop the return String as outputText
3.Run the page,click on the commandButton & the outputText returns 'Hello'
Regards,
Shantala

Similar Messages

  • How to get columns of type to line up across the bottom of the page

    I want to improve a newsletter I design. Right now all the leading is the same throughout. Body copy, caption & Heads. I want to add space after the paragraphs. I want the captions to have less leading than the body copy. That's doable right? Withe Baseline Grid. But how can I get the columns to line up at the bottom of the page if each one is an unpredictably different height? Maybe this is a design grid problem not a typographic one? Any suggestions?

    If you use a baseline grid and space before/after your spaces must by necessity equal the leading (using the align to grid option will force them to the grid, regardless of the chosen size). The grid should match the leading of your body copy.
    If you have headings that you want space before and after, don't align them to the grid, but make sure that the total of the space before, after, and leading for the style add up to a multiple of the body text leading. That will work smoothly everywhere except at the top of a column, where the space before is ignored, and will be added to the space below by virtue of the align to grid on the body copy.
    If instead of having all the copy lign to the grid you just want the top and bottom lines flush, and you want the leading within the paragraphs constant, but a variable space between paragraphs, set the text frame to vertically justified, then set the maximum spacing between paragraphs to a ridiculously large number and all of the extra space required to fill the column will be split between the paragraphs.
    Peter.

  • How to get a coloured bar at the edge of a video

    Hi,
    I have a very funny few minutes of video of a family event that I am using for the closing moments of home movie. Unfortunately, my idiot cousin is in the background "flicking the bird to the camera" the entire time. Fortunately, she is near the edge of the screen so I have an idea how to "remove" her but I do not know how to do it.
    My idea is to to put a black (or any colour, really) bar across the edge of the screen and I can have the credits appear there.
    However, I do not know how to get a coloured bar to appear over part of a video.
    Can anybody help?
    Regards

    NeddySeagoon wrote:
    .. My idea is to to put a black (or any colour, really) bar across the edge of the screen and I can have the credits appear there.
    Can anybody help?
    why not cropping the video.. ?
    • click on clip
    • click on crop-tool
    • crop/Zoom-in .. => cousin gone, away, digital nirvana ..

  • PS CS6 - How do I get colour picker to show the colour difference between new & current in the colour preview box?

    In previous versions, I would click the on the colour selection boxes (tool bar) and the colour difference would show in the Colour Picker box. The selected colour (new or current) would show. The target circle would physically move around.  Now all the colour number change, but the colour target doesn't move.  I used to colour correct items by checking how close using the colour picker and rapidly switching back & forth.  Now I can't do that. Help!

    In a nutshell, you have to simplify the frame layer and erase the interior.
    Here are the steps:
    Create your background.
    Add a new layer:
    Drag the frame you want to use onto the editing surface.  The frame will come in on its own layer:
    Simplify that frame layer:
    Choose the Magic Wand Tool and give it these settings:
    Click on the interior gray area of the frame with the Magic Wand to select it, and hit your Delete key:
    Switch to the Eraser Tool and erase the stuff that's left in the middle:
    Select the empty layer (Layer 1 in this example) and use File...Place to place your image on it.  The layer name will change to the name of the image.  Adjust the size and placement of the image.  Your layers will now look like this:
    With the frame layer selected, add a Hue/Saturation adjustment layer, making sure to "clip" it to the frame layer.  Adjust the sliders to suit:
    The final result:
    Ken
    P.S.,  Nothing says "Christmas" like laundry and red leopard fur! 

  • How can get a Graphics to draw line on screen?

    How can get a Graphics to draw line on screen?
    Now, I can get a Graphics to draw line based on component. For example JPanel, but I want to get a Graphics to draw line on screen.

    By drawing on the screen, I assume you mean drawing outside the bounds of a top-level window like
    JFrame or JDialog. You can't do that. At least, without going native and even then that's a dodgey thing
    for any platform to let you do. One thing you can do is simulate it with a robot's screen capture:
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import javax.swing.*;
    public class X {
        public static void main(String[] args) throws Exception {
            Rectangle bounds = GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds();
            BufferedImage image = new Robot().createScreenCapture(bounds);
            Graphics2D g2 = image.createGraphics();
            g2.setStroke(new BasicStroke(20));
            g2.setPaint(Color.RED);
            g2.drawLine(0, 0, bounds.width, bounds.height);
            g2.drawLine(bounds.width, 0, 0, bounds.height);
            g2.dispose();
            JLabel label = new JLabel(new ImageIcon(image));
            label.addMouseListener(new MouseAdapter(){
                public void mousePressed(MouseEvent evt) {
                    System.exit(0);
            JFrame f = new JFrame();
            f.setUndecorated(true);
            f.getContentPane().add(label);
            f.setBounds(bounds);
            f.setVisible(true);
    }

  • How to get column names for a specific view in the scheme?

    how to get column names for a specific view in the scheme?
    TIA
    Don't have DD on the wall anymore....

    or this?
    SQL> select text from ALL_VIEWS
      2  where VIEW_NAME
      3  ='EMP_VIEW';
    TEXT
    SELECT empno,ename FROM EMP
    WHERE empno=10

  • I just got the iphone 4s and i cant figure out how to get siri to work it seems to be the old voice command. HELP!

    i just got the iphone 4s and i cant figure out how to get siri to work it seems to be the old voice command. HELP!

    Did you enable Siri in settings?
    Settings > General > Siri > ON
    If Siri is off, all you get when pressing the home button for 1 second is the old Voice Control.

  • How to get last Build date of a dll in the real time target

    Info On My Project    
       I am working on LabWindows CVI 12.0 for development . This project is a real time application for hardware, which is having Phar Lap ETS as RTOS...  
    I am facing some problems while checking Build date of my Application file( .dll)
    I have tried to use GetFileDate API. But it is not supporting for realtime Target..
    So i have tried __DATE__ macro.. That also having some problems..
    How to get last Build date of a dll from the real time target  ??
    Please Help to solve this....
    Thanks
    Vaishakh A  K

    Please reply if any one have suggestion...

  • I have lost sound on my iPad in apps unless I use headphones ,does anyone know how to get sound back without them .I have used the mute volume on the bar at bottom of screen and the slider volume control there only shows when headphones are plugged in !

    I have lost sound on my iPad in apps unless I use headphones ,does anyone know how to get sound back without them .I have used the mute volume on the bar at bottom of screen and the slider volume control there only shows when headphones are plugged in !
    I also tried resetting settings all to no avail ...I looked up some advice and watched utube video advice on how to fix without success..
    The volume control button on side does not work ,I got the iPad last August and wonder if it is a fault that means I must return it for replacement from where it was purchased ?

    The Retrospect you used way back when is no longer around. The company was sold and that company produced a new version of Retrospect - Retrospect 8.x
    So, as you've been told, you would have to be running a Tiger system with an old version of Retrospect software (5.x or 6.x - you would need to know) assuming you can find the software.
    As best I can remember you cannot extract files from a Retrospect backup except using the software since Retrospect did not normally make a file by file backup rather it created an archive of the files in the backup. I'm assuming that the EMC/Retrospect people have told you that old Retrospect backups are not accessible by Retrospect 8.x?

  • How to get Text from (.txt) file to display in the JTextArea ?

    How to get Text from (.txt) file to display in the JTextArea ?
    is there any code please tell me i am begginer and trying to get data from a text file to display in the JTextArea /... please help...

    public static void readText() {
      try {
        File testFile = new File(WorkingDirectory + "ctrlFile.txt");
        if (testFile.exists()){
          BufferedReader br = new BufferedReader(new FileReader("ctrlFile.txt"));
          String s = br.readLine();
          while (s != null)  {
            System.out.println(s);
            s = br.readLine();
          br.close();
      catch (IOException ex){ex.printStackTrace();}
    }rykk

  • Does anyone know how to get a preflight file signed by apple for the 21 mac

    does anyone know how to get a preflight file signed by apple for the 21 mac

    im trying to get a hold of them to see if they can deauthorize a computer. I am unable to do it because i can't get the internet to hook up. And i got a new laptop that i get the internet on but i can't authorize it unless i deauthorize the other one. i've called apple 3 times and theyve not been very helpful saying i need to get  hold of itunes.

  • HT4962 how i get ios 5 on my ipod 3g becuase the version is too old 4.2.1

    how i get ios 5 on my ipod 3g becuase the version is too old 4.2.1

    Very likely since yu really have a 2G iPod. Those only go to 4.2.1. If your is an 8 or 16 GB one it is a 2G since Apple only made 32 and 64 GB 3G iPods. A 32 GB one can be either. See:
    http://support.apple.com/kb/HT1353#iPod_touch_late2009
    The iPod touch (3rd generation) can be distinguished from iPod touch (2nd generation) by looking at the back of the device. In the text below the engraving, look for the model number. iPod touch (2nd generation) is model A1288, and iPod touch (3rd generation) is model A1318.

  • FCP X is loading and loading with the colour wheel revolving for ever for the past few days.

    FCP X is loading and loading with the colour wheel revolving for ever, for the past few days.
    FCP X was working fine in my new 15" Mac book pro (Retina display with Mountain Lion 10.8.2) for the past one month. Now a days, each time I try to open the FCP X, the same non-stop colour wheel is rotating, trying to restore one of my project. It continues even for hours together.  Finally I am force quiting the application.
    How do I come out of it ? Will I be able to recover my project.  I didn't do any backup in particular.
    Is backing up on the regular basis is required?
    I tried the following guidance by Apple, 
    In the Finder, hold down the Option key and choose Library from the Go menu.
    In the Library folder that opens, go to Application Support/Final Cut Pro.
    Drag the Layouts folder from the Final Cut Pro folder to the Trash.
    Still my problem is continued
    Help me

    This is my pet checklist for questions regarding FCP X performance - you may have already addressed some of the items but it's worth checking.
    Make sure you're using the latest version of the application - FCP X 10.0.5 runs very well on my 2009 MacPro 2 x 2.26 GHz Quad-Core Intel Xeon with 16 GB RAM and ATI Radeon HD 5870 1024 MB. I run it with Lion 10.7.5.
    First, check that you have at least 20% free space on your system drive.
    For smooth playback without dropping frames, make sure 'Better Performance' is selected in the FCP X Preferences - Playback Tab.
    If you have not already done so, move your Projects and Events to a fast (Firewire 800 or faster) external HD. Make sure the drive's formatted OS Extended (journalling's not required for video). You should always keep at least 20% free space on the Hard Drives that your Media, Projects and Events are on.
    Check the spec of your Mac against the system requirements:
    http://www.apple.com/finalcutpro/specs/
    Check the spec of your graphics card. If it's listed here, it's not suitable:
    http://support.apple.com/kb/HT4664
    If you are getting crashes, there is some conflict on the OS. Create a new (admin) user account on your system and use FCP X from there - if it runs a lot better, there's a conflict and a clean install of the OS would be recommended.
    Keep projects to 20 mins or less. If you have a long project, work on 20 min sections then paste these into a final project for export.
    If your playback in FCP X is not good, I strongly recommend you use ProRes 422 Proxy - it edits and plays back like silk because the files are small but lightly compressed (not much packing and unpacking to do) - but remember to select 'Original or Optimised Media' (FCP X Preferences > Playback) just before you export your movie, otherwise it will be exported at low resolution.
    The downside of 'Proxy' is that it looks awful. DON'T use Proxy when you're assessing things like video quality - especially focus.
    If you have plenty of processor power, for the ultimate editing experience, create Optimised Media - most camera native files are highly compressed and need a great deal of processor power to play back - particularly if you add titles, filters or effects. ProRes 422 takes up much more hard drive space but is very lightly compressed. It edits and plays back superbly.
    Personally, I work with XDCAM EX and h.264 from a Canon DSLR. Both of these run fine with my system, but I do transcode multicam clips.
    Hide Audio Waveforms at all times when you don't need them (both in Browser and Storyline / Timeline). They take up a lot of processor power. (Use the switch icon at the bottom-right of your timeline to select a format without waveforms if you don't need them at the moment, then switch back when you do).
    Create folders in the Project and Events libraries and put any projects you are not working on currently, in those folders. This will help a lot. There's a great application for this, called Event Manager X - for the tiny cost it's an invaluable application.
    http://assistedediting.intelligentassistance.com/EventManagerX/
    Unless you cannot edit and playback without it, turn off Background Rendering in Preferences (under Playback) - this will help general performance and you can always render when you need to by selecting the clip (or clips) and pressing Ctrl+R.
    The biggest single improvement I saw in performance was when I upgraded the RAM from 8 GB to 16.
    If none of this helps, you might have incompatible or corrupt media or project files. Move ALL your Events and Projects to temporary folders so that FCP X doesn't find them on launch. If it launches OK, re-introduce the Events and Projects one at a time, re-launching each time, so that you can track down the corrupt or incompatible files.
    Andy

  • How can I refer to the PhotoShop Object library dynamically depend on the release of PhotoShop?

    Recently, I make a program, now I face a big program:
    I make the program by visual basic and photoshop script , but my client have different release of Photoshop, for example : photoshop 7.0 cs and cs2. I know every release of PhotoShop have ist own Object library, but in visual basic 6.0, I can only refer to one PhotoShop Object library. for example: if I refer to Photoshop 8.0 Object library, if my clients release of Photoshop is 7.0. there will be a error message : Run-time error '429 ( cant create object) Run-time error '430(Class does not support Automation or does not support expected interface), How can I refer to the PhotoShop Object library dynamically depend on the release of PhotoShop?
    my email is : [email protected] .
    any suggestion?

    Please read, and reply back here with information https://forums.adobe.com/thread/1499014
    -and try some steps such as changing browsers and turning off your firewall for downloads

  • [svn:fx-3.x] 7852: Changing the fix for SDK-19811 as the E4X escaping behavior is dependent on the target player  (i.e.

    Revision: 7852
    Author:   [email protected]
    Date:     2009-06-15 13:34:23 -0700 (Mon, 15 Jun 2009)
    Log Message:
    Changing the fix for SDK-19811 as the E4X escaping behavior is dependent on the target player (i.e. swfVersion) rather than the version of the runtime.
    QE: Yes, please test --target-player=9 and 10, and AIR
    Doc: No
    Checkintest: Pass
    Reviewer: Svetlin
    Bugs: SDK-19811 - SOAPEncoder double-encodes string values in AS proxy code generated from .NET webservices
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-19811
        http://bugs.adobe.com/jira/browse/SDK-19811
    Modified Paths:
        flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/managers/SystemManager.as
        flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/messaging/config/LoaderConfig. as
        flex/sdk/branches/3.x/frameworks/projects/rpc/src/mx/rpc/xml/XMLEncoder.as

    I checked my java version on my mac, and its 1.3.1.
    So I thought that I would update my pc's java to 1.3.1.
    After doing that, and verifying that it was updated,
    I still get the s ame exceptions when I use backspace
    on a new font!!! I just don't get it.
    Maybe it doesn't have to do with the java version, maybe its a computer
    setting or something. I'd switch to the mac and program
    it on that, however that seems ridiculous that it
    would refuse to work on my pc. Any suggestions?
    im running win98 SE on the pc, if that helps anyone.

Maybe you are looking for

  • How do i activate my iPhone when it says there is no sim card installed in the iPhone you are trying to activate?

    I just got a new iphone 4 because my old one did work, when i tried activating the new one it give me problems and wont let me do anything on the phone. When i plug it into itunes i get a message there is no sim card installed in this device. Is ther

  • HP 10

    My query are : HP 10 tablet can be upgraded from4.1 jelly bean to latest android ? And when I removing sims and again inserting , it is not being detecting without reset factory setting .its leads to remove all the appses . And same problem fix in me

  • User context and roll area

    hello plz help me what is roll area and user context????? reply thaknx aafaq husain

  • Project freezes and won't play on CS3, works on preview

    I am using a magic disk in order not to ruin many DVD's, creating image iso files and after mounting them from the virtual DVD they won't play. Simple project 1 long asset, transcoded automatically, 3 menues, psd's made by photoshop cs2. all the sett

  • TAX INN Configuration

    HI Experts, I need help and support from you all This is my First implementation project in CIN and my client have asked me to implement TAXINN. Could you please provide me configuration document on TaxINN with full detail. <removed by moderator.  DO