Trouble understanding SplitPane division

Hi all
I wish I could remove or replace a split pane divisions by lines. The scenario I'm doing with FXML in fact ideally be able to do with CSS
Is that possible?
regards

Default css for splitpane, just override it with the css style you want:
.split-pane > * > * > .table-view { -fx-padding: 0px; }
.split-pane > * > * > .list-view { -fx-padding: 0px; }
.split-pane > * > * > .tree-view { -fx-padding: 0px; }
.split-pane > * > * > .scroll-pane { -fx-padding: 0px; }
.split-pane > * > * > .split-pane {
    -fx-background-insets: 0, 0;
    -fx-padding: 0;
.split-pane {
    -fx-skin: "com.sun.javafx.scene.control.skin.SplitPaneSkin";
    -fx-background-color: -fx-box-border, -fx-control-inner-background;
    -fx-background-insets: 0, 1;
    -fx-padding: 1;
.split-pane *.split-pane-divider {
    -fx-padding: 0 2 0 2; /* 0 3 0 3 */
/* horizontal the two nodes are placed to the left/right of each other. */
.split-pane:horizontal > * > .split-pane-divider {
   -fx-border-color: transparent -fx-box-border transparent #BBBBBB;
   -fx-background-color: transparent, -fx-inner-border-horizontal;
   -fx-background-insets: 0, 0 1 0 1;
/* vertical the two nodes are placed on top of each other. */
.split-pane:vertical > * > .split-pane-divider {
   -fx-border-color:  #BBBBBB transparent -fx-box-border transparent;
   -fx-background-color: transparent, -fx-inner-border;
   -fx-background-insets: 0, 1 0 1 0;
.split-pane *.horizontal-grabber {
    -fx-padding: 5 1 5 1;
    -fx-background-color: #FFFFFF, -fx-box-border;
    -fx-background-insets: 1 0 -1 0, 0;
    -fx-shape: "M0 0 L0 0 L2 0 L2 2 L0 2 Z M0 4 L0 4 L2 4 L2 6 L0 6 Z M0 8 L0 8 L2 8 L2 10 L0 10 Z";
.split-pane *.vertical-grabber {
    -fx-padding: 1 5 1 5;
    -fx-background-color: #FFFFFF, -fx-box-border;
    -fx-background-insets: 1 0 -1 0, 0;
    -fx-shape: "M0 0 L0 0 L2 0 L2 2 L0 2 Z M4 0 L4 0 L4 2 L6 2 L6 0 Z M8 0 L8 0 L8 2 L10 2 L10 0 Z";
}From: http://hg.openjdk.java.net/openjfx/2.2/master/rt/raw-file/tip/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/caspian/caspian.css

Similar Messages

  • HT4623 I upgraded my iphone4S yesterday and Siri response with "having trouble understanding".  Is there an upgrade for Siri?

    I upgraded my iPhone4S to iOs6 and now Siri does not understand me.  Siri responses "having trouble understanding you, try again".  Is there an updgrade for Siri?  I have been searching all afternoon for a glimmer of a solution.  Any suggestions?

    Sure...
    See this Apple article for a Hard reset of a Factory reset.
    http://support.apple.com/kb/HT3728

  • Have Trouble understanding the runnable interface

    Hi
    I am new to java programming. I have trouble understanding threading concepts.When I run the below code,Thread3 runs first. I need a small clarification here- I created two thread objects
    Thread thread1=new Thread(new RunnableThread(),"thread1");
    Thread thread2=new Thread(new RunnableThread(),"thread2");
    As soon as I create these objects -Will the constructor with the string argument in the "RunnableThread" class gets invoked. If so why doesn't System.out.println(runner.getName()); get invoked for the above objects. what is the sequence of execution for the below program.
    /*************CODE****************************/
    class RunnableThread implements Runnable
         Thread runner;
         public RunnableThread()
         public RunnableThread(String threadName)
              runner=new Thread(this,threadName);          //Create a new Thread.
              System.out.println(runner.getName());
              runner.start();          //Start Thread
         public void run()
              //Display info about this particular Thread
              System.out.println(Thread.currentThread());
    public class RunnableExample
         public static void main(String argv[])
              Thread thread1=new Thread(new RunnableThread(),"thread1");
              Thread thread2=new Thread(new RunnableThread(),"thread2");
              RunnableThread thread3=new RunnableThread("thread3");
              //start the threads
              thread1.start();
              thread2.start();
              try
                   //delay for one second
                   Thread.currentThread().sleep(1000);
              catch (InterruptedException e)
              //Display info about the main thread
              System.out.println(Thread.currentThread());
    }

    srinivasaditya wrote:
    Hi
    I am new to java programming. I have trouble understanding threading concepts.I'd consider it to be an advanced area.
    When I run the below code,Thread3 runs first. I need a small clarification here- I created two thread objects
    Thread thread1=new Thread(new RunnableThread(),"thread1");
    Thread thread2=new Thread(new RunnableThread(),"thread2");No, this is wrong. You don't need your RunnableThread. Runnable and Thread are enough. Your wrapper offers nothing of value.
    >
    As soon as I create these objects -Will the constructor with the string argument in the "RunnableThread" class gets invoked. If so why doesn't System.out.println(runner.getName()); get invoked for the above objects. what is the sequence of execution for the below program.did you run it and see? Whatever happens, that's the truth.
    %

  • Having trouble understanding Abstract class. Help!!!!!!

    Having trouble understanding Abstract class. when is Abstract class used and for what.

    Having trouble understanding Abstract class. when is
    Abstract class used and for what.An abstract class is used to force the developer to provide a subclass, to implement the abstract methods, while still keeping the methods that were provided.
    � {�                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Trouble Understanding Logic of Primes Program

    I am reading a book called Beginning Java 7, by Ivor Horton. In his book he has a primes calculation program. The code is below. I am having trouble understanding the logic of the program. I've stared at it for the past several hours with no luck. What I can't understand is how both i and j are both initialized to 2 but the if statement:
    if(i%j == 0) {
              continue OuterLoop;                                         
            }then passes a 2 to the println() function. I am totally lost on this problem. The program below outputs all of the prime numbers from 2 to 50 without any errors. Please help!
    Thank you.
    public class Primes2 {
      public static void main(String[] args) {
        int nValues = 50;                                                  // The maximum value to be checked
        // Check all values from 2 to nValues
        OuterLoop:
        for(int i = 2 ; i <= nValues ; ++i) {
          // Try dividing by all integers from 2 to i-1
          for(int j = 2 ;  j < i ; ++j) {
            if(i%j == 0) {                                                 // This is true if j divides exactly
              continue OuterLoop;                                          // so exit the loop
          // We only get here if we have a prime
          System.out.println(i);                                           // so output the value
    }Edited by: EJP on 27/03/2013 19:54: fixed all the bizarre formatting, spelling, and removed the even more bizarre comment marketers around the text. Please use standard English and its existing conventions here.

    Hi. I did notice that. What I don't understand is how 2 is outputted as a prime number when the Net Beans debugger shows that i's value is 3 in the if statement. Where does the value 2 come from? Thanks.
    Edited by: 996440 on Mar 27, 2013 3:07 PM

  • Trouble understanding KMP algorithm

    If anyone is familiar with the KMP skip search algorithm and cares to shed some light on the subject. I am having trouble understanding how the table is derived, as many examples i come across seem to be using different variations. The table used to control the search.
    Thanks a million in advance, Mel

    JosAH wrote:
    The failure function can be a bit of a burden to fully understand but realize that it gives you the next index of the string to search for if the current match for a prefix of the pattern failed. thats kind of what i wanted to hear lol, thanks both of you
    and i took ur advice, i did the whole example on pen and paper. i would be lieing if i said i fully understand it, but i do have a better understanding now.
    Mel

  • Trouble understanding static objects

    Hello,
    I have trouble understanding static objects.
    1)
    class TestA
    public static HashMap h = new HashMap();
    So if I add to TestA.h from within a Servlet, this is not a good idea, right?
    But if I just read from it, that is ok, right?
    2)
    class TestB
    public static SimpleDateFormat df = new SimpleDateFormat();
    What about TestB.df from within a Servlet? Is this ok?
    example: TestB.df.format(new Date(1980, 1, 20));

    There is exactly one instance of a static member for every instance of a class. It is okay to use static members in a servlet if they are final, or will not change. If they may change, it is a bad idea. Every call to a servlet launches a new thread. When there are multiple calls, there are multiple threads. If each of these threads are trying to make changes to the static memeber, or use the static memeber while changes are being made, the servelt could give incorrect results.
    I hope that helped..
    Thanks
    Cardwell

  • Major trouble understanding structure

    Hello,
    This is my first time creating a Photoshop Plugin, and I am having a lot of trouble understanding how to do it. I am using Microsoft MFC to create it. Does anybody know of good references or sample code to look at? I simply don't get how to create this!!!
    I am trying to do a filter plugin that will let the user select a particular color, and turn all other colour in the image to black and white.
    Thanks.

    There is one MFC sample in the SDK. It doesn't sound like you are having trouble with MFC per say but more about getting pixels in and out of Photohsop. Where exactly are you having troubles? Maybe the Dissolve sample will help you out but it uses OS (Win32) API's and not MFC.

  • Trouble Understanding variables

    I am committed to learning A3, but HOLY CRAP!! I have never
    been a programmer, just a lowly designer. Apparently a pretty dumb
    designer! :)
    I can breeze through this in AS2 with no problem, but AS3 is
    killin' me! I am trying to create a music player that will embed in
    a web page, it will be XML driven and the XML will be populated via
    a database and generated by PHP. I am using a listbox component to
    display the playlist (from the XMLfile). I have figured out how to
    start playing the first mp3 on the list.
    Now when the user click a different button, I can get that
    song to play also, but I ended up created a second sound object, so
    the two play at the same time. Not good. I have tried and tried to
    access the object that is playing the first sound so I can stop it
    and load a new sound into it - I am about to pull my hair out!
    I seem to missing a basic understanding of how to access this
    object and change the variable value so I can play a new song. Any
    help would be GREATLY appreciated!!

    Vern,
    > If I understand correctly: any variable I am going to
    use outside
    > of the function that assigns its value needs to be
    declared OUTSIDE
    > of that function first?
    Yes.
    > Once declared it can be used anywhere, but if it isn't
    declared
    > outside, then the value is stuck inside that function.
    Is that correct?
    Close. In fact, if you're coding in the main timeline,
    you're so close,
    you could arguably define it in those terms and be fine.
    Variables (and
    functions) are available to the scope in which they're
    declared. If you
    declare a variable in the main timeline, then that variable
    is available in
    that frame and any subsequent frame of that timeline.
    Depending on the
    circumstances of your FLA, the main timeline may indeed feel
    like
    "everywhere," to the point where the variable could be said
    to be used
    "anywhere" -- but it's really not much different from the
    restriction a
    variable feels when declared inside a function; it's just
    that the whole
    movie takes place inside that "function"/FLA/SWF.
    > If I got that right, then for my scrubber, I need to set
    up some
    > variables that hold SoundChannel.position, Sound.length,
    > MovieClip.position
    > THEN create a function which assigns values and
    calculate the
    > MovieClip.position
    Yes. That way, any number of functions can use those
    variables. But
    keep in mind, all you really need are variables that point to
    your instances
    of Sound, SoundChannel, and MovieClip. Then use those
    variables to
    reference the necessary properties of those classes. (In
    other words, no
    need to make a mySound variable *and* a mySoundLength
    variable: the mySound
    variable suffices, because it leads to the Sound.length
    property as simply
    as mySound.length.)
    > I never liked how clunky onEnterFrame could is. I assume
    the Timer
    > class is a bit more streamlined?
    It's just another tool in the toolbox. :) Timer is the
    recommended new
    version of setInterval() and setTimeout() combined.
    > I am so used to _root.movieClip.variable=foo; (I mean
    the easy
    > access to any variable from anywhere) but change is
    good, I like
    > change. Change is good.
    I like change in my pocket! ;) The thing about an expression
    like
    _root.movieClip.variable is that you could often just
    reference the variable
    anyway, without the need for the "_root" reference. AS3 has
    root (no
    underscore), which behaves in many ways like _root, but dig
    into that a bit
    ... you'll find some important differences.
    > So it sounds as if, to include the loadbar within all of
    this, then I need
    > to move the playHead along the width of the loadbar, not
    a set length
    > in pixels.
    You could do a set length, but it's much more flexible if
    you use the
    width of some other object, like a track or some other movie
    clip. If you
    go with the width of some object, you can *change* the width
    of that object
    and the code still works.
    > The drag part should be easy enough, but adjusting the
    actual audio
    > from that may give some fits!
    To derive volume, you'll take the position of the draggable
    knob along
    its track and divide that by the width of the track. Assume
    you have a
    ridiculously long volume track, 500px. The volume knob has
    been dragged
    halfway across, to 250px. 250 / 500 is 0.5, which is the AS3
    way of
    specifying 50% volume. Now imagine the track is 50px wide.
    The knob has
    been dragged all the way across (to 50px). 50 / 50 is 1,
    which is 100%
    volume. And so on.
    > But here is my real question about that, will it be OK
    to try and add
    > that functionality in once the actual playHead is
    working, or is
    > that a mistake to not include it from the beginning?
    Ehh, for something like this -- especially if you're
    teaching yourself
    and involved in a learning experience -- I'd say it doesn't
    matter one way
    or the other. Take small steps and master each step. Sooner
    or later, what
    you're doing will "click" for you, and after that, you'll
    find that you can
    add or remove features as you please.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Trouble Understanding CSS Layout and Padding

    Hi,
    I'm having some serious problems understanding CSS layout techniques and the impact of padding and was hoping I could get some help.
    Here are a couple of pages that show examples of what I don't "get". The first has padding that causes the layout to look right. The second doesn't have padding but doesn't lay out as I would expect. Also, the amount of text affects the "bottom" div as well. I'm an old hand at HTML and could do this layout in my sleep using tables. Css is a different, frustrating story.
    http://www.libertywebmarketing.com/test/1.html
    http://www.libertywebmarketing.com/test/2.html
    Thanks.
    Fitz21

    Thank you for the help.There's a lot of valuable info in these answers that I'm going to have to study. I never thought of applying classes to Div tags, but I guess I have to start learning somewhere. I'm not sure how to use the technique, but I'll definately look into it. If I could wake up tomorrow and know what you all know simply by wishing it, I would.
    I see that there are many things I have to learn about using CSS and I'd really like to see some real world examples that don't look like typical cheesy CSS designs with columns. If I were going to design this page using HTML, I would probably do something like this: http://www.libertywebmarketing.com/test/3.html
    (The last two tables show the table structure and use of a spacer. I know this a seriously antiquated way of doing it, but it's to illustrate what I'm trying to accomplish: Namely, staggered, left/right alternating boxes that will expand properly depending on the amount of copy or the vertical height of the photo in them.) 
    Dreamweaver 101,
    I have "Dreamweaver 8 The Missing Manual" by David Sawyer McFarland, but I find it really concentrates on "typical CSS designs" that look like Content mangement templates. While I agree it's a valuable book, there's nothing in there I have found that addresses anything like what I'm trying to do. Is the Dummies book better for atypical layouts?
    Again, thank you all.
    Fitz21

  • Trouble understanding RH customization when linking FM files

    Is there a video that will help with this, particularly creating and customizing a single CSS for use with my work? I also would like to have an idea of the best workflow.
    Here is what I am doing and some issues:
    Open RH.
    Click File > New > Project.
    What I really want is a bunch of HTML files with known filenames. I know FM 12 can do this without RH, but I want to work this out now so I can take this in a better direction. Anyway, I click Application Help in Project Type.
    Click the Import tab in the New Project dialog box.
    Select FrameMaker Documents as the Import Type, and click OK.
    Select my FrameMaker .book file, and click Open.
    Enter a title for the project, file name for the project (left default), and location for the project.
    Click Finish.
    At this point, my multi-FM-file .book project hangs and never finishes. If I am using a single-FM-file .book project, though, the following happens:
    The Import dialog box opens.
    In the FrameMaker Document area, click Edit. Some scanning happens, and the Conversion Settings dialog box opens.
    Edit paragraph settings.
    Find those paragraphs I don't want output for and select the Exclude from output check box, such as Footer.
    Set each of my four Bulletn styles to Multilevel list. Bullet1, Bullet2, Bullet3, and Bullet4 styles represent decreasing levels of subbulleted lists.
    Set my eight Stepsn styles to Multilevel list. Steps1, Steps2, Steps3, and Steps4 styles represent decreasing levels of subnumbered lists (1, a, I, i). Each of these styles has a corresponding First style that sets the numbering to 1, such as Steps1First.
    Set up cross reference settings to remove page numbers.
    Set the default format for Image to .png.
    Leave Character, and Other settings alone.
    Click OK and Next.
    Leave the Table of Contents, Index, and Glossary Settings turned off.
    Click Finish. Some scanning happens and a result is created.
    Some issues.
    While Mutilevel Numbering creates 4 appropriate levels of bullets based on my styles, it only creates 3 of 4 levels of numbered lists. Levels 3 and 4 are presented identically by RH. How did this happen and how do I fix it.
    Indented body tags are not correct. I can fix this in the CSS. But, then, how do I create and make sure my project uses a new CSS?
    How do I create a delivery package for this? I see what I have in project manager, and want to create a folder that contains my output, that is, HTML, PNG, and CSS files that support my project so I can move these to the target CD or delivery mechanism?
    I have HTML and CSS buried within individual folders with the respective FM source. How do I get these HTML files and images out, and mate them to one and only one CSS for delivery?
    Thoughts?
    Sean

    Thanks. I will choose Blank Project  instead if Application from now on, though I understand that is erased by choosing FM files. I really just want compliant HTML 5 output with a single CSS file that I can deploy with linked files, which will be PNGs.
    So, can you  help with my customization questions?
    Also, another issue I have run into is spacing in the HTML around run-in headings. This is caused by RH adding an extra blank paragraph with a non-breaking space, as show in the following code. I don't need this empty paragraph added, and it was not in the FM source. Thoughts?
    <p class="FM_GlossaryTerm">Term Name Here as a runin in FrameMaker.</p>
    <p class="FM_GlossaryTerm">&#160;</p>  //<-- This line added in RH conversion, and I don't want it.
    <p class="FM_GlossaryDefinition">Term definition paragraph here.</p>
    Cheers,
    Sean

  • Having trouble understanding scancodes (and their udev mapping)

    First off, I know that scancodes are basically the raw byte interpretation of keyboard presses which I can display for example with showkey --scancodes.
    However why does showkey display at least two bytes for each key that I press (is it for press/release?) and for some keys even 4 and more? And how can I dump that down to a single byte which I can specify in a hwdb database for udev?
    For example, this is the output for Fn+Brightness Up/Down:
    showkey --scancodes
    kb mode was UNICODE
    [ if you are trying this under X, it might not work
    since the X server is also reading /dev/console ]
    press any key (program terminates 10s after last keypress)...
    0x9c
    0x1c 0x9c # pressed Enter
    0xe0 0x54 0xe0 0xd4 # pressed Fn+Brightness Up
    0xe0 0x4c 0xe0 0xcc # pressed Fn+Brightness Down
    The according mappings for brightness up/down in the udev database for my keyboard model are:
    KEYBOARD_KEY_88=!brightnessup # Fn+Up
    KEYBOARD_KEY_89=!brightnessdown # Fn+Down
    So assuming 0x54/0xd4 and 0x4c/0xcc are my "relevant" bytes, how do they lead to the scancodes 0x88 and 0x89 in the hwdb?

    Yes thats what I assumed, however what I dont understand is which one do I need in case I want to overwrite or add a new key in a (custom) udev hwdb file.
    The wiki doesn't mention anything specific about the difference between key press and key release and in the example I provided I was wondering how these scancodes for press/release of a key combination from showkey -s (like 0xe0 0x54 0xe0 0xd4) led to the specified value (0x88) in the udev hwdb file, since the wiki suggest that one should use showkey -s[ to figure out the scancode of a key.
    Last edited by Triver (2014-11-23 16:13:07)

  • Trouble understanding programing question.

    Hey guys,
    Got a program im supposed to write its bonus and I have already done the original program. Problem is Ive read the instructions and they are kinda confusing to me. If I could just understand what they are saying then it will make this much easier. So if anyone can shed some light on what im missing id be thankful.
    Heres the program instructions.
    Question 2: Design and implement a recursive method that implements the factorial method n!. The factorial method n! is defined by
    n!= n*(n-1)*(n-2)*�*1
    Place the method in a class that has a main that tests the method.
    Does this just mean I need to make a method that finds the factors of a variable (e.g the factors of 10)? Which would be 2 and 5 right? Or would this mean make a recursive method that finds the factors of 10*n. like 1 * 10 = 10, 2 * 10 = 20, 3 * 10 = 30 etc etc.... And Im guessing that that algorightm cant be used in a program. In other words the *....*1 and n! are not correct syntax and that algorithm is just a abstract example to give me some direciton im not actually supposed to try and replicate it exactly as it is right? Usually I dont have problems with instructions but this one just confused the hell out of me. Any help would be great thank you. I would have asked the teacher but I thought I understood it and now I dont see the profeesor until the day its due and also she has a foreign accent so its hard for me to understand.
    Message was edited by:
    venture

    No. You have to do the factorial.
    3! = 3*2*1 = 6
    4! = 4*3*2*1 = 24
    etc
    You should see a pattern ie 4! = 4 * 3!. In the
    question you were given the equation for calculating
    it. If you can't do it Google is your friend becuase
    it has been done millions of times before.
    Slow! Well it is hard to type with these fins.
    Message was edited by:
    flounderThat makes sense thank you.

  • Trouble understanding JTable renderers

    I dont properly understand how to JTable.
    In the application I'm writing, I have on main JFrame, with a menu.
    Onto this I load a jTabbed pane and then onto this a JTable , with
    some data loaded from a file , some coulmns are text , others integers
    floats and theres one date column
    I've successfully set up a TableModel extending AbstractTableModel
    as a separate class java file. I can set column widths ok too.
    But I cant get the renderer working , the numeric coumns are left aligned.
    Question 1 :How do I get a column of numeric data in a JTable to be right aligned? Some examples I have found seem to refer to specific cells eg
    // in the custom renderer...
    if(value instanceof Double)
    setHorizontalAlignment(SwingConstants.RIGHT);
    setText(value);
    I've also read this sites JTable tutorial but still dont understand the
    renderer bit.
    Question 2 : where do I put the renderer code, in with the table model
    class file , or in my main application (where I define the column widths)?
    [The JDK is 1.4, the OS is win 98.]
    Thanks in advance for any help
    Mike2z

    HONK !
    Thanks for the reply. The code
    public Class getColumnClass(int c)
    switch (c)
    case 0: return Integer.class;
    case 1: return String.class;
    case 2: return String.class;
    case 3: return String.class;
    case 4: return String.class;
    case 5: return String.class;
    case 6: return Integer.class;
    case 7: return Float.class;
         case 8: return Float.class;
    case 9: return Float.class;
    case 10: return Floatclass;
    default : return getValueAt(0, c).getClass();
    // return getValueAt(0, c).getClass();
    // return Object.class;
    seems to be the key. When I use that (instead of either of the commented
    out lines I was trying before) it works in that numbers are right
    aligned.
    However when I attemp to right scroll on the scroll pane I get a garbled display and the error :
    java.lang.IllegalArgumentException: Cannot format given Object as a Number
         at java.text.NumberFormat.format(NumberFormat.java:219)
         at java.text.Format.format(Format.java:133)
         at javax.swing.JTable$DoubleRenderer.setValue(JTable.java:3348)
         at javax.swing.table.DefaultTableCellRenderer.getTableCellRendererComponent(DefaultTableCellRenderer.java:160)
         at javax.swing.JTable.prepareRenderer(JTable.java:3682)
         at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:1149)
         at javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:1051)
         at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:974)
         at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)
         at javax.swing.JComponent.paintComponent(JComponent.java:537)
         at javax.swing.JComponent.paint(JComponent.java:804)
         at javax.swing.JComponent.paintChildren(JComponent.java:643)
         at javax.swing.JComponent.paint(JComponent.java:813)
         at javax.swing.JViewport.paint(JViewport.java:707)
         at javax.swing.JComponent.paintChildren(JComponent.java:643)
         at javax.swing.JComponent.paint(JComponent.java:813)
         at javax.swing.JComponent._paintImmediately(JComponent.java:4642)
         at javax.swing.JComponent.paintImmediately(JComponent.java:4464)
         at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:404)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:443)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
    If I just use
    public Class getColumnClass(int c)
    return getValueAt(0, c).getClass();          // this
    // return Object.class;          // or this
    I can right scroll without that error appearing, but am back to the original problem of left aligned numeric data.
    Don't suppose you encountered the same problem?
    Mike2z

  • Trouble understanding static

    Like the topic says, I do use it (actually I have to for the GUIs or they don't compile), but I really don't understand too much about them (what they allow, what they limit) and the definition on java.sun is not very clear to me. Could someone please give me a brief explanation on this subject and maybe an example?

    public class Test {
        private String myName = "My name is . . .!";  //private variable of class Test
      public static void main(String[] argv)   //is static because the runtime environment needs to call this first, before making any objects, so it's not essential for your class, just gives you a way of running your code from within your class itself
        String theNameMainGets = "";  //main will receive the name in this
        Test testThis = new Test();  //make an instance without a name
        Test testThisWithAName = new Test("nogoodatcoding"); //pass a cool name to the constructor :D
        //theNameMainGets = whatIsMyName(); //will not work since main is static, so even though it is part of the same class, it cannot call a non-static member, whatIsMyName, because a copy of that is with every instance, and when main calls it, the instance may not exist
        theNameMainGets = testThis.whatIsMyName(); //correct way to access the non-static member, by creating an instance and then using that to access it
        System.out.println(theNameMainGets);
        theNameMainGets = testThisWithAName.whatIsMyName();
        System.out.println(theNameMainGets);
        //note, you can't say, testThis.myName; since myName is private to testThis.
    Test()
          myName = "No one named me";
    Test( String newName )
          myName = newName;
        public String whatIsMyName()
          return myName;
    }Hope this helps

Maybe you are looking for

  • Unable to read field value from main table - unexpected socket read error

    Hi Friends, While executing the below code, I am able to get the value of the field 'id' but i am unable to get the value for the 'materialnumber' field. i am getting the below exception +com.sap.mdm.commands.CommandException: com.sap.mdm.internal.pr

  • Error in the tcode KOK3

    Hi gurus, im getting the following error in the tcode KOK3 (Collective Disp. Internal Orders , part of FI/CO package, KAUF), after applying the new support pack. Error is as follows: System error: Error in routine T021Q_SON_LESEN SAPMKAUFORC 0 Messag

  • Help with iPhoto update problems?

    I was just prompted to update to iPhoto 2011 9.4.2 and not it will not upload albums to Facebook and it's decided to move all my events around and no longer allow me to move photos in an event. Does anyone have any solutions?

  • Help, yoga s1 won't boot into win 8

    Help, can't boot after removing/replacing ssd on yoga s1. unit was working perfectly before that. All I wanted to do was upgrade my ssd to larger drive. I opened up my thinkpad yoga to check if new 480gb ssd was compatible with native 128 that came w

  • Batch rename by date created??

    I made the huge mistake of setting up my camera to restart the image count everytime I put a new memory card in, then I transfered them all to my computer, erased the cards only to then realize I've got a bunch of photos with the same name.  Not a hu