Another quick one - possible to create Style without Foreground/Background?

Hi,
I'm using Styles to change backgrounds and foregrounds in a JTextPane, and I want it to be possible to add a style to a section of text without affecting other attributes of that text, e.g., if a text colour is red and that style is called "Red", I want to be able to change the background to yellow without having to specify a foreground colour in the style called "YellowBackground", so that it can be used on black text or red text and it won't affect the text colour but will make the bakground yellow. Similarly for changing text colour, etc. I'm not sure if I've made myself clear enough, but does anyone know how to only affect the attributes you explicitly change in a Style?
Thanks
Aaron

How does the example in the tutorial work?
You can select some text and then click or the "Bold" or "Italic" or "Foreground" or "Background" button. The attribute is added to what already exists, it doesn't replace all the attributes. So check out the source code to see how those Actions work. I believe they just add a new attribute to that piece of text.

Similar Messages

  • Is it possible to create l3vpn without enabling mpls in the core and PE routers .

    Hi 
    i have below setup , in this PE1,P,PE2 routers do not have mpls support , it have only MGRE and GRE tunnel support ,
    is it possible to create l3vpn without mpls here .
                              bgp session between PE1 and PE2, 
    CE1---------------PE1-----------------P---------------PE2------------CE2 .
    PE1,P,PE2 do not have mpls support .
    Thanks
    Duraipandi

    hi durai,
    you can use the vrf-lite model but this is complex to manage in larger networks.
    for example:
    CE1 ---PE----core(x)---P------PE---CE1
    CE2  --/                                    \----CE2
    in this case, without mpls, I need to create on the core(x) link 2 vrf's with 2 vlans to go to "P".
    and the same on the other PE and link.
    Now if you think that there are more P's with backup paths or more CE's that linkage exponentially increases to define those vlans and in all your P routers is that awareness of every CE route!
    MPLS just simplifies this; single core link,by just using labels. Your P routers only see PE next hops and are opaque to the number of vrf's you carry/service. Adding another P or PE device integrates into the routing naturally and MP BGP takes care of the PE advertisement. So expanding and rerouting are more natural and graceful here too.
    So while technically MPLS can be omitted, it is just not a smart thing to do from a design perspective in l3vpn.
    cheers!
    xander

  • IS IT POSSIBLE TO CREATE TRANSACTION WITHOUT USING ACTION BOX?

    HI,
    We are trying to implement CIC NON-TELEPHONY.
    Our requirment is simple we need to create complaint from CIC.
    Is it possible to create a transaction without calling it from action box using default workspaces.
    I mean i will not configure action box at all all i do is create a default work space for complaint which appears when the CIC screen is called up.
    Is it really possible to create this way or is it mandatory that the transaction should be called from action box only to create it?
    Can some one please advice on this we just need to create a couple of transactions from CIC 'cause we are planning to set up a small call centre.
    Though i am not sure of the way it needs to be created i tried to create it with default workspaces ( i mean i did not call it from the action box) but the problem is while i create the transaction in this way i have a problem with partner determination and organization determination they are wrongly determined.
    So, i need to confirm is this way of creating acceptable.
    Awaiting suggestions
    Regards,
    SAM

    Hi Sam,
    As far as I know, the way that you use the Default workspace(Business Activity) with the transaction type as Complaint should be fine. There is no hard and fast rule to only create the Complaints in CIC via Action Box.
    Pertain to the Partner / Org. Determination, when you launch CIC, then as per the configuration, the default workspace(Business Activity) of the transaction type Complaint will be used and at this very begining itself the partner determination(associated with the transaction type) will be executed. And this is what you can see in the workspace as well.
    When you confirm a BP, then as per the customizing maintained in the transaction CRMC_CIC_SEARCH_RULE("Profiles for contact search"), the BP1 and BP2 partner functions will be pushed into the Activity you made as default for the interaction.
    This is how the CIC - with Business Activities & Partner Functions will work. I guess, apart from the way that you had made the default workspace of the transaction type as Complaint, you can also have a look at the above mentioned transaction for Contact searches and according to your need you can change the partner functions.
    Hope this information helps !
    With Best Regards,
    Vinod

  • Can it be possible to create invoice without billing plan date?

    Hi Gurus,
    I have made settings for billing plan in contracts. But, client wants billing plan at contract level only for the sake of reporting. Client doesnt want invoice to be created according to these billing plan.
    Now, consider this scenario,
    I have created contract A with billing plan values in it.
    I have created sales order B with reference to contract A. There are no billing plan values in sales order B.
    There is no delivery and PGI.
    Now, when I try to create invoice with reference to sales order B, system doesnt allow me to save the same and says "No billing plan date found".
    Will it be possible to create invoice irrespective of the billing plan in contract?
    Please guide.

    Hi,
    Then in that case i would advise not to use billing plan for your contract document type.
    If you intend to create a sales order in reference to your contract document which has billing plan type attached, then in that case you need to maintain billing plan for your sales order document too.
    Reward if helpful.
    Regards
    Ravi

  • Is it possible to create APEX user in background?

    Hi experts,
    I have a page to create new user with the following items in an application:
    P1_USER_ID
    P1_EMAIL
    P1_PASSWORD
    It is using Automatic Row Processing (DML) to insert these to PEOPLE table.
    When submit it above in the same time, I would like to create APEX's user using the values which are specified on it above.
    I think that I can use APEX_UTIL.CREATE_USER, but the user who log into the current application with APEX authentication does not have admin privilege. I guess that the operation might fail. Correct?
    Or, is it possible to create APEX user without admin privs if it is background?
    Thanks in advance,
    Rui

    Hello,
    >> but the user who log into the current application with APEX authentication does not have admin privilege. I guess that the operation might fail. Correct?
    Yes, correct. To execute APEX_UTIL.CREATE_USER, the current user must have administrative privileges - http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/api.htm#BABCFBGG .
    >> Or, is it possible to create APEX user without admin privs if it is background?
    I don’t see the relevance of a background process, in this context. The admin privileges demand is there to prevent un-authorized users to open new users, without any control. It seems to me like a recipe for chaos to allow every user to define new users in the application.
    Regards,
    Arie.

  • Possibility of creating Settlement Rule in Background?

    Hi Gurus,
               When I am doing TECO of the Maintenance Order everytime I have to create Settlement Rule.
               My settlement receiver Category (Cost Center) and Cost Center are fixed for  Order Type.
               Is it possible to create Settlement rule in the background while doing TECO of the Order.
               Please suggest if any User Exit is there.
    With best regards,
    Narendra

    Narendra,
    We are looking at exactly the same issue.
    As you are aware, you can only default one cost centre via the equip/floc...
    The only way we can see to have a pre-defined cost centre by order type/plant is to use user-exit [IWO10027|http://pjatkin.users.btopenworld.com/documents/PMCSUserExits.pdf] (default settlement rules).
    PeteA

  • Is it possible to create patterns without the swatch bound box.  the shape is hexagon and I want to stack brick style directly on top of each other.

    .

    While it's true that AI only works with square tiles internally, the pattern editing mode in CS6 still would allow you to create hexagon patterns.
    Check out the manual on how to use the pattern editing mode.

  • Real Quick One - Can you get Compressor without buying FCS??

    Right, just a quick question - i am using FC Express HD and compressor would be a nice extra to have.
    Anyway of getting hold of it without purchasing Final Cut Studio??
    Thanks
    Jon

    Well, on the same general topic.. I have FC Studio, which includes Compressor, but I'd like to buy at least one additional Compressor so I could distribute processing across a couple of Macs on my network.
    Seems like a sensible thing for Apple to offer, at least for registered owners of FC Studio.
    Mac Mini/G4Powerbook/Mac Mini-Intel   Mac OS X (10.4.8)  

  • Graphic Styles - issue with creates style expanding to background when used

    I have created a background style to use as a wire frame, and having created it, every time I use it the frame expands to the back ground size?

    Thank you Peter and Amebr for your assistance. I ended up using RH Multilevel List Style, configured, and created an identical List Style in Word. I created a Single and a Multilevel (e.g., Level = bullet, Level 2 = squares); their challenge is matching RH indents with Word Indents... It's sort of a bear since RH does not have the Format Paragraph option (ref. drop-down) like Word Lists -  Numbering functionality.
    After generating my print document mu Bullet style reads "Normal (Web)"; even though the RH CSS Wizard recognized Word List Style I created (Ref. Font: Symbol, Font color: Black, Indent: Left: 0.15", Hanging: 0.25", Outline numbered + Level: 1 +, Numbering Style: Bullet + Aligned at: 0.15" + Indent at:  0.4", Priority: 100, Based on: No List.
    Question: Would anyone out there know why is when I highlight my bullet list to verify the correct Style (with the Styles pane open) and I see the "Normal (Web)" [its Style type = Paragraph and Style based on = Normal) is selected? If it came through (from Rh) as a true Multilevel List Style, I should not see anything.
    Happy Holidays!
    ~PM

  • Create Inquiry without creating customer

    Hi Experts,
    I have one requirement to create inquiry without creating customer.
    Actually the scenario is, marketing guys will get inquiries from known or unknown customers on their mail and if the material is available then they will create inquiry (va11) by only putting customer name(without creating).
    Please put some light to achieve this requirement.
    Thanks in Advance
    Pankaj

    Create a dummy customer that you will use in all of this cases and maintain the real name in one of the text fields of the inquiry... as an example, use PO number. Using VA15 on the dummy client you will have a report on all inquiries... just bring the PO number in the report.
    H.

  • Creating table without creating domain n dataelement(what type of data is)?

    is it possible to create table without creating domain n dataelement
    for what thoose tables are used for(what type of datait holds?)

    Yes it is possible to create a table without domains and data tables.
    Enter the table name and click on CREATE. On the next screen click on "Predefined types" button. This will gray out the data element column and open the columns data type, length, decimals and text columns for input. You need to specify the data type details in these columns.
    Even though it is possible to create the table in the above fashion I would suggest you create data elements and domains for all the fields.
    -Kiran
    *Please reward useful answers

  • Is it possible to create an invoive that keeps a running total in one column and in another column keep total of monies spent from a starting amount of funding?

    Is it possible to create an invoive that keeps a running total in one column and in another column keep total of monies spent from a starting amount of funding?

    Hi Sara,
    Many thanks for your reply.  We just brought Adobe Acrobat XI Pro complete
    with Adobe Forms Central, My manager asked whether I could use the forms
    part to create a summary tracking sheet for all of our contracts.
    Having looked at it I could see how to create a table that in the first
    column deleted costs from a starting fund, and in the last keeps a running
    total of all monies spent.
    I agree, Excel does seem to be much better suited to the task.  I was try
    trying to comply with her request
    Regards,

  • Is it possible to create service entry sheet without PO

    Hi,
    Is it possible to create service entry sheet without PO?
    rega

    Hi,
    It is not possible in standard SAP to create Entry Sheet without Ref. to PO.
    You can copy the Entry sheet from another one.
    PO> Entry Sheet-> Invoice.
    This the Std. Process developed by SAP to take care of Service render by Vendor to company.
    hope it helpss.
    manoj singh

  • CP5.5 - Is it possible to create a quiz summary screen with all questions reviewed on one screen?

    Hello Forum members,
    I was wondering if it is possible, rather than having a quiz review where you review the quiz questions one screen at a time, if it is possible to create a quiz summary screen, which will provide a summary of which questions were answered incorrectly/correctly (without actually giving the user the correct answers)?
    An example of what I'd like to achieve is below:
    Is this possible in CP5.5? Perhaps with Advanced Actions/variables?
    many thanks
    Loraine

    Hello Loraine,
    This is possible using Advanced Actions and variables. After every question, On Success you can set a variable to 1 and create a custom screen where you can show/hide the tick mark graphic based on the variable value set.
    For Ex:
    - For question 1, on success, set x=1
    - On the results screen, correct tick mark graphic is hidden. If x=1, then show the correct tick mark.
    Like this you can do for all the questions. Will wait for others also to comment for any quicker solution.
    Thanks,
    Vish

  • Is it possible to create a DVD in iDVD without using the themes they provide?

    Is it possible to create a DVD in iDVD without using the themes they provide?

    Hi
    No Menu DVD
    from. Mishmunken
    How to create a DVD in iDVD6 without menu (there are several options)
    1. Easy. Drop your iMovie in the auto-play box in iDVD's Map View, then set your auto-play item (your movie) to loop continuously.
    Disadvantage. The DVD plays until you hit stop on the remote
    2. Still easy. If you don't want your (auto-play) movie to loop, you can create a black theme by replacing the background of a static theme with a black background and no content in the drop-zone (text needs to be black as well).
    Disadvantage. The menu is still there and will play after the movie. You don't see it, but your disc keeps spinning in the player.
    3. Still quite easy but takes more time. Export the iMovie to DV tape, and then re-import using One-Step DVD.
    Disadvantage. One-Step DVD creation has been known to be not 100% reliable.
    4. (My preferred method) Easy enough but needs 3rd party software. Toast lets you burn your iMovie to DVD without menu - just drag the iMovie project to the Toast Window and click burn.
    Disadvantage. you'll need to spend some extra $$ for the software. In Toast, you just drop the iMovie project on the Window and click Burn.
    5. The "hard way". Post-production with myDVDedit (free-ware)
    Tools necessary. myDVDedit ( www.mydvdedit.com )
    • create a disc image of your iDVD project, then double-click to mount it.
    • Extract the VIDEO_TS and AUDIO_TS folders to a location of your choice. select the VIDEO_TS folder and hit Cmd + I to open the Inspector window
    • Set permissions to "read & write" and include all enclosed items; Ignore the warning.
    • Open the VIDEO_TS folder with myDVDedit. You'll find all items enclosed in your DVD in the left hand panel.
    • Select the menu (usually named VTS Menu) and delete it
    • Choose from the menu File > Test with DVD Player to see if your DVD behaves as planned. If it works save and close myDVDedit.
    • Before burning the folders to Video DVD, set permissions back to "read only", then create a disc image burnable with Disc Utility from a VIDEO_TS folder using Laine D. Lee's DVD Imager.
    //lonestar.utsa.edu/llee/applescript/dvdimager.html
    hope this helps!
    From LynnLU USA
    www.mediasoftmac.com/dvd-creator-articles/convert-mov-video-to-dvd-on-mac.html#1 29
    Yours Bengt W

Maybe you are looking for

  • Variable Size Item, Material Setting

    Dear All, I have a requirement, from  users, They want to use Formula as ROMS1 * ROMS2 * ROMS3 * 1160  where 1160 is Density, and out put is Mass. Material Should be issued in Nos/Pc in Shop and not in KG, I want to know how this material to be used

  • After TB 31.5.0 cannot send or receive gmail. Spinning status wheel. Server timeout.

    Updated to 31.5.0 and now cannot send or receive gmail from my desktop. Message is that the server timed out and there is a spinning status wheel. Windows 8.1. Tried reinstalling, rebooting, running TB in safe mode, turning off Win firewall, disablin

  • Safari 4.0.4 update creates 7510 new permissions problems

    Prior to installing Safari update, running the 'Repair Permissions' in Disk Utility found only one error -- the SUID modification on ARDAgent (Apple Remote Desktop Agent). Apple documents this as being a known issue, but harmless and can be safely ig

  • Why won't websites load?

    Only some websites work, but most of them don't. My other computers work fine in safari. I also reset my router. Nothing work

  • ERTYUIO keys stop working many times throughout the day

    Every couple of minutes, the "E", "R", "T", "Y", "U", "I", & "O" keys on my MacBook Pro stop working.  It is driving me nuts!  I have found a way to get them to work again, but it involves typing a bunch of random keys until those letters appear agai