Setting the scrollbar to be by default in the middle of the scrollpane

I was wondering if there was a way to set the JScrollBar to be at the middle of the scrollpane by default. I have a handle to the scrollbar and can determine the min and max of it's range, but I don't see a place to set the scrollbar position.

This is a runnable stand-alone app.
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Component;
import java.awt.Color;
import java.awt.Font;
import javax.swing.*;
import javax.swing.table.*;
import java.util.*;
public class MarketBook extends JFrame implements WindowListener,
                                                  ActionListener{
     protected final int ROW_HEIGHT = 15;
     protected final int NUM_ROW = 14;
     protected final int PREF_WIDTH = 200;
     protected final int PREF_HEIGHT = 150;
     protected final int BID_COL = 1;
     protected final int OFFER_COL = 2;
     private String instrument;
     private String mkbkID;
     private String[] instArray = {"Item1", "Item2", "Item3"};
     private String[] colNames = {"Qty", "Bid", "Offer", "Qty"};
     private Vector<String> instrumentsList = new Vector<String>();
     private DefaultTableModel dm = new DefaultTableModel(colNames, NUM_ROW);
     private DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
     JPanel contentPane = new JPanel();
     JPanel topPanel = new JPanel();
     JComboBox instList = new JComboBox(instArray);
     JTable bidOffer = new JTable(){
          public boolean isCellEditable(int row, int column){
                    return false;
     JScrollPane bidOfferScroll = new JScrollPane(bidOffer);
     public MarketBook(String _mkbkID, Vector<String> _instList){
          super(_instList.firstElement());
          this.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
          this.mkbkID = _mkbkID;
          this.instrumentsList = _instList;
          this.instrument = instrumentsList.firstElement();
          buildGUI();
     private void buildGUI(){
          TableColumn tc = null;
          contentPane.setLayout(new BoxLayout(contentPane, BoxLayout.Y_AXIS));
          bidOfferScroll.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);
          bidOfferScroll.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
          bidOfferScroll.setPreferredSize(new Dimension(PREF_WIDTH,PREF_HEIGHT));
          System.err.println("Max: " + bidOfferScroll.getVerticalScrollBar().getMaximum());
          System.err.println("Min: " + bidOfferScroll.getVerticalScrollBar().getMinimum());
          System.err.println("Extent: " + bidOfferScroll.getVerticalScrollBar().getVisibleAmount());
          System.err.println("Value: " + bidOfferScroll.getVerticalScrollBar().getValue());
          bidOfferScroll.getVerticalScrollBar().setValueIsAdjusting(true);
          bidOfferScroll.getVerticalScrollBar().setValue(50);
          System.err.println("Value: " + bidOfferScroll.getVerticalScrollBar().getValue());
          System.err.println("Model: " + bidOfferScroll.getVerticalScrollBar().getModel());          
                    bidOfferScroll.getVerticalScrollBar().getMaximum()-
                    bidOfferScroll.getVerticalScrollBar().getMinimum())/2);*/
          topPanel.setLayout(new FlowLayout(FlowLayout.LEFT));
          topPanel.add(instList);
          instList.addActionListener(this);
          bidOffer.getTableHeader().setFont(new Font(null, Font.BOLD, 12));
          bidOffer.setAlignmentX(JTable.CENTER_ALIGNMENT);
          bidOffer.setModel(dm);
          bidOffer.getColumnModel().getColumn(0).setPreferredWidth(40);
          bidOffer.getColumnModel().getColumn(1).setPreferredWidth(60);
          bidOffer.getColumnModel().getColumn(2).setPreferredWidth(60);
          bidOffer.getColumnModel().getColumn(3).setPreferredWidth(40);               
          bidOffer.setRowHeight(ROW_HEIGHT);
          // Set table renderer
          for(int i = 0; i < bidOffer.getColumnCount(); i++){
               tc = bidOffer.getColumnModel().getColumn(i);
               tc.setCellRenderer(new CustomTableCellRenderer());
          contentPane.add(topPanel);
          contentPane.add(bidOfferScroll);
          JFrame.setDefaultLookAndFeelDecorated(true);
          this.setContentPane(contentPane);
          this.pack();
          this.setVisible(true);
     public void actionPerformed (ActionEvent e){
          JComboBox cb = (JComboBox)e.getSource();
          String selectedItem = (String)cb.getSelectedItem();
          updateSelectedInst(selectedItem);
     public void windowActivated(WindowEvent arg0) {
          // TODO Auto-generated method stub
     public void windowClosed(WindowEvent arg0) {
          // TODO Auto-generated method stub
     public void windowClosing(WindowEvent arg0) {
          // TODO Auto-generated method stub
          this.setVisible(false);
          this.dispose();
          System.exit(0);
     public void windowDeactivated(WindowEvent e) {
          // TODO Auto-generated method stub
     public void windowDeiconified(WindowEvent e) {
          // TODO Auto-generated method stub
     public void windowIconified(WindowEvent e) {
          // TODO Auto-generated method stub
     public void windowOpened(WindowEvent e) {
          // TODO Auto-generated method stub
     // Perform all updates necessary when new instrument is selected
     private void updateSelectedInst(String inst){
          this.setTitle(inst);
     class CustomTableCellRenderer extends DefaultTableCellRenderer{
          public Component getTableCellRendererComponent(JTable table,
                    Object value, boolean isSelected, boolean hasFocus,
                    int row, int column){
               Component cell = super.getTableCellRendererComponent(table,
                                   value, isSelected, hasFocus, row, column);
               if (column == BID_COL){
                    cell.setBackground(Color.red);
               else if (column == OFFER_COL){
                    cell.setBackground(Color.blue);
               //cell.setFont(f)
               return cell;
     public static void main(String args[]){
          Vector<String> tempVector = new Vector<String>();
          tempVector.add("item1");
          tempVector.add("item2");
          MarketBook marketBook1 = new MarketBook("mkbk1", tempVector);
}

Similar Messages

  • How to set the extra component to horizontal scrollbar position

    How to set the component to position of horizontal scrollbar , that position contain two component horizontal scrollbar and any component (JButton , JLabel ) like that.. Ms-Word scrollbar ,
    Like that bellow fig.
    <!--[if !mso]>
    <style>
    v\:* {behavior:url(#default#VML);}
    o\:* {behavior:url(#default#VML);}
    w\:* {behavior:url(#default#VML);}
    .shape {behavior:url(#default#VML);}
    </style>
    <![endif]--><!--[if gte mso 9]><xml>
    <w:WordDocument>
    <w:View>Normal</w:View>
    <w:Zoom>0</w:Zoom>
    <w:PunctuationKerning/>
    <w:ValidateAgainstSchemas/>
    <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
    <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
    <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
    <w:Compatibility>
    <w:BreakWrappedTables/>
    <w:SnapToGridInCell/>
    <w:WrapTextWithPunct/>
    <w:UseAsianBreakRules/>
    <w:DontGrowAutofit/>
    </w:Compatibility>
    <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
    </w:WordDocument>
    </xml><![endif]--><!--[if gte mso 9]><xml>
    <w:LatentStyles DefLockedState="false" LatentStyleCount="156">
    </w:LatentStyles>
    </xml><![endif]-->
    <!--
    /* Style Definitions */
    p.MsoNormal, li.MsoNormal, div.MsoNormal
    {mso-style-parent:"";
    margin:0in;
    margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:12.0pt;
    font-family:"Times New Roman";
    mso-fareast-font-family:"Times New Roman";}
    @page Section1
    {size:8.5in 11.0in;
    margin:1.0in 1.25in 1.0in 1.25in;
    mso-header-margin:.5in;
    mso-footer-margin:.5in;
    mso-paper-source:0;}
    div.Section1
    {page:Section1;}
    -->
    <!--[if gte mso 10]>
    <style>
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:10.0pt;
    font-family:"Times New Roman";
    mso-ansi-language:#0400;
    mso-fareast-language:#0400;
    mso-bidi-language:#0400;}
    </style>
    <![endif]-->{font:'Times New Roman'}{size:12pt}<!--[if gte vml 1]><v:shapetype id="_x0000_t75"
    coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe"
    filled="f" stroked="f">
    <v:stroke joinstyle="miter"/>
    <v:formulas>
    <v:f eqn="if lineDrawn pixelLineWidth 0"/>
    <v:f eqn="sum @0 1 0"/>
    <v:f eqn="sum 0 0 @1"/>
    <v:f eqn="prod @2 1 2"/>
    <v:f eqn="prod @3 21600 pixelWidth"/>
    <v:f eqn="prod @3 21600 pixelHeight"/>
    <v:f eqn="sum @0 0 1"/>
    <v:f eqn="prod @6 1 2"/>
    <v:f eqn="prod @7 21600 pixelWidth"/>
    <v:f eqn="sum @8 21600 0"/>
    <v:f eqn="prod @7 21600 pixelHeight"/>
    <v:f eqn="sum @10 21600 0"/>
    </v:formulas>
    <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
    <o:lock v:ext="edit" aspectratio="t"/>
    </v:shapetype><v:shape id="_x0000_i1025" type="#_x0000_t75" style='width:453pt;
    height:26.25pt'>
    <v:imagedata src="file:///C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\msohtml1\04\clip_image001.png"
    o:title=""/>
    </v:shape><![endif]--><!--[if !vml]--><img src="file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/04/clip_image002.jpg" alt="" width="485" height="27" /><!--[endif]-->{size}{font}
    How to design ?

    pradeep.rajadurai wrote:
    I want set the JTable as a background of jframe or jinternalframe , how it is possible One way that may work, you can always extract the image from a rendered JTable and then paint the same image into the JPanel that holds your components via it's paintComponent method, then added the JPanel to the app's contentPane.
    give me simple pgmIs English your second language? Because if so, please understand that this demand can be taken by some as rude.

  • Setting the default resolution for sap logon

    Hi, ALL!
    I'm terribly tired of SAP interface. It's so uncomfortable for work.
    For example maybe you know khow to set the default resolution for sap logon to make it use its widgets of proper size. e.g. when i work with transfer rules, it has only half of screen for useful area (i use 1400x1050), and right part is just empty, but on the left very many small fields and you should constantly use scrollbars (i think you know it well). Maybe there is system customizing for this purpose.

    Hello Dmitry,
    There is no customizing for this - atleast to my knowledge.
    However, you should have to redo the settings again and again unless you are continuously re-sizing the main window.
    Cheers
    Aneesh

  • Unable to 'set the default source system' to Install Business Content

    Hi,
    Maars here. This is my first post hoping that in future ones I'll also be lending a helping hand.
    I am trying to 'Install Business Content' under the BUSINESS CONTENT section in txn RSA1. I am doing this after 'Transfer Data Sources' in R/3 and I can now see all the data sources (under the application component hierarchy) for the source system. But I am not able to see the Info Objects in the Business Content.
    When I try to set R/3 as the default source system (got this screen after clicking a icon in the standard tool bar), BW is not saving the settings ie., I set the R/3 as the default and then click on OK. If I go back to the same screen again, I find that my settings were NOT saved.
    Could you please help me out?
    Thank you.

    Hi,
    It seems to be a bug in version 3.5.
    Do like this:
    After you open the screen to <i>choose the dafault source system</i>
    Clcik on 3rd button(F6) available in the bottom of the scrreen.
    And then select teh tick mark for required system.
    And then click on Continue button
    You have do this step before you drop the cube to right side of the cube.
    Ok, even after all these steps , if you reopen the screen you would not see Tick mark u have done just before. DONOT WORRY ABT it.
    Drag and drop required cube with dat flow before.
    Now you can see the Transfer rules with selected Source system only in the collected Objects.
    With rgds,
    Anil Kumar Sharma .P

  • Set the Finder's Search Box default to current folder? How?

    How do I set the the Finder's default Search Box parameters to be the current folder that I'm in, instead of searching the whole flamin' computer? (I have to quickly click on the folder name) And also instead of the default being 'Contents', how can I set it to be 'File Name'? It would speed up so many of my searches. I could still click on 'This Mac' to get that, and 'Contents' likewise.
    Tks in advance
    Drew

    I complitely agree and very very frustrated with that problem too just wrote this to feedback system:
    The problem that many people find is that when you have a finder windows open and that you browse a file like "Appplication" then due to the large number of application you use the search bar by taping the application name.
    That's where the problem come from.
    Once you tape the application name it start searching in the all computer ! instated of in the file
    The second problem is that he is searching the content and it will be better to have as default by file name.
    If i wanted to do that kind of search i will use the spolight button next to the clock and people want that search bar in finder to be searching in the folder you are in not all computer.
    Last problem is that we don't have a custom option in spotlight preference or finder preference.
    I would recommend to have that default search in finder change to search in file ONLY and to add Spotlight option in the Finder Preference for people to be able of customizing it.
    When you use that search bar everyday many times a day it becomes very very frustrating.

  • SRM 4.0- How to set the default values for product type (01) only for SC

    The radio button “Service” should not be visible.
    Also for search help (e.g. search for internal products) where a search should only be possible for product type 01 (goods). The system should not display the product type and internally always search for goods only.
    How to set the default values for product type (01) only for SC
    We needs to use Search help BBPH_PRODUCT which having parameter PRODUCT_TYPE
    Here we can set defalut value 01 but it is not correct one since same search help is using several places.
    We need to limit the search help results only for SC.
    Kindly help out me ASAP.

    The easiest way to set defautl values is to edit the batch class.
    Goto the characteiristic and go to update values.
    In here you probably have something like 0 - 100 as a spec range.
    On the next line enter the default value within this range.  At the end of the line, click in the box in the column labelled "D".  This indicates the defautl value for the characteristic.
    If you need to you can do this in the material classification view as well.
    Just to be clear, these values will only show up in the batch record.  You can not have defautl values in resutls recording screens.
    FF

  • Can I set the default save location in text edit to dropbox?

    I'm happy with dropbox for now and want to set the default save folder to a dropbox folder but I cannot see how to do this.
    Can it be done? Or do I need a 3 party text editor?
    Thanks
    Tom

    You cannot. Because this option both takes much longer and reduces the quality of files, it has to be chosen specifically.
    In any case, when you save a PDF file from Word. this process does not involve Acrobat or Adobe software in any way.

  • How do I set the default welcome page for PUBLIC user

    gurus,
    i'm using -
    Oracle 9i Database
    Oracle 9ias Portal Release 2
    QUESTION => how do I set the default welcome page for the PUBLIC user.
    i did the following to achieve this -
    1. logged into portal
    2. clicked on builder
    3. clicked on administer tab
    4. selected PUBLIC user in the Portal User Profile portlet
    5. went to the preferences tab
    6. in the default home page selected a custom page group
    7. logged out of portal
    8. open a new browsere session
    9. type the portal URL and i get the login page ....??
    i'm unable to understand this behavior ... shouldn't i be getting the page group that i set for the PUBLIC user in step 6 above ....
    the second QUESTION is => when the user logs out he/she should see the PUBLIC page set in step 6 above ... but, instead the user sees a page that is as follows -
    Partner Application Name Logout Status [Logout Status]
    Oracle Portal (portal) logout status
    The SSO Server (orasso) checkmark
    buzz.resva.trw.com:7778 checkmark
    infrastructure.happy.resva.trw.com checkmark
    portal1.buzz.resva.trw.com checkmark
    portal2.sylvester.resva.trw.com checkmark
    sylvester.resva.trw.com:7778 checkmark
    so, how can i set the default page for the PUBLIC user and also a page when he user logs out.
    ideas anyone ....?
    thanx a bunch.
    hero

    Hi,
    The sequence of operation you are doing to set the home page for public users is correct. You are getting the login screen as the "custom page group" selected as "home page" has not been granted to public.
    Also, while logging-out, it is normal behaviour to get the screen where it shows the list of partner applications from where user has been logged-out. When you click on "Return" button, you will get to the "home page" set above.
    Hope it clarifies the things.
    Regards,
    Ved

  • How do I set the default page when I select "+" for a new tab? Right now it defaults to Yahoo search and I want to set it to my Speed Dial page. I did have the default page set to Speed Dial but I can't find anywhere how I did it in the past.

    You can set the homepage for opening tabs, but I can't find the setting for designating what page opens when I hit the + button on tabs.
    This is the page that loads:
    http://search.yahoo.com/?fr=freeze&type=W3i_NA,132,3_6,Tab%20Search,20100937,6693,0,16,0
    How did Yahoo embed this in the Tab settings?

    Firefox '''does not''' come with a setting for a page that opens in a new Tab, the default installation always opens a blank page when you open a new Tab. Many extensions include a feature to open their choice of a webpage when you open a new tab, as does the Speed Dial extension which uses a "local page" internal to Firefox.
    You need to figure out which extension has taken over that preference that Speed Dial needs to use. You didn't bother providing a Troubleshooting Information... listing as requested when you asked this question, but I can guess your problem is related wither a Yahoo extension or a Conduit / OurToolbar extension - as there is a plugin listed = Package Installer & Install Conduit.
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • How do I set the default Hero image in a Muse slideshow widget when using Free Form Thumbnails?

    Hello,
    I am trying to find out how to set the default Hero image when using a Muse slideshow widget and in the Layout section I have the "Free Form Thumbnails"
    box checked.
    In other words, when the page loads I want to define which image displays as the first Hero image.
    If I do not select the "Free Form Thumbnails" option, the top left Thumbnail image always displays first. This is fine.
    But when I select the Free Form Thumbnails" checkbox I don't know how to define which image shows first as the Hero image.
    I have a short video at this link where I illustrate the question:
    http://amson.org/misc/default-hero-image-1.mp4
    I have added a WMV video file at the link below:
    http://amson.org/misc/default-hero-image-1.wmv
    Okay… I think I've worked out how to do it!
    [1] First have the "Free Form Thumbnails" box UNCHECKED.
    [2] Organize the Thumbnails and place the image that you want to be the first Hero image when the page loads in the top left corner of the Thumbnails group.
    [3] When you "Preview Site In Browser" the Thumbnail image in the top left corner will always display as the first Hero image.
    [4] If you want "Free Form Thumbnails" go ahead now and SELECT that checkbox.
    [5] Whichever image was in the top left of the Thumbnail group before you checked "Free Form Thumbnails" will still show up as the first Hero image when the page loads, regardless of where that thumbnail image is located within the Thumbnail images group.
    Thanks very much.
    Chris.

    Hi,
    The sequence of operation you are doing to set the home page for public users is correct. You are getting the login screen as the "custom page group" selected as "home page" has not been granted to public.
    Also, while logging-out, it is normal behaviour to get the screen where it shows the list of partner applications from where user has been logged-out. When you click on "Return" button, you will get to the "home page" set above.
    Hope it clarifies the things.
    Regards,
    Ved

  • How do I set the Page size default in Adobe Reader using Window 8?

    I need to set the page size everytime I go to print from my Adobe Reader in my windows 8. Is there a way to set the page I want letter (8.5 by 11) as a default? So I do not have to do this everytime I print something?

    I can't help but wonder why Adobe doesn't respond to this - at this point there are 464 views of this item and still no answer. I have the same problem and it's a big irritation to have to set the duplex mode everytime I want to print!

  • Is there a way to set the default level of keyframe easing?

    I'm currently using the graph editor to smooth my ease-in / ease-out keyframes with 100% influence.  I'm having to adjust the easing of each keyframe individually. 
    Is there a way to set the default level to 100%, so that I can just select "Easy Ease In" and have it apply without having to go into the graph editor?  It would save a lot of time.

    No, there's not a way to do that, but it's a good feature request. You can submit feature requests here:
    http://www.adobe.com/go/wish

  • How can I set the default line height?

    Greetings,
    I have a report that displays observed behavior in a list format like the one below:
    Behavior Observed:   
        Withdrawn           
        Happy
        Sad
        angry
    There are 5 responses as to the severity of the behavior or it is left blank if the behavior was within normal limits.
    So the output would look like this:  
    Behavior Observed:   
        Withdrawn            (mild)
        Happy
        Sad                      (moderate)
        angry
    The problem is that when this report was designed the details sections were not uniformy formatted and the spacing between data elements is hard to follow from the label to the data field.  I tried to set the details to be uniform by selecting "Arrange Lines",  however when I do this, the data is displayed too close horizontally.  So my question is how do I set the default line height for each field so that they are uniform in distance from each other but not too close due to the font height?
    Does this make sense?
    Thank you,
    Kevin

    I'm confused... How are you associating line height with horizontal field spacing???
    If you have this...
    Behavior Observed:     Severity:
    Withdrawn          (mild)
    Happy
    Sad               (moderate)
    angry
    But want it to look like this...
    Behavior Observed:
    Withdrawn (mild)
    Happy
    Sad (moderate)
    angry
    all you have to do is create a concatenation formula. Something like this...
    {TableName.BehaviorObserved} & " (" & {TableName.Severity} &")"
    Sorry if I've misunderstood what you are trying to do.
    Jason

  • How to set the default value of a LOV that is found in a view criteria

    HI,
    I need to set the default value of an LOV that is found in a view criteria. I tried to set a groovy expression but unfortunately it wasn't read. i also tried to bind the LOV to a bind variable and set the value of the bind variable in the constructor of my backing bean but unfortunately the default value appeared the second time i entered the screen and not on page load.
    Can anyone advise where can i set the default value,
    Thanks

    if you want some default value in LOV. you go to edit list of value wizard-> UI hint->include no selection Item checkbox -checked.use labeled item first of list- and beside that put the label. but when you try to get value, it will show null.but you can manipulate in ur java , if it default value

  • How do I set the default value in a PPD. (xerox accounting)

    I'm trying to modify a PPD for a xerox machine to set an accounting id into the default printing.
    I found the following in the PPD
    *XRFeature XRAccountingUserID: "string 0 20 Accounting"
    *XRFeature XRAccountingAccountID: "string 0 20 Accounting"
    *OpenUI *XRAccountingSystem/Accounting System: PickOne
    *OrderDependency: 10 AnySetup *XRAccountingSystem
    *DefaultXRAccountingSystem: PickOne
    *XRAccountingSystem None/None: ""
    *XRAccountingSystem XSA/Xerox Standard Accounting or Auditron: ""
    *XRAccountingSystem XNA/Xerox Network Accounting: ""
    *CloseUI: *XRAccountingSystem
    *OpenUI *XRAccountingPrompt/Accounting Prompt: PickOne
    *OrderDependency: 10 AnySetup *XRAccountingPrompt
    *DefaultXRAccountingPrompt: Prompt
    *XRAccountingPrompt Prompt/Always Prompt: ""
    *XRAccountingPrompt DoNotPrompt/Do Not Prompt: ""
    *XRAccountingPrompt PromptFax/Only Prompt for Fax: ""
    *XRAccountingPrompt PromptColor/Only Prompt for Color: ""
    *XRAccountingPrompt PromptColorFax/Only Prompt For Color and Fax: ""
    *CloseUI: *XRAccountingPrompt
    *OpenUI *XRAccountingAccountType/XRAccountingAccountType: PickOne
    *OrderDependency: 10 AnySetup *XRAccountingAccountType
    *DefaultXRAccountingAccountType: Default
    *XRAccountingAccountType Default/Default Group Account: ""
    *XRAccountingAccountType General/General Account: ""
    *XRAccountingAccountType Group/Group Account: ""
    *CloseUI: *XRAccountingAccountType
    *OpenUI *XRAccountingMaskUserID/XRAccountingMaskUserID: PickOne
    *OrderDependency: 10 AnySetup *XRAccountingMaskUserID
    *DefaultXRAccountingMaskUserID: True
    *XRAccountingMaskUserID False/Disabled: ""
    *XRAccountingMaskUserID True/Enabled: ""
    *CloseUI: *XRAccountingMaskUserID
    *OpenUI *XRAccountingMaskAccountID/XRAccountingMaskAccountID: PickOne
    *OrderDependency: 10 AnySetup *XRAccountingMaskAccountID
    *DefaultXRAccountingMaskAccountID: True
    *XRAccountingMaskAccountID False/Disabled: ""
    *XRAccountingMaskAccountID True/Enabled: ""
    *CloseUI: *XRAccountingMaskAccountID
    *OpenUI *XRAccountingAuxInterface/XRAccountingAuxInterface: PickOne
    *OrderDependency: 10 AnySetup *XRAccountingAuxInterface
    *DefaultXRAccountingAuxInterface: False
    *XRAccountingAuxInterface False/Disabled: ""
    *XRAccountingAuxInterface True/Enabled: ""
    *CloseUI: *XRAccountingAuxInterface
    *OpenUI *XRAccountingAuxEnterAtDevice/XRAccountingAuxEnterAtDevice: PickOne
    *OrderDependency: 10 AnySetup *XRAccountingAuxEnterAtDevice
    *DefaultXRAccountingAuxEnterAtDevice: True
    *XRAccountingAuxEnterAtDevice False/Disabled: ""
    *XRAccountingAuxEnterAtDevice True/Enabled: ""
    *CloseUI: *XRAccountingAuxEnterAtDevice
    I've figured out I can change
    "*DefaultXRAccountingSystem: PickOne" to "*DefaultXRAccountingSystem: XSA"
    enabling  accounting.
    then I change
    "*DefaultXRAccountingPrompt: Prompt" to "*DefaultXRAccountingPrompt: DoNotPrompt"
    so I'm not prompted to enter the accounting code on print
    what I haven't figure out is how to set the value of the accounting user id.
    I suspect that
    *XRFeature XRAccountingUserID: "string 0 20 Accounting"
    is declaring the accounting user id, and might be a place to set the accounting ID. But i'm not sure how to set it.
    or maybe it should be set at
    *XRAccountingSystem XSA/Xerox Standard Accounting or Auditron: "" ?
    any suggestions? ideas?

    Hi TeenTitan
    I may have a problem simular to yours with a KM bizhub C451 with accounting turned on from Mac OX 10.6 + 10.7 + 10.8 machines.
    On some machines we can go into printer settings just to check that all user/password settings are ok (without changing anything) and then we can print one job. It looks like the system forgets the user name and password unless we go into printer settings each time we want to print.
    I was thinking of putting in the user/password in the PPD just like you.
    I was wondering if you ever found a solution ?
    Link https://discussions.apple.com/message/20371136?ac_cid=tw123456#20371136?ac_cid=t w123456

Maybe you are looking for