2 new question concerning JList

Hello!
Thx for solving my first problem. But i have two more :(:
I'm trying to write an own calendar for a special program, and the days of the week (monday, tuesday...) must be set unselectable.
1. How can i change the background-color of one entry?
2. Is it possible to draw a line between the days of the week and the rest of the calendar?
The calendar looks like this:
Mo 01 08 ...
Tu 02 09 ...
We 03 10 ...
Th 04 11 ...
Fr 05 12 ...
Sa 06 13 ...
Su 07 14 ...
But should look like this (with one line, not with several like here):
Mo | 01 08 ...
Tu | 02 09 ...
We | 03 10 ...
Th | 04 11 ...
Fr | 05 12 ...
Sa | 06 13 ...
Su | 07 14 ...

1) You can achieve this using a custom cell renderer.
2) You might want to use a JTable instead. It is possible to do it with a ListCellRenderer but kinda painful in a way.

Similar Messages

  • Definition of a new operating concern

    Hi experts,
    We have a question about transporting a new operating concern.
    To transport customizing settings  of the new operating concern we used Tcode KE3I.
    We defined new characteristics and value fields for the new operating concern.
    In the customizing request we can see that for the tables TKEF and TKEFD all entries (old and new) were included.
    But all old fields already exists in the target system of the transport request.
    Should we keep the old fields (existing characteristics and value fields) in the customizing request or should we delete them and leave only the new ones ????
    Thanks.

    Cincean:
    By old entries you mean the SAP delivered entries/characteristics??
    Or the characteristics you previously created?, if so, just keep it that way and transport
    Vj
    Assign points if info helps

  • Might go for T400/500- Many questions concerning Think Vantage

    Hi,
    I am deciding on my first IBM, a T400 or T500
    I have a few questions concerning the Think Vantage Function:
    a) Does the recovery DVD set back the hard drive partitions to factory settings?
    b) Does the Think Vantage function set back the hard drive partitions to factory settings?
    This means the original size of the partitions, when they have been changed manually.
    c) Does Think Vantage work with a self buyed Windows Vista?
    d) Does Think Vantage work unter Windows XP
    e) Does Think Vantage need drivers/ anything else to work or is it entirly working on the hardware side, so no software/ windows is needed
    f)Will Think Vantage work under Windows 7 in a T400/500
    g) How was the past situation? Did a under Windows XP working Think Vantage also work on Vista / have there been drivers delivered, when needed, for the new OS
    h) Is it possible to set up a new OS (like Vista Ultimate) and then backup it up on a external hard drive and later recover from this?
    What do I want to achieve?
    I want to recover the factory settings at all times, this means partition size, number of partitions etc. and Windows Vista Business. Then I want to install Vista Ultimate do my settings and backing it up to an external drive or whatever and then recover from that all 3 Months. In the end I should be able to set back factory settings with the earliest/ first backup from Windows Business; Furthermore I might want to install Windows 7 sometimes.
    Thank you for your help! Kind regards
    Message Edited by Schwenker on 11-23-2008 08:23 AM

    Hello,
    I would recommend Acronis to do this job. Here is a link at thinkpad-forum.de.
    You´ll  get Acronis for free if you buy a PCWelt.
    Your answers:
    A. yes
    B: yes
    C: yes
    D: yes
    E: No, windows is needed and if it´s XP than MS NET 2.0 also.
    F: yes, when windows 7 is out, than Thinkvantage will work then, on Server 2008 it seems to work.
    G:Thinkvantage work in Vista and XP environment.
    H: yes, you can backup it on a extern hdd and later recover the R&R Image to the internal disc.
    What do I want to achieve?
    I would recommend Acronis to do this job. Here is a link at thinkpad-forum.de.
    You´ll  get Acronis for free, if you buy a PCWelt.
    here are some interesting benchmark with first versions of Windows 7 and XP.
    Windows 7 unmasked
    Perceptions becomes reality
    Message Edited by Agotthelf on 23-11-2008 10:23 PM
    Follow @LenovoForums on Twitter! Try the forum search, before first posting: Forum Search Option
    Please insert your type, model (not S/N) number and used OS in your posts.
    I´m a volunteer here using New X1 Carbon, ThinkPad Yoga, Yoga 11s, Yoga 13, T430s,T510, X220t, IdeaCentre B540.
    TIP: If your computer runs satisfactorily now, it may not be necessary to update the system.
     English Community       Deutsche Community       Comunidad en Español

  • Question Concerning Anchor Usage

    New to Dreamweaver's web world and have a question concerning
    Anchors and Drop Down Menus. Is it possible to have one of the
    selections from my main navigation drop down menu Anchored to a
    particular section of a page?
    Thank You for any input.

    OH, that. Duh.... 8)
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "E Michael Brandt" <[email protected]> wrote
    in message
    news:fu5vq2$gs1$[email protected]..
    > jcraw77 wrote:
    >> New to Dreamweaver's web world and have a question
    concerning Anchors and
    >> Drop Down Menus. Is it possible to have one of the
    selections from my
    >> main navigation drop down menu Anchored to a
    particular section of a
    >> page?
    >>
    >> Thank You for any input.
    >
    > Sure, just make its link be href="#anchorname"
    >
    > --
    >
    >
    > E. Michael Brandt
    >
    > www.divahtml.com
    >
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    > Standards-compliant scripts and Dreamweaver Extensions
    >
    > www.valleywebdesigns.com/vwd_Vdw.asp
    > JustSo PictureWindow
    > JustSo PhotoAlbum, et alia
    >
    > --

  • Dreamweaver cs6 suite development questions/concerns

    Hello,
    I am new a new creative cloud subscriber. I have past experience with programming a java environments and SQL. I am new to HTML5/CSS3 and have read a book on the subject to understand the design concepts in effort to find a good environment to develop mobile applications. I like what I see using fireworks to create HTML5/CSS3 to create code for more complex objects/elements.
    Additionally, watched all the videos and am ready to roll up my sleeves and get started. As I have watched the videos and goggled allot of forums regarding DM CS6 and web applications I have a few questions and concerns. I will preface this with the understanding that this involves new features/ technologies and will suffer some growing pains.
    Questions/ Concerns:
    1) Fluid Grid Layout tool:
    Can I create a mobile application with this tool that will work on both tablets and smart phones (not desktops) compiling  a single optimized site using the phone gap tool; or do I have to create 2 separate site and compile?
    2) Phone Gap
    I have read that there are allot of issues with compiling applications. Even watching the adobe road show video, they could not get it to work (yikes).I have also read that I phone product code need to be compiled using xcode(tools); needed to have an apple subscription (which I have access to) What are the known issues compiling mobile applications for the different device platforms?
    3) Sever-Side Mobile Applications
    a) As I understand it, this cannot be accomplished with this environment without a web service that     communicates to the server-side scripting/ Database server.
    b) Reading about local storage, what are the limitations and how do they effect mobile applications if there is more complex scripting and large record sets?
    C) Are there ways to create user/ security roles (I would imagine the integrity issues with security would be staggering)?
    4) Responsiveness
    I have played around DM, I have noticed it crashing and being very sluggish. I know its not memory or processing issues as I have read several posts on the topic.
    It seems that adobe is making it easier to design and develop within one product/suite. These tools seem very powerful. The direction makes sense as I like elements of both development and design. I am concerned that I will hit walls and want to avoid banging my head. I am still new to this environment and the mistakes may be mine. With that being said, do you think Adobe will get these issues resolved out and have a great environment and development model.
    Thanks in advance for the light anyone can shed on these subjects as I am eager to get started (but a bit worried).
    Erich

    Hi
    To add to Davids reply -
    Item 3:
    Are you talking about apps. or web pages on mobile devices, (they are not the same thing)?
    If web pages then the server/database side is no different to a normal web page which does require a server supporting these. As for local storage, (works whilst off-line) this is normally done via javascript and a local database, but I would not use this feature for anything too complicated as the database is stored on the users computer/device, and only 'communicates' with your server/database when the user is once again on-line and connected to your web page.
    As for item 3.c. - Doing this for off-line use is a complete waste of time, as the user has access to any encryption code and the database entry's, which they can then use when on-line again. A simpler solution would be to require just the users credentials and store this locally, (still not ideal, but at least all the users DB is not downloaded).
    Regarding item 4. Some users have reported problems, but for me personally 99.9% of them I have not experienced with the release version of CS6, and performance issues for me all vanished when I upgraded my PC to an i7 processor with 16Gb memory, an extreme solution for many I admit, but your computers speed and memory will have a dramatic effect on the user experience.
    PZ

  • Nub question concerning threads.

    I recently completed my first Comp Sci. class in Java and have decided to try to continue learning on my own. I am now trying to make a pong game, using a turorial. Unforunately my course did not cover threads in any way, shape, or form. I am able to get the beginning of the program to work (code posted below) and have no problems with it; however, I do have a few questions concerning what certain elements of the code do.
    1. Can someone please give a definition of a Thread in "Dummy" speach? I've looked up definitions and I can't seem to really grasp what they are and what they are used for.
    2. In my program there are two lines (32 & 79) where the thread priority is changed. Can someone explain what that means and how it affects my applet?
    import java.applet.*;
    import java.awt.*;
    public class BallApplet extends Applet implements Runnable
         //Declare variables to change posistion
         int x_pos = 10;
         int y_pos = 100;
         int radius = 20;
         boolean rWall = false,
         //The second image of the ball
         private Image dbImage;
         private Graphics dbg;
         public void init() {}
         public void start()
              Thread th = new Thread(this);
              th.start();
         public void stop() {}
         public void destroy() {}
         public void run ()
              Thread.currentThread().setPriority(Thread.MIN_PRIORITY);
              while(true)
                   while (rWall == false )
                        if (x_pos == 700)
                             rWall = true;
                        else
                             x_pos= x_pos + 5;
                             // repaint the applet
                             repaint();
                             try
                                  // Stop thread for 20 milliseconds
                                 Thread.sleep (20);
                             catch (InterruptedException ex)
                                 // do nothing
                             // set ThreadPriority to maximum value
                             Thread.currentThread().setPriority(Thread.MAX_PRIORITY);
                   while (rWall == true)
                        if (x_pos == 0)
                             rWall = false;
                             lWall = true;
                        x_pos = x_pos - 5;
                        repaint();
                        try
                             Thread.sleep(20);
                        catch (InterruptedException ex)
                        Thread.currentThread().setPriority(Thread.MAX_PRIORITY);
         public void update(Graphics g)
              //initialize buffer
              if (dbImage == null)
                   dbImage = createImage(this.getSize().width,this.getSize().height);
                   dbg = dbImage.getGraphics();
              //clear screen in background
              dbg.setColor (getBackground());
              dbg.fillRect (0, 0,this.getSize().width,this.getSize().height);
              //draw elements in background
              dbg.setColor (getForeground());
              paint(dbg);
              //draw image on screen
              g.drawImage(dbImage,0,0,this);
         public void paint (Graphics g)
              g.setColor (Color.red);
              g.fillOval(x_pos - radius,y_pos - radius,2*radius,2*radius);
    }Thanks for any help, it is greatly appreciated.

    Questie,
    Please control yourself. Please.??
    As the program runs it is one thread. (You canthink
    of each thread as an independent program if youlike.
    This is not 100% accurate but close enough that
    it
    might help you understand)
    It will only confuse the OP
    You are a flat out wrong for a number of reasons.
    1) You seemed to miss the part where I did say that a
    doubling in peformance is fictious and is dependent
    on a number of factors.As i was telling that would only confuse the OP.Its better to be 100% precise when you explain to an OP
    2) You don't understand how a multi-process OS works
    in the least.Assumptions as usual
    3) You don't understand how processors work in the
    least.Well,what was i saying?
    2 and 3 are important because your point about
    context switching is not valid. First of all because
    this happens anyway because your program is not the
    only thing running the processor. Second because of
    the first point each thread gets a timeslice, you may
    with multiple threads each get a timeslice and these
    slices may (and often do) add up to more total time
    then the first got by itself.When you consider a solution to a problem the average and the worst case has more weightage than the best case.You are taking the best case assumption here-"because ofthe first point each thread
    gets a timeslice, you may with multiple threads each
    get a timeslice and these slices may (and often do)
    add up to more total time then the first got by itself".Now dont stop whining that you werent.Never take the best case always coz its the average and worst case which checks if the system festers to a condition beyond rectification
    For example (these numbers are fictional but I am
    trying to explain it so don't go off all half-cocked
    again please)
    Program with one thread. Each thread gets 100 cycles
    per second.
    Program with four threads. Each thread gets 50 cycles
    per second.
    The second program will finish in half the time as
    the first. Because even though each thread is slower
    as a whole the program is getting twice the cycles
    of the processor as before. You are taking the best case again and moreover its the cpu scheduling algo which decides the time slice and not you sitting on the CPU.I have a vague feeling that you have an idea that you are sitting on the CPU deciding the Time Slice.
    You need to understand something important here. Alot
    of the time when you are doing things in a program,
    and this doesn't just apply to IO here, you don't
    have to use the processor for each step. There is
    some shifting around of things to get them ready to
    be executed by the processor. A more advanced
    representation of this is to be found with
    Hyperthreading. Hyperthreading processors (single
    core) are of course single core but they act as if
    they were multi-core (multi processes) because while
    only one process is actually executing at one time
    the others are pipelined in such a way to make sure
    that the executing core of the processor has the
    least amount of idle time possible.Digression
    So that means on a basic processor each time you add
    2 numbers it takes 5 steps. And the processor core is
    idle 80% of the time.
    From where did you get that 80%?Stop coming up with your own numberes.This is no number game
    So for example while some data is being placed in the
    outbox new data is also being collected and is at
    step 2 already. In this model while we are still on a
    single core the core is now idle only 60% of the time[b]From where did you get 60% now
    So yes threading is very useful for IO and other
    operations that may block your program but they have
    more use than just that. Parallel execution can and
    will have some performance advantages (if designed
    properly) even on a single core processor without
    hyperthreading. In a well written multithreaded
    program when you add hyperthreading and multiple
    cores or multiple processors to the mix then you
    really have something.I never said it wont.Read properly what i have posted.I told dont take the best case always.You need to consider that too but the other two carries more weightage
    Please don't feel you ever have to post to correct me
    again thanks.^^
    Get ride of this self conceited attitude.Even if you have it dont make it public.Its not that you are always right cotton.I am not saying that you are wrong.If you have read my first reply i mentioned that i knew that you gave that example just to make the OP understand.The problem with that is that if the OP is unable to fathom out what you mean he is going to misconstrue whatever you have said and that propogates

  • How can I create a new Question thread?

    How to create a new "Question Thread" regarding the account payment ?

    Hello MotionBoy,
    There are two ways to go about creating a new thread to run a step.  The first is to create a new sequence, into which you put the LabVIEW step you want to run and any other steps that may go along with it.  Then use a sequence call step to call this newly created sequence.  Set the Execution Options of the Sequence call step to 'Use New Thread.'  This will allow you to run a set of steps in a new thread, not just a VI.  The second method, which is only available for a LabVIEW VI, is to use the “Run VI Asynchronously” step.  This can be accessed if you right-click within your sequence and select Insert Step » LabVIEW Utility » Run VI Asynchronously.  This step will allow you to call a VI and have it automatically open in a new thread.  You can further customize this step by opening the configuration menu in the Step Settings.
    To address the current behavior of your steps I would like to know if the modules in steps 1 & 2 pass data between them or it would be desirable for them to do so?  If so you are going to need a more complex synchronization structure such as TestStand/LabVIEW queues. There is a simple example you may want to look at in the TestStand examples, under the Synchronization folder that demonstrates how to use queues. Otherwise the above solution should be all you need.
    John B.
    Applications Engineer
    National Instruments

  • I have a MacBook Pro running 10.6.8 model 7.1; need to upgrade to Mavericks.  My question concerns 3 software apps:  Reunion 10, Quicken 2007, Appleworks 6.2.9.  Any recommendations?

    I have a MacBook Pro model 7.1 running 10.6.8; need to upgrade to Mavericks...question concerns 3 software apps:  Reunion 10, Quicken 2007, Appleworks 6.2.9 (word processing docs).  Any recommendations?

    Quicken Essentials is universally loathed on this forum.  Quicken 2007 updated for Lion, Mt. Lion and Mavericks for $15 is the way to go:
    http://quicken.intuit.com/personal-finance-software/quicken-2007-osx-lion.jsp
    Appleworks 6:
    Partition your hard drive or add an external drive and install Snow Leopard and use the "dual-boot" method to run Appleworks; and/or
    Install Snow Leopard Server (available by telephone order only from the Apple Store 1.800.MYAPPLE [1.800.692.7753]; part number - MC588Z/A) into Parallels and run Appleworks (and most other PowerPC apps) concurrently with Mavericks:
                                  [click on image to enlarge]
    Review Roger Wilmut's excellent series of articles, Abandoning Appleworks:
    http://www.wilmut.webspace.virginmedia.com/notes/aw/page1.html

  • Good afternoon ladies and gentlemen!   My question concerns the impossibility to open RAW-files directly from the program Adobe Bridge. At the moment when you open a RAW-file from Adobe Bridge by double-clicking, RAW-file is opened only in Photoshop. In t

    Good afternoon ladies and gentlemen!
    My question concerns the impossibility to open RAW-files directly from the program Adobe Bridge. At the moment when you open a RAW-file from Adobe Bridge by double-clicking, RAW-file is opened only in Photoshop. In the settings Adobe Bridge - in "open RAW-files by double-clicking in Adobe Camera Raw» box is checked. When you try any changes in the settings Adobe Bridge system displays a message:
    Bridge's parent application is not active. Bridge requires that a qualifying product has been launched at least once to enable this feature.
    The entire line of Adobe products on my computer updated to the latest updates. Previously, a family of products Adobe Photoshop on your computer is not set. Computer - PC, Windows 7 Enterprises.

    <moved from Adobe Creative Cloud to Bridge General Discussion>

  • Master iPad configurator question concerning cart syncing with different versions of iPads.

    I have a question concerning configurator syncing.Can the master iPad be a different version of iPad than the other synced iPads? For instance can iPad 2 be the master iPad to a group of iPad Air's? The iPad 2 has some fewer capabilities than the Air, would some settings or restrictions be left off of the iPad Airs if they were set up this way?  Thanks.

    There is no such thing as 'master iPad'.  If you're using Configurator or Profile Manager control of the setup is done from a Macintosh.

  • New Questions not displaying on a page Survey App Part SharePoint 2013

    I wanted to insert a survey app part on a page in my site so i followed steps mentioned in the below link
    http://sharepoint.stackexchange.com/questions/86903/showing-only-survey-questions-in-page
    it successfully created but now when insert another question into the survey list which i created above it does not show that question onto the page it only displaying 3 questions which i added when i was creating a survey list
    can anyone help me in showing new question as well.

    Hi ,
    Please re-insert the list new item form web part on that page as your above article mentioned steps, then check results again.
    Thanks
    Daniel Yang
    TechNet Community Support

  • Very Simple question about JList

    Hi,
    I am newbie to Java, and I want to show a couple of items in JList Control, but it doesn't show up, anyone can help me. When I use system.out to printout the contents of the ListModel, it does tell me that those items are in it.
    Thanks a lot!!!!
    Code are like this:
    import java.lang.*;
    import javax.swing.*;
    public class listExample extends javax.swing.JApplet {
    public void init(){
    String[] data={"one", "two", "three", "four"};
    jList1=new JList(data);
    for(int i=0; i<jList1.getModel().getSize(); i++)
    System.out.println(jList1.getModel().getElementAt(i));
    public listExample() {
    initComponents();
    private void initComponents() {
    jList1 = new javax.swing.JList();
    getContentPane().add(jList1, java.awt.BorderLayout.CENTER);
    // Variables declaration - do not modify
    private javax.swing.JList jList1;
    // End of variables declaration

    The objects in your list probably don't know how to display themselves. To do this you must overload the toString method that is originally in java.lang.Object. So basically if you have an object with a String for a first name and last name, for example, you would write a toString() method that looks something like this:
    public String toString() {
    return firstName + " " + lastName;
    When you put this object in a list the JList will use the toString method automatically to place text in teh JList object.
    Hope it helps.

  • New question regarding iPod Video (converting from a DVD)

    First off...thanks again for those who helped me before. iSwuint seemed to work best for mac conversions for the new ipod. My new question is how to copy a dvd to make it compatible also using a mac. I know there is a program for pc that works, but I am using a g4 laptop. Thanks again in advance.

    The problem seems to be that it is seeing all the chapters as titles. The longest title is 22 min and it is like a hour and a half movie. Has anyone else had this problem.
    HandBrake sometimes has a problem listing all of the titles contained on a DVD. When HandBrake scans the title you may notice that it reads them all but when the list is generated, some entries in the list are omitted. This is likely what happened here. There are two approaches you can try. The first is to switch to an alternate application. The second would be to rip/extract the main title using a separate application like MacTheRipper and then use HandBrake's "browse" function to navigate to the appropriate VIDEO_TS folder files.

  • New "Questions Answered" Spotlight Award

    I'm pleased to announce our new "Questions Answered" Spotlight Award.  The first awardee will be recognized in March.
    Questions Answered Award:  This  award is intended to recognize a Support Community member whose  contributions have resulted in answering the most number of questions on  our community.  At the end of each month, that member who has the most  number of  “Answered Questions” will be recognized with a community  Spotlight Award.
    Award Duration: 1 month
    Please visit ourSpotlight Awards page for more information on the Program.
    Cheers,
    Dan       

    Hello Dan, I hope you're well.
    Why does it say 'unanswered questions' rather than questions answered, or is it a totally different award?
    It is like the opposite almost!
    https://supportforums.cisco.com/community/netpro/top-contributors/spotlight-awards
    Please rate useful posts & remember to mark any solved questions as answered. Thank you.

  • Questions concerning ST Simple Transformations

    I got some questions concerning Simple Transformations:
    1.) When editing a simple transformation, how to insert comments? In pure ABAP, a comment line must have as asterisk in the first column...
    2.) I use <tt:loop>...</tt:loop> and want to use the index of the currently processed entry, like SY-TABIX when implementing a "LOOP AT itab" in ABAP. Is there a way?
    Thanks for your answer, points will be rewared...
    -MIKE

    Hi Jack, please find some sample coding below that will solve your issue:
    <tt:cond check="not-initial(ref('E1EDL20.INCO1'))">
      <INCO1 tt:value-ref="E1EDL20.INCO1"/>
    </tt:cond>
    With the simple transformation tt cond statment you can make an XML tag optional. In below example during deserialisation xml tag <INCO1> will be skipped when not availabke in the xml and SAP data E1EDL20.INCO1 will not be filled by the transformation.
    Regards. Please give points when usefull !

Maybe you are looking for