Set Word Colours

Hi... again :)
When reading from a text file... I want to change certain words color.
I dived into the deep end and gave it a shot... and as usual it ending in hair pulling stuff haha. anyhow thought i'd post it and see what you lot say.
I tried setForgroundColor(Color c) but that sets the whole text.
public class IOGUI {
    public static void main(String[] args){
        IOGUI gui = new IOGUI();
    public IOGUI(){
        JFrame f = new JFrame("Test");
        JTextArea out = new JTextArea(10,30);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.getContentPane().add(out);
        f.pack();
        f.setVisible(true);
        try{
        File file = new File("c:/java/text.txt");
        FileReader fr = new FileReader(file);
        BufferedReader br = new BufferedReader(fr);
        String line;
        while((line = br.readLine()) != null){
            if(line.equals("dog")){
                //make the word i.e. blue
            out.append(line + "\n");
        }catch(Exception e){
}Thanks everyone for your help
Steve

Thanks for everyone's reply... i didnt have the time till now to sit and read through everything.
Anyhow, with all the usefull links refrences etc... i pieced something together (v.simple) but it works
public class IOGUI {
    private Style attrs[] = new Style[2];
    public static void main(String[] args){
        IOGUI gui = new IOGUI();
    public IOGUI(){
        JFrame f = new JFrame("Test");
        JTextPane out = new JTextPane();
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        DefaultStyledDocument doc = (DefaultStyledDocument) out.getStyledDocument();
        Style def = StyleContext.getDefaultStyleContext().getStyle(StyleContext.DEFAULT_STYLE);
        attrs[0] = doc.addStyle("one", def);
        attrs[1] = doc.addStyle("two", def);
        StyleConstants.setForeground(attrs[1], Color.red);
        doc.addStyle("one", attrs[0]);
        StyleConstants.setForeground(attrs[0], Color.blue);
        doc.addStyle("two", attrs[1]);
        try {
            doc.insertString(0, "This is all in Blue", attrs[0]);
            doc.insertString(doc.getLength(), "And this is red style.",     attrs[1]);
        } catch (BadLocationException e) {
                e.printStackTrace();
        f.getContentPane().add(out);
        f.pack();
        f.setVisible(true);
}How would i use that with a textarea tho? Cause i like the fact that you can simply say new JTextArea(10,30); and you kinda get the size you want.
jtextpane.size() isnt working for me.
Thanks
Steve

Similar Messages

  • Setting the colour of the search box text on a public website

    I am using the search box snippet in the header of my public website.
    The background of the header is a dark blue.  The search box background is transparent so the default colour of the text (#444) on the dark blue background is barely visible.
    The text colour appears to be set by the following entry in corev15.css:
    input[type=password],
    input[type=text],
    input[type=file],
    select,
    textarea,
    .sp-peoplepicker-topLevel,
    .sp-peoplepicker-topLevelDisabled,
    .sp-peoplepicker-autoFillContainer,
    .ms-inputBox
    border:1px solid #B0B0B0;
    background-color:#fff;
    background-color:rgba(255, 255, 255, 0.85);
    color:#FFFFFF;
    I changed the colour from #444 to #FFFFFF.
    Now I want to create a new post in the Blog.  The new post's Title and Body fields use the same entry in corev15.css to set the colour of the text.  As the background of the new post is white the text is invisible!
    Using the F12 development function in IE, setting the colour of the Search box text with an inline function works, but when I add style="color:white" to the <input> of the Search box snippet it seems to be ignored.
    What am I doing wrong?  Is there another way around the problem (I don't want to change the background colour of the header nor the background of the post page and there is no colour that will display the text well enough against both backgrounds).
    Your help would be much appreciated.
    Thanking you in anticipation.
    Roger
    rogerwithnell

    Thanks for your help, Patrick.
    Adding color: white !important; inline in the <input tag of the Search box snippet is still ignored, however.  When I look at the HTML and CSS with F12 in IE, the inline mark-up is not set.  I guess this something to do with how the Search Box
    snippet works?
    I've made some progress, though.  All the pages of the site (except the Blog NewPost page) use the corev15.css file. So I've set the colour here to white.  The css entry is:
    input[type=password],
    input[type=text],
    input[type=file],
    select,
    textarea,
    .sp-peoplepicker-topLevel,
    .sp-peoplepicker-topLevelDisabled,
    .sp-peoplepicker-autoFillContainer,
    .ms-inputBox
    border:1px solid #B0B0B0;
    background-color:#fff;
    background-color:rgba(255, 255, 255, 0.85);
    color:#FFFFFF;
    The Blog NewPost page uses \_catalog\theme\themed\CDD8DBA6/COREV15-51C31438.themedcss. I've changed the same CSS entry as follows:
    input[type=password],
    input[type=text],
    input[type=file],
    select,
    textarea,
    .sp-peoplepicker-topLevel,
    .sp-peoplepicker-topLevelDisabled,
    .sp-peoplepicker-autoFillContainer,
    .ms-inputBox
    border:1px solid #B0B0B0;
    background-color:#fff;
    background-color:rgba(255, 255, 255, 0.85);
    color:#444 !important;
    Now this page sets the colour to #444.  This means that the text in the Title and Body fields is visible but the text in the Search Box (with its dark blue background) is not.
    The Search Box on Blog NewPost is not vital but I'd like to fix it.  How can I do this?
    Roger
    rogerwithnell

  • Can I use a colour palette control to set the colour of an LED on front panel?

    Hi,
    I want to allow the user of my LabView program to be able to set the colour of an enlarged LED on the front panel using a colour palette control also on the front panel. Is this possible or can the LED only be the colour it is set to in its properties dialogue box?
    Thanks,
    Dave.

    The question is of course: "Does it really need to be a boolean LED that has a True/False and all the boolean logic???
    If you just want an LED lookalike where the color can be easily controlled programmatically I would recommend a color box indicator instead. You can even customized it to look like an LED! The attached example (LabVIEW 7.1) shows both methods, but the color box option is programmatically much less messy (no bundling, no array building, no property nodes!).
    (To make the LED color box indicator, I customized a plain color box and simply imported the graphic elements from the regular LED indicator.)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ColorBoxLED.vi ‏22 KB

  • Setting the colour

    Hi,
    I'm using the following method to set the colour for lines and shapes that I draw to the screen -
    g.setColor(Color.lightGray);
    However, if I want to set the colour to something specific such as -
    RGB - 204 204 204 or #cccccc
    Is this achievable using the setColor method?
    Thanks for any help offered (new to Java!)
    David

    Hi annie,
    Thanks for your help. However, I get the following error message when I use that -
    cannot resolve symbol
    symbol : method newColor (int,java.awt.Graphics,int)
    location: class Erase
    g.setColor(newColor(r,g,b));
    ^
    1 error
    I have imported java.awt and javax.swing so I'm not sure why I get the error? Any ideas?
    Thanks again,
    David

  • When I use the function of "finding keyword", the word would be shown in green. Can I set the colour by myself?

    When I use the function of "finding keyword"(ctrl+f), the keyword would be shown in green. I want to change the highlighted colour to be blue. Is there any function to change the colour?

    See '''''cor-el's''''' answer in this thread: https://support.mozilla.com/en-US/questions/900541
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *'''''Shockwave Flash''''' (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • Do I need to set AI colour profiles for use in ID?

    My previous set up:
    Mac
    CS2 (Illustrator, Photoshop, Bridge)
    Quark XPress 7
    My new set up:
    PC (Win 7)
    CS5 (Illustrator, Photoshop, Bridge, InDesign)
    My problem:
    I work for a company that prints newspapers, but my dept also does work for glossy sheetfed printers (magazines leaflets etc)
    All my work is exclusively CMYK.
    With my previous set up - I didn’t want to have to switch my colour profiles via Bridge as I was constantly juggling two types of jobs:
    Our tabloid press - Profile - ISOnewspaper26v4 (CMYK)
    Sheetfed Printers - Profile - ISO Coated V2 (Fogra 39) (CMYK)
    So I set my CS2 Suite colour settings to  ISO Coated V2 (Fogra 39) and set an action in Photoshop to convert jpegs / eps photos to ISOnewspaper26v4.
    So my CS2 working space was set for Sheetfed glossy publications and if I wanted to set a picture to the correct profile for newsprint I just had to open the picture and hit the action that applied the ISOnewspaper26v4 profile.
    Regarding Quark – I set up separate templates for each type of job:
    One for Profile - ISO Coated V2 (Fogra 39) and one for - Profile - ISOnewspaper26v4.
    Regarding Illustrator - I found that Quark 7 didn’t differentiate between Illustrator colour profiles, or if it did, it didn’t show up in ‘Usage’.
    If I went to Quark Usage and went to ‘Profiles’ it only listed the Quark profile and any Photoshop profiles, not any Illustrator profiles.
    So in Illustrator I just set colour profiles to ‘do not colour manage this document’. So that I only had to worry about changing profiles for Photoshop jpegs / eps’s.
    So I had a good little system going that served me well and now my company decided to move us to PC’s and CS5; and I still have the same problem – juggling newsprint jobs and glossy magazine jobs and not wanting to have to synchronise my CS suite colour settings every time I switch between jobs...
    So I was hoping to stick with my little system on PC / CS5.
    So basically my question is, do I need to worry about Illustrator colour profiles if I am bringing Illustrator files into InDesign? (To clarify, my Illustrator files are always pure vector, so there is no chance of some rogue RGB jpeg sneaking through on a Illustrator file)
    Im open to suggestions regarding my set up, but really would prefer not to have to keep switching my colour profiles.
    Any help would be greatly appreciated.

    First, I wasn't suggesting that your PDFs be exported to RGB, but it is a common workflow these days to keep photos in RGB until you convert them to the correct profile during the export process. This maximizes the potential for re-purposing your documents and allows you to use the same RGB photos for different output purposes without having to do separate CMYK conversions for each destination, so long as you don't need to do any tweaking after the conversion.
    And to answer your question, if the .ai files have no embedded color profile they will ALWAYS be considered to use whatever the CMYK working space is in your ID file, so the numbers will be preserved. This means that there will be slight differences in color on output on different devices (the whole point of color management, after all, is to preserve the appearance of colors by altering the numbers for the output device).
    Does the vector work you get from Thinstock come with an embedded profile? Is there any color that is critical for matching, such as a corporate color (which should be spot, but that's a different discussion), or do you use the same art in both the newspaper and magazine, and does the client expect a match (which we know isn't going to happen anyway)?
    If there's no embedded profile when you start, there's no way to know what the color was supposed to look like, so color management is not possible, really. You can assign a profile, but you'd be guessing. Since the correct appearance at that point is unknown continuing with out color management shouldn't present a problem. The only case where you would need to manage the vector art would be if the color APPEARANCE is critical or you need it to match across different outputs, and in that case you would need to assign a profile and allow ID to preserve the profile on import and remap the numbers, which means you would likely get rich blacks someplace. Since it's unlikely that you can get a good match going from glossy to newsprint, I probably wouldn't even try -- you wouldn't want, for example, to tag the art as newsprint, and have it print subdued on the gloss if it would look better or more correct with the other profile. Color management would be much more useful if you were going from sheetfed to web on the same stock.

  • Can you set different colours for invitees in calendar?

    In calendar on the iphone/ipad can you set any events that you accept from invitees to a different colour so that you can instantly distinguish them from your own events?
    Cheers

    You could choose None in Preferences > General > New Mail Sound and set up a rule for each account in Preferences > Rules as follows:
    If [any/all] of the following conditions are met:
    [Account] [AccountName]
    Perform the following actions:
    [Play Sound] [Sound]
    Problem is, that would cause the sound to be played for junk mail as well — probably not what you want.

  • Setting up Colour and Black and White in one document

    I hope this is a stupid question. I am creating the school year book for the first time. It is 80 pages with a mixture of black and white pages and colour pages.
    Do I have to set Indesign up any special way so that when it goes to the printers it will know this.
    Can I have black and white masters and colour masters in the one document?
    Do I need to gray scale all my (black and white images) in Photoshop first?
    Do I need to do anything to the text to make it print in Black and white if I am using a black coloured font???
    Thank you for your help.............it is greatly appreciated

    >Do I have to set Indesign up any special way so that when it goes to the printers it will know this.
    Maybe. How is it going to be printed? Have you talked to the printer about it?
    >Can I have black and white masters and colour masters in the one document?
    In a sense, yes. ALL pages in ID are color pages, but you can certainly set up masters where the only color used is Black.
    >Do I need to gray scale all my (black and white images) in Photoshop first?
    InDesign CS6 introduced export to grayscale PDFs, but that turns everything in the PDF to grayscale so you would need to export your color pages separately from the grayscale pages, then recombine in Acrobat pro, or send to the printer in separate files. You also need to set your Appearance of Black settings (in the prefs) to Output All Blacks as Rich Blacks if you are going to export to grayscale or your black type will be screened to a dark gray. Personally, I'd do the conversions in Photoshop so you can see and control what is going to happen and avoid the export hassles.
    Grayscale content is output in the K channel of the InDesign file, and your screen preview may not be accurate unless you use overprint preview.
    >Do I need to do anything to the text to make it print in Black and white if I am using a black coloured font?
    Your text will print in whatever color is you choose for it. If you use the default [Black] swatch, it will output using only black ink.

  • Unable to set background colour JTableHeader in Java 1.6_18

    We're moving our application from Java 1.4.2 to 1.6_18, so far without major problems but there's some small issues with the GUI. Originally we'd change the background colour of the JTableHeader, but in 1.6_18 that doesn't seem to work. Instead of colouring the complete header it just seems to draw an outline. It kind of gives the impression that there's something on top of the table header which hides the coloured background.
    The code below shows what I'm trying to do, and gives different results when compiled in Java 1.4.2 and Java 1.6_18. It makes no difference whether I'm using the UIManager or setting the background directly on the JTableHeader.
    The application still works fine of course, but it bugs me that I can't work out what the problem is, so any suggestions would be greatly appreciated! I've already had a look at bug [6521138|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6521138], but it makes no difference whether a new JTableHeader is set, so I think it's different. Also, the workaround for bug [4776303|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4776303] has no effect so I think that doesn't apply either.
        public static void main(String[] args) {
            try {
                UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
                // Doesn't give the expected result in Java 1.6_18, the background remains white-ish with only a coloured border.
                // UIManager.put("TableHeader.background", Color.GREEN);
                // UIManager.put("TableHeader.foreground", Color.BLUE);
            } catch (Exception exception) {
                exception.printStackTrace();
            final JFrame frame = new JFrame();
            frame.getContentPane().add(createPanel());
            frame.getContentPane().setLayout(new FlowLayout());
            frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
            frame.pack();
            frame.setVisible(true);
        private static JPanel createPanel() {
            final JPanel panel = new JPanel();
            final DefaultTableModel model = new DefaultTableModel(3, 2);
            final JTable table = new JTable(model);
            // Tableheaders.
            final TableColumnModel columnModel = table.getColumnModel();
            columnModel.getColumn(0).setHeaderValue("First");
            columnModel.getColumn(1).setHeaderValue("Second");
            // Doesn't give the expected result in Java 1.6_18, the background remains white-ish with only a coloured border.
            table.getTableHeader().setBackground(Color.GREEN);
            table.getTableHeader().setForeground(Color.BLUE);
            final JScrollPane scrollPane = new JScrollPane(table);
            panel.add(scrollPane);
            scrollPane.setSize(400, 100);
            panel.setSize(500, 500);
            panel.setPreferredSize(panel.getSize());
            return panel;

    Hillster wrote:
    Ah yes, when I change that setting the background of the table header indeed gets the expected background colour. Unfortunately it also makes my desktop look hopelessly outdated :-( And I can't really expect my end-customers to change their settings just to run my little application. Still, I suppose this proves that the problem lies in the L&F?Seconded Jeanette's sentiment, this is definitely a feature, not a problem. You want system LaF, you get System LaF, with all the bells and whistles. If you're sure you don't want the system embellishments, you could consider using my [_default table header cell renderer_|http://tips4java.wordpress.com/2009/02/27/default-table-header-cell-renderer/].
    db

  • Set a colour to a row in a table view which does not use an iterator

    Hi ,
      I have an application , which displays data using a table view.
    How can i set colour to a row based on the value of one of its coloums.
    The table view does not use an itertator.
    Thanks
    Arun

    you can use the following code in the ONMANIPULATION event to modify the color of the row. but be aware that if SAP changes rendering ot htmlb:tableview it may not work.
    this code sample set the bgcolor of row 2 to blue.
    DATA: httpbody TYPE string .
    CALL METHOD response->if_http_entity~get_cdata
      RECEIVING
        data = httpbody.
    REPLACE ALL OCCURRENCES OF '<tr rr="2"' IN httpbody WITH '<tr rr="2" bgcolor="blue"' IGNORING CASE .
    CALL METHOD response->if_http_entity~set_cdata
      EXPORTING
        data = httpbody.
    Regards
    Raja

  • Set backgroud colour in oracle form

    hi all,
    can we set multiple back ground colour a single item in oracle forms in diffrent records?
    if possible then how please help me.
    Thanks

    Yes, its possible either using DISPLAY_ITEM or SET_ITEM_INSTANCE_PROPERTY using Visual attributes.

  • Reports 3: setting background colour.

    Using Reports 3 how do I set the background colour for the
    margin? I do mean the margin and not the objects in the margin
    (they're easy).
    Thanks for any help.
    null

    "katychapman85" <[email protected]> wrote in
    message
    news:g6svqs$eli$[email protected]..
    > I'm retrieving different colours from a database and I
    want to set the
    > background colour of a canvas to the colour retrieved.
    I've tried doing
    > the
    > following:
    >
    > <mx:TileList
    > x="2" y="237"
    > direction="horizontal"
    > dataProvider="{MakeUpColours.lastResult.Colour}"
    > backgroundColor="#FFFFFF"
    > width="288" height="167.04999"
    > themeColor="#FFFFFF">
    >
    > <mx:itemRenderer>
    > <mx:Component>
    > <mx:Canvas width="35" height="35">
    > <mx:Canvas width="30" height="30" x="5" y="5"
    > backgroundColor="{data.ColourNo}">
    > <mx:Image
    > source="
    http://localhost/Flex/Personalised%20Palettes-debug/{data.@PictureSrc}"/
    >>
    > <mx:Label text="{data.@ColourNo}"/>
    > </mx:Canvas>
    > </mx:Canvas>
    > </mx:Component>
    > </mx:itemRenderer>
    > </mx:TileList>
    You're referring to both data.@ColourNo and data.ColourNo. Is
    it an
    attribute or an element?

  • Setting background colour to transparent?

    Why does cropping a photo leave a green background instead of being transparent? I'm fairly new at using the Photo Elements 10, I had v.7 which I could select "reverse" and delete background, then copy and paste into a new picture. However, the "copy" has a feathered edge and when I flatten the image then try to re-size/crop image, the background of the copy is still dark green??
    I can't remember how to set the background colour to "clear" not coloured nor feathered .... Please help.
    Thanks in advance for your help.
    Leona Buckner

    Double click the background layer to turn it to a regular layer before you start. If you delete on a background layer, the empty space fills with the chosen background color.

  • Setting Background Colour with a Value Retrieved from a Database

    I'm retrieving different colours from a database and I want
    to set the background colour of a canvas to the colour retrieved.
    I've tried doing the following:
    <mx:TileList
    x="2" y="237"
    direction="horizontal"
    dataProvider="{MakeUpColours.lastResult.Colour}"
    backgroundColor="#FFFFFF"
    width="288" height="167.04999"
    themeColor="#FFFFFF">
    <mx:itemRenderer>
    <mx:Component>
    <mx:Canvas width="35" height="35">
    <mx:Canvas width="30" height="30" x="5" y="5"
    backgroundColor="{data.ColourNo}">
    <mx:Image source="
    http://localhost/Flex/Personalised%20Palettes-debug/{data.@PictureSrc}"/>
    <mx:Label text="{data.@ColourNo}"/>
    </mx:Canvas>
    </mx:Canvas>
    </mx:Component>
    </mx:itemRenderer>
    </mx:TileList>
    But it just makes the background colour black. Any
    suggestions?
    Thanks
    Katy

    "katychapman85" <[email protected]> wrote in
    message
    news:g6svqs$eli$[email protected]..
    > I'm retrieving different colours from a database and I
    want to set the
    > background colour of a canvas to the colour retrieved.
    I've tried doing
    > the
    > following:
    >
    > <mx:TileList
    > x="2" y="237"
    > direction="horizontal"
    > dataProvider="{MakeUpColours.lastResult.Colour}"
    > backgroundColor="#FFFFFF"
    > width="288" height="167.04999"
    > themeColor="#FFFFFF">
    >
    > <mx:itemRenderer>
    > <mx:Component>
    > <mx:Canvas width="35" height="35">
    > <mx:Canvas width="30" height="30" x="5" y="5"
    > backgroundColor="{data.ColourNo}">
    > <mx:Image
    > source="
    http://localhost/Flex/Personalised%20Palettes-debug/{data.@PictureSrc}"/
    >>
    > <mx:Label text="{data.@ColourNo}"/>
    > </mx:Canvas>
    > </mx:Canvas>
    > </mx:Component>
    > </mx:itemRenderer>
    > </mx:TileList>
    You're referring to both data.@ColourNo and data.ColourNo. Is
    it an
    attribute or an element?

  • Feature Request: Change Style - Style Set (word like)

    I'm learning to use pages and there is a feature in word that I miss a lot.
    It's the Change Style - Style Set
    I want to change all the styles of my document, using the templates that I have installed in my machine, in a coherent way. In word I can do it with a button click. I really don't know how it is possible in Pages.
    Regards
    Camilo

    fruhulda
    In Word there is something akin to the CSS style sheet, but not as comprehensive.
    It lets you have stylesheet sets where the color, fonts, and various style elements can be swapped over for complete documents.
    It is a nice idea but not complete, and typically for Microsoft, the examples they offer are ugly.
    Pages could usefully rip this off and improve on it. That would make Pages '12 or '20 a truely great and useful upgrade.
    Peter

Maybe you are looking for

  • How to block a number from a "stalker"?

    how can i block a an incoming number ? sick and tired of receiving calls from one particular person ... starting to feel like a stalker

  • OPEN SQL (SELECT DATA)

    Hi, everybody! Recent i found a few code but i don't know this mean of code. fllows as.         SELECT  BMATNR  BWERKS  E~MTARP   AS   MTART                        CSPART  DMAKTX                   APPENDING  CORRESPONDING   FIELDS                    

  • Zen Micro freezing on connect

    Hi I just bought my Zen Micro today and had no problems with it at first. I charged it until it was fully charged and then plugged it into my computer. It was detected by the computer and everything seemed to be working well. I ran Media Explorer and

  • How does automatic video detection work?

    It used to be that, on my T400, when I would plug in an external monitor, the external would mirror that of my laptop. When I closed my laptop, the screen would automatically calibrate for the external monitor's resolution. And so on. I recently inst

  • Change Diagram Type in Control Chart in QE51N

    Hi I'm using the QE51N to record the results. I press the Control Chart Button and it's OK. I change the Diagram Type from "Lines" to "XY" (Dispersion), but the change isn't keep it for the other characteristics, or if another day I execute the QE51N