Tab problem in println

Hello,
I have probs in use th tab: for example in this below the first print, print out a larger tab than the others
     public static void main(String[] args) {
          String n = "hello" + "\t" + "culo";
          Vector<String> name = new Vector();
          name.add("Micheles");
          name.add("Mark");
          name.add("gitn");
          //name.add("gitnssssssssssssss");          
          for (String s : name) {
               System.out.println(s + '\t' + "hello" );
     }In other cases, I noticed that it seems that "println" try to do a sort of alignment after the '\t' element like this:
Mark     1111
Carl     1111
EEEEEEE  1111
EEEEEEE  1111Do anybody see this problem?
thanks,
Edited by: mickey0 on May 19, 2009 3:44 PM
Edited by: mickey0 on May 19, 2009 3:45 PM
Edited by: mickey0 on May 19, 2009 3:45 PM
Edited by: mickey0 on May 19, 2009 3:45 PM
Edited by: mickey0 on May 19, 2009 3:46 PM
Edited by: mickey0 on May 19, 2009 3:46 PM
Edited by: mickey0 on May 19, 2009 3:47 PM
Edited by: mickey0 on May 19, 2009 3:47 PM

[http://forums.sun.com/thread.jspa?threadID=5387196&messageID=10714506#10714506|http://forums.sun.com/thread.jspa?threadID=5387196&messageID=10714506#10714506]
I provided help in your other thread on this topic. If it didn't help then why didn't you post further questions there instead of starting yet another thread?????

Similar Messages

  • Very Urgent Tab Problem

    Hi to All...
    I Designed the PDF forms using Adobe Acrobat Live Cycle Designer 7.0.
    but i am facing tab problem.
    for example: if i entered in the some text boxes then if i want to go back to previous text boxex means curser will go to the some other text boxes.
    and also if open in internet Explorer tab issue is more.
    is there any property we need to set?
    please guide me its very urgent.
    thanks in Advance...
    chalmal Seetaram

    To set the Tab order choose: 'Tab Order' under 'View' menu and read through the Tips.... it is easy.
    Good Luck,
    SekharN

  • Alignment with Tabs Problem

    Hi friends,
    i have an CRM application where the item alignment and the tabs is creating a problem for me.
    Instead of me to elaborate, i can show you in my page in apex.oracle.com, so that you can understand my problem clearly in the page itself. These are the login credentials
    http://apex.oracle.com/pls/apex
    Workspace: mini_ws
    username: [email protected]
    password: mini4i
    Over there in the application 45387(application name: Customer Relationship Mgmt)
    Under Page 2(page name: Accounts). U can see that the i couldn't able to align the following three items to the right side position of the region along with other items.
    <li> sic code
    <li> shipping country
    <li> upsell opportunity
    i dont know why it is not arranging like the other items(as the other items are arranged properly).
    Another Problem is the tab problem in that page. I have following two tabs
    <li>Accounts(will navigate to the page 2)
    <li>Contacts(will navigate to the page1)
    There is no any problem with the tab "Accounts" as it is correctly navigating to the page 2. But the problem persist with the "Contacts" tab.
    As the "Contacts" tab is navigating to the page 1, but the"Accounts" tab is not visible in the page 1 and it is entirely getting disappearing. i dont know why it is happening.
    Generally for the tabs, if we navigate to the corresponding page by pressing the corresponding tabs means, the other tab has to be visible inorder to navigate to the other page.
    But in my case, if i pressed the "Contacts" tab means the "Accounts" tab is getting disappearing. I think that you can able to get my problem clearly in the example.
    What is the tab issue over here and also about the alignment issue.
    Thanks for your support friends.
    Regards,
    Mini

    Mini wrote:
    Hi friends,
    i have an CRM application where the item alignment and the tabs is creating a problem for me.
    Instead of me to elaborate, i can show you in my page in apex.oracle.com, so that you can understand my problem clearly in the page itself. These are the login credentials
    http://apex.oracle.com/pls/apex
    Workspace: mini_ws
    username: [email protected]
    password: mini4i
    Over there in the application 45387(application name: Customer Relationship Mgmt)Thank you for doing so. It makes troubleshooting so much easier.
    Under Page 2(page name: Accounts). U can see that the i couldn't able to align the following three items to the right side position of the region along with other items.
    <li> sic code
    <li> shipping country
    <li> upsell opportunity
    i dont know why it is not arranging like the other items(as the other items are arranged properly).The first item on the other rows has <tt>colspan="4"</tt> set.
    Another Problem is the tab problem in that page. I have following two tabs
    <li>Accounts(will navigate to the page 2)
    <li>Contacts(will navigate to the page1)
    There is no any problem with the tab "Accounts" as it is correctly navigating to the page 2. But the problem persist with the "Contacts" tab.
    As the "Contacts" tab is navigating to the page 1, but the"Accounts" tab is not visible in the page 1 and it is entirely getting disappearing. i dont know why it is happening.
    Generally for the tabs, if we navigate to the corresponding page by pressing the corresponding tabs means, the other tab has to be visible inorder to navigate to the other page.
    But in my case, if i pressed the "Contacts" tab means the "Accounts" tab is getting disappearing. I think that you can able to get my problem clearly in the example.
    What is the tab issue over here and also about the alignment issue.No idea. Tabs are awful so I never use them.

  • TOC (table of contents) Formatting/Leader Tab Problems

    BACKGROUND
    I have found it impossible to format TOCs with leader tabs as I've seen the procedure outlined in numerous forum posts, books, and elswehere. I am an intermediate FrameMaker user running FM 9 on Windows XP Pro. I run the same setup on a home and office machine with the same problem.
    I am in the process of migrating very large volumes of our company's documentation from LaTek to FM and this issue is proving to be insurmountable.I need to have complete control over this process, instead of "making do" with the default TOC.
    I have spent three days studying every nuance of the issue, which usually leads me to some insight or pattern that lets me solve the problem, or at least share some clue on the forums. However, in this case, FM either doesn't work as its supposed to or it implements my changes in a seemingly arbitrary manner. So I'm not sure if this is a bug or a user error. I've also experienced the occasional crash of FM during all this work, oftentimes this is preceded by the Paragraph Designer window freezing up and refusing to change views within the window (i.e. basic, default font, etc.).
    THE PROBLEM
    More specifically, I've learned to manage general formatting with the building blocks on the "reference page", but the leader tabs I use for the page numbers almost never propogate, unless I use the sample TOC included with FM.
    I am certain they are properly formatted, I've even copied examples directly from files that I know work (FM sample files).
    When I implement the process manually, I insert the tab between the building blocks (no spaces), set a right flush tab, double click and choose tab leader option. Then I go to "body page" view, save the document, and regenerate the TOC. Usually nothing happens. Ocassionally, after regenerating several times or creating a fresh TOC, some of the changes magically propogate.
    I have even tried importing the format of another TOC, which only seems to work randomly. Mostly not.
    Any help is appreciated.
    Thanks,
    Douglas

    Thanks for your quick responses, as well as your other suggestions for my project.
    I am running FM 9.0p230. I tried upgrading to 9.0.3 when I began encountering this problem, but received an error message telling me I was running the wrong version of FM. If any one is familiar with this error message and can mention the fix before I delive into that problem, it is also appreciated.
    I have attached the TOC. I'm not sure how/if this can be used to help me troubleshoot, so please let me know. I am new to the forums and the development side of FM.
    I did "update all" on the paragraphs tags in question. If you look in the body view of this page with text symbols turned on, you can see the symbols for the second tab stops I have placed between the text and page number. That informatoin also appears in the Paragraph Designer. Both of those things add to my confusion on this matter, because that would seem to indicate I have globally applied the paragraph tags correctly, right?
    If you go to the reference page, you will see my treatment of the building blocks.
    Thanks again in advance for help,
    Douglas

  • Partial payment tab problem when clearing two open items in vendor account

    Dear All,
    I have the problem with partial payment procedure.
    As SAP is presenting the process, partial payment should work as follows (i.e. with vendor):
    1. Incoming invoice is posted -> Credit -100
    2. Credit note is posted  -> Debit +20
    3. Payment (without clearing) is posted to vendor account -> Debit +50
    I'll run transaction F-44 and go to tab "Partial payment".
    I see 3 items (as above).
    I mark Item -100 and +20
    I double click in filed next to -100 and it changes to -20
    An now it should make no posting but only assignemet of one item to another.
    But in my case, if I click "save" icon, it makes postings Debit 20 and Credit -20 on vendor account.
    Is there any possibility that such clearing will not generate any posting but just make assignement of one item to another. Or maybe there is something wrongly configured in the system. At the moment the partial payment makes some kind of residual items.
    Thanks in advance for replay.
    Best regards
    Greg

    Hello,
    Yes, it's right, whenever we clear vendor or custmoer account, the system creates document, but as I remeber from other instalations, the document had header but there was no postings.
    It case described, the system creates posting:
    40       Vendor      20 EUR
    50       Vendor      20 EUR
    This is strange for me. As ther should be clearing document but with no postings.
    Have you got any idea how to configure the system, so partial payment tab in clearing transactions creates clearing document but with no phisical postings.
    Best regards
    Greg

  • Multiple tab problem in Fire Fox, URL pane is not changing

    Open multiple tabs
    the url shown in url pane does'nt change but stays which has entered latest one.
    the url pane text wont change even when you swap to another tab.

    A couple of possible causes:
    First check to see if an add-on is causing this, add-ons can cause problems with the location bar not updating. For details of how to check this see https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    The second possible cause is a problem with the file that stores details of bookmarks and browsing history. I don't think this will be the cause in your case, as if there is a problem with that file you will normally get multiple problems. For details on this see http://kb.mozillazine.org/Locked_or_damaged_places.sqlite

  • Combobox in jtable two tab problem

    Hi all,
    If i am using combobox for one of the columns of jtable with custom editor and renderer, it needs two tab for navigation between the cells.
    How can i make it as 'one tab navigation'. Even i tried with 'isManagingfocus() return true' but...no effect.
    thanx in advance.
    S.A.Radha.

    here I'm giving a simple sample code. Refer this..
    import javax.swing.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    import java.awt.*;
    public class Class1 extends JFrame {
    JScrollPane jScrollPane1 = new JScrollPane();
    JTable editableTable1 = new JTable(3, 3);     
    public Class1() {
    try {          
    JComboBox c = new JComboBox();
    c.setEditable(true);
    c.addItem("a");
    c.addItem("b");
    DefaultCellEditor cellEditor = new DefaultCellEditor(c);
    TableColumn tc = editableTable1.getColumnModel().getColumn(0);
    tc.setCellEditor(cellEditor);
    this.getContentPane().setLayout(null);
    jScrollPane1.setBounds(new Rectangle(25, 19, 330, 180));
    this.getContentPane().add(jScrollPane1, null);
    jScrollPane1.getViewport().add(editableTable1, null);
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent we) {
    System.exit(0);
    } catch(Exception e) {
    System.out.println("Exception in Class1:"+e);
    public static void main(String[] args) {
    Class1 class1 = new Class1();
    class1.setSize(400, 400);
    class1.setVisible(true);

  • Java plug-in 1.4.1 proxy configuration issue causes JTextField TAB problems

    I have an applet that has multiple JTextFields in it. I recently updated my Java plug-in to version 1.4.1, and now using TAB to navigate among text fields does not always work when I first bring up a browser and load the applet.
    I've found, however, that if I open the Java Console and hit "p" (reload proxy configuration), and then reload my applet (hit Refresh/Reload on my browser), the Tab key works as expected. I did not have this issue with releases prior to 1.4.1.
    Any clue on how I can ensure proper proxy configuration upon initial instantiation of the browser? I've seen the problem in both IE 6.0 and Netscape 7.0.
    Note that the reloading of the proxy configuration only appears to be necessary once per browser session.

    The navigation isn't working. I click in the first text field to give the initial field focus. I then hit TAB and nothing happens. I have a key listener set up for the ENTER key, and this is also supposed to navigate to the next field via:
    ((JTextField)evt.getSource()).transferFocus();
    To see if there was a problem with my build environment or threads in my application, I came up with the following dummy applet:
    import java.awt.BorderLayout;
    import javax.swing.BoxLayout;
    import javax.swing.JApplet;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    public class TestApplet extends JApplet {
    public void init() {
    super.init();
    public void start() {
    JPanel myPanel = new JPanel();
    myPanel.setLayout(new BoxLayout(myPanel, BoxLayout.Y_AXIS));
    JTextField textField1 = new JTextField("Text Field 1");
    myPanel.add(textField1);
    JTextField textField2 = new JTextField("Text Field 2");
    myPanel.add(textField2);
    JTextField textField3 = new JTextField("Text Field 3");
    myPanel.add(textField3);
    getContentPane().add(BorderLayout.CENTER, myPanel);
    public void stop() {
    super.stop();
    I then compiled this applet using the following:
    javac TestApplet.java
    I then put together the following HTML file:
    <HTML>
    <HEAD>
    <TITLE>Test Applet</TITLE>
    </HEAD>
    <BODY MARGINWIDTH="0" MARGINHEIGHT="0" BGCOLOR="white">
    <APPLET
    CODE=TestApplet.class
    WIDTH=635
    HEIGHT=500
    ALIGN=left
    VSPACE=10
    HSPACE=10
    >
    </APPLET>
    </BODY>
    </HTML>
    The results are the same. I am not able to navigate using the TAB key until I bring up the Java console and then close it again. I would think that if this was a bug in 1.4.1_01, I would have seen it all over the forums. Any help would be greatly appreciated.

  • Item level security, workflow and tab problems

    was wondering if someone could help us out with some problems we are having. We need to up and running over the next two days so anyone who could get back to us pretty quickly would be greatly appreciated.
    We are actually having a couple of issues which all revolve around three
    groups we have created (for simplicity we have only attached one user to each group). Here are the steps we took:
    Problems adding content:
    a) Added the three groups to the page group and gave them view access.
    b) Turned on approvals and set group3 as the approver.
    c) Added the three groups to the page and gave them view access.
    d) In the page properties, I enabled item level security.
    e) Added an item content area to the page.
    f) Added three pieces of simple content
    g) For content item1 I granted granted full access to group1(Own, manage, view), for content item 2 I granted full access to group2, etc.
    h) WHen I log on as a user in group1 I only see content item1. HOwever, when I edit the page I find I cannot add any items as user1.
    i) I went back to the page properties and changed the access of all three groups to "manage items with approval" but let the item level security as it was.
    j) When I logged on as user1 I found I could see all items now when I should only have seen content item1. What the hell? Can anyone tell me what I did wrong?
    Problems with item level security on tabs:
    a) Repeat steps a) through d) above.
    b) Create a content region and add three tabs: Home, Work, Life.
    c) On the Work tab changed portlet region to item region.
    d) Added three items with security exactly as I did above.
    e) When I signed on as user1 I saw all three items when I only should have seen item1. What the hell?
    f) I monkeyed around with the secutiry at the tab level but it didn't seem to make much difference. ANyone have any ideas what is going on here?
    Thanks in advance.

    Does the library have versions enabled? Also are these logins occuring within word/excel etc?
    If there's multiple login prompts which occur even if entering valid credentials what does hitting escape (after the first prompt) achieve, does the document open anyway?
    There's a situation where Office will prompt for credentials if you open a document when you've only got read access but there's a version history (to which you don't have access). This is to allow you to enter more highly privelidged credentials if you
    want to.

  • Mass upload tab problem in c-folders

    when i am login from my user id in c-folders, it is not showing mass upload tab.
    can u help me , is there any problem in setting or what.
    plz let me know..
    thnaks & regards
    amit

    Yes Amit, it is a setting in cFolders
    Go to Settings --> General --> Special Functions
    Check Plug-In checkbox.
    Regards
    Reema
    pl appropriate points to all useful answers.

  • Arrange Document Tab Problem

    When I open 5 or 6 pictures from the bridge in Photoshop (CS4) to  open in Photoshop and I drop down the arrainge documents tab I can see about 1\2 of the commands to chose from (the bottom 1/2). I can't see the ones on the top of the tab, But when I move my mouse over the blank spot it shows in up in text, 2 up, 4 up, 5 up ect. How do I get them all to show like they should.

    This is a well-documented and much discussed problem with CS4.
    Make sure you have installed the 11.0.1 patch (check Help > About Photoshop)
    Make sure you video card drivers are updated from the manufacturer's site.
    If you have any 3rd party plug-ins try disabling or updating them.

  • Safari 5.0.3, open link in new tab problem

    I have a Mac 10.6.5.
    When I open safari it works fine, then if I right click on a link I see the options open in a new tab, or window (and many other options), when I click open link in a new tab it works, then in the new tab I have a problem: If I right click on a link I can't see anymore the option "open in a new tab", all I can see is, open link, open link in a new window, download linked file and copy link, if I click on open link in a new window it opens a blank tab :s.
    Also right click options are always limited in a new tab and, if I right click on a picture in the new tab I can't see the same options that are normally listed when I fist open a window.
    How can I fix it, is someone else having this problem?
    .

    Hi and welcome......
    Try troubleshooting the Safari .plist file.
    Quit Safari if it's open (Command + Q)
    Open a Finder window. Select your Home Folder in the Sidebar on the left. It has a small house icon. Then open the Library folder then the Preferences folder.
    Move the com.apple.Safari.plist file from the Preferences folder to the Desktop.
    Relaunch Safari. Now launch Safari. If Tabs work as they should, move that .plist file to the Trash.
    Carolyn

  • Tab Problems ... Look Very Weird

    Hi,
    I believe the program CosmoPod may have caused this but i cannot find anyone else that has had this issue.
    When clicking "Open Link in New Tab" or Command-Clicking a link a new tab is opened behind my tabs that are already open, like normal. BUT what happens is the new Tab (which i haven't viewed yet) is brighter and the display of it is distorted. It is harder to explain that to show you with this image (http://files.me.com/sgiglia/tlw99b).
    Thanks,
    Sal

    HI Sal,
    Perhaps you have other Safari unsupported third party add-ons causing the problem.
    Try the troubleshooting help here. Safari: Add-ons may cause Safari to unexpectedly quit or have performance issues
    Regarding Glims. Access the Glims pane in Safari/Preferences - Glims. Click: Tabs Misc. Deselect: Show Favicon on tab level.
    Relaunch Safari. See if that makes a difference.
    If not, try troubleshooting your Safari .plist file. Open a Finder window. Select your Home Folder in the Sidebar on the left. It has a small house icon. Then open the Library folder then the Preferences folder.
    Move the com.apple.Safari.plist file from the Preferences folder to the Desktop. Now launch Safari. If Safari functions as it should, them move the .plist file to the Trash.

  • Adobe Print tab Problem

    Hi
    I have a problem with my adobe acrobat pro 6, when i click print the print tab is very large.
    I have changed all the windows setting but only in adobe tabs i am getting this error.
    The screen resolution is 1280/1024 and OS is XPsp2
    Please suggest & help.
    Regards
    S.Sujith

    Yes I have checked the font setting and display settings also, but only if I give print the opening tab looks big.all other windows or tabs are ok
    Regards
    Sujith S

  • Same session in diffrent browser tab problem

    Hello;
    I am having a problem (might be browsers claim it a feature) that my application shares the same session if I use to access it from different tabs of a browser.
    I have googled but could not find out any work around for it.
    I want to restrict the user if he wants to access my application from another tab. Server identifies the user by session cookie generated by browser itself which kept same in all tabs. So is there any programmatic way that I be able to handle this situation. I want to catch the user at Filter level and redirect to a message page.
    Your comments...
    -Tahir
    Edited by: tahirakram on Jul 3, 2008 10:54 AM

    tahirakram wrote:
    Karanjit wrote:
    a) While displaying login page, check if the user has already logged in. If so, redirect the page to one that gets displayed when user successfully logs on avoiding mutiple logins.
    b) In login authenication process, add a logic to check whether another user has already logged in and display so in the screen.Dear Karanjit;If user want to make multiple logins by opening multiple ie browsers. Then in this case every time session id will be unique and I have no problem with this case.
    My issue is to implement such logic from where I can generate seprate session id from every tab/or landing user to a message page. <session id same in all tabs of a browser window>
    As I disussed above there is a solution in ASP.net aka sessionless cookies [http://msdn.microsoft.com/en-us/library/aa479314.aspx#cookieless_topic2|http://msdn.microsoft.com/en-us/library/aa479314.aspx#cookieless_topic2]
    You mean cookieless sessions. Cookieless sessions are not what you are asking. You can do the same here by setting the <Context> elements cookie attribute to false, and making sure you pass all URLs through response.encodeURL(String).
    This doesn't help your cause, though, because if a user presses a link on your page with the CTRL key down, a new tab opens with the same session tracking info. Or if the user copies the URL in one tab and pastes it into another tab you get the same session in multiple tabs.
    >
    Now the question is, How can I achieve sessionless cookies in java? And the approach will work same as ASP.net works.The approach that you point to does not address the issue at all. In fact it makes it easier to use the same session in multiple windows, not just multiple tabs.
    >
    thanks

Maybe you are looking for

  • Videos on a web page will no longer play when accessed via a 'home screen' bookmark

    iPad 2, iPad Mini iOS 8 I have saved certain web pages as bookmarks 'to the home screen' but since the iOS update when I open these pages and try to play an embedded video that is hosted on the website itself (as opposed to a YouTube type one) the vi

  • How do I upload photos from iphone to macbook

    How do I upload my photos from my iphone to iphoto on my mac book? They have been doing it automatically, but I don't know how to do it myself.

  • Linking Multiple regions in a single page

    Hi All, I am a new user to Apex, and i need some help for my current requirement. i will appreciate any help from the members i have a Master table and 5 child tables. i have created an interactive report in region1 for the master and 5 simple report

  • Crystal report with Details section

    Dear All, I design one Crystal report. In that can we add Details section below the Report footer. When i add Details section it is adding below Details section like Details a and below Details b. I want this Details b section adds below Report Foote

  • Best way to make a brochure look like realistic photograph - please see sample

    I have a few brochure files - and I want to make them look like this: What do I mean by "this"... I want to give them this folded look as not to have them on my portoflio so flat and plain... Is there a way I can make like a template in Photoshop - i