Layout Problem, Help Plzz

hi,,,
i have this JFrame that has text fields and buttons . I want the text fields to be ordered in a particular order like this:<br>
id,address,sex,voice(next to it the voice button),photo(next to it the faceBrowse button) i want these text fields to be under each other and on the other side(well next to them) name,phone,dob,template(next to it the voiceBrowse button)to be under each other ..<br>
i don't know how to do this .? can some one help me<br>
this is my code:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.table.*;
import java.sql.*;
import java.io.*;
import javax.swing.JPanel;
import java.applet.*;
import sun.audio.*;
import java.net.*;
import java.text.*;
class Example extends JFrame
JTextField id, name, address, phone, sex, dob, photo,audio,template;
       JTextArea comments;
       JButton search, update, clear, add, delete, close,audio1,faceBrowse,voiceBrowse,voice;
       JPanel customerPanel, adminPanel,voicePanel;
       JPanel backPanel, inputPanel, middlePanel, buttonPanel1, buttonPanel2, photoHolder;
customerPanel = new JPanel(new BorderLayout());
   inputPanel      = new JPanel();
    inputPanel.setLayout(new GridLayout(0,2));
      id           = new JTextField(20);
      name      = new JTextField(20);
      address      = new JTextField(20);
      phone      = new JTextField(20);
      sex      = new JTextField(20);
      dob      = new JTextField(20);
      photo      = new JTextField(20);
      audio   = new JTextField(20);
      template   = new JTextField(20);
       faceBrowse  = new JButton("...");
       faceBrowse.setBounds(210,150,25,25);
//      faceBrowse.addActionListener(this);
voice= new JButton("...");
            voice.setBounds(210,150,25,25);
           voiceBrowse  = new JButton("...");
            voiceBrowse.setBounds(210,150,25,25);
         //  voiceBrowse.addActionListener(this);
faceBrowse.setPreferredSize(new Dimension(26, 26));
      voiceBrowse.setPreferredSize(new Dimension(26, 26));
      inputPanel.add(new JLabel("CPR", JLabel.CENTER));
      inputPanel.add(id);
      inputPanel.add(new JLabel("Name", JLabel.CENTER));
      inputPanel.add(name);
      inputPanel.add(new JLabel("Address", JLabel.CENTER));
      inputPanel.add(address);
      inputPanel.add(new JLabel("Phone", JLabel.CENTER));
      inputPanel.add(phone);
      inputPanel.add(new JLabel("Sex", JLabel.CENTER));
      inputPanel.add(sex);
      inputPanel.add(new JLabel("Date Of Birth", JLabel.CENTER));
      inputPanel.add(dob);
      inputPanel.add(new JLabel("Customer Photo ", JLabel.CENTER));
      inputPanel.add(photo);
      inputPanel.add(faceBrowse);
      inputPanel.add(new JLabel("Voice ", JLabel.CENTER));
      inputPanel.add(audio);
      inputPanel.add(new JLabel("Template", JLabel.CENTER));
      inputPanel.add(template);
       inputPanel.add(voiceBrowse);
      customerPanel.add(inputPanel, BorderLayout.NORTH);
        //The buttons section:
      backPanel = new JPanel();
      middlePanel = new JPanel(new BorderLayout());
      buttonPanel1 = new JPanel();
      buttonPanel2 = new JPanel();
      search   = new JButton("SEARCH");
      update   = new JButton("UPDATE");
      clear    = new JButton("CLEAR");
      add      = new JButton("ADD");
      delete   = new JButton("DELETE");
      close    = new JButton("EXIT");
      audio1    =new JButton("Voice");
     // faceBrowse    = new JButton("...");
      //voiceBrowse    =new JButton("...");
      search.setPreferredSize(new Dimension(102, 26));
      update.setPreferredSize(new Dimension(102, 26));
      clear.setPreferredSize(new Dimension(102, 26));
      add.setPreferredSize(new Dimension(102, 26));
      delete.setPreferredSize(new Dimension(102, 26));
      close.setPreferredSize(new Dimension(102, 26));
      audio1.setPreferredSize(new Dimension(102, 26));
ActionHandler aHandler=new ActionHandler();
     search.addActionListener(aHandler);
     update.addActionListener(aHandler);
     clear.addActionListener(aHandler);
    add .addActionListener(aHandler);
         delete.addActionListener(aHandler);
         close.addActionListener(aHandler);
         audio1.addActionListener(aHandler);
    faceBrowse .addActionListener(aHandler);
    voiceBrowse  .addActionListener(aHandler);
       voice.addActionListener(aHandler);
     buttonPanel1.add(search);
        buttonPanel1.add(update);
        buttonPanel1.add(clear);
        buttonPanel2.add(add);
        buttonPanel2.add(delete);
        buttonPanel2.add(close);
        buttonPanel2.add(audio1);
        middlePanel.add(buttonPanel1, BorderLayout.NORTH);
        middlePanel.add(buttonPanel2, BorderLayout.CENTER);
        photoHolder = new JPanel();
        Icon curPhoto = new ImageIcon("");
        Icon[] custPhotos = {curPhoto};
        JList photosList = new JList(custPhotos);
        photosList.setFixedCellHeight(100);
        photosList.setFixedCellWidth(80);
        photoHolder.add(photosList);
        backPanel.add(middlePanel);
        backPanel.add(photoHolder);
    customerPanel.add(backPanel, BorderLayout.CENTER);
     Container c=getContentPane();
           c.setLayout(new BorderLayout());
      c.add( customerPanel);*/
       setSize(700,500);
      show();
private class ActionHandler implements ActionListener{
          public void actionPerformed(ActionEvent e){
           public static void main(String args[]){
                      Example application=new Example();
                      application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
       }//MAIN
[\code]
thankxxx
(sorry for the duplicate post , the first post was untidy)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.table.*;
import java.sql.*;
import java.io.*;
import javax.swing.JPanel;
import java.applet.*;
import sun.audio.*;
import java.net.*;
import java.text.*;
class Example extends JFrame {
  JTextField id, name, address, phone, sex, dob, photo,audio,template;
  JTextArea comments;
  JButton search, update, clear, add, delete, close,audio1,faceBrowse,voiceBrowse,voice;
  JPanel customerPanel, adminPanel,voicePanel;
  JPanel backPanel, inputPanel, middlePanel, buttonPanel1, buttonPanel2, photoHolder;
  public Example() {
    GridBagLayout gridbag = new GridBagLayout();
    GridBagConstraints gbc = new GridBagConstraints();
    gbc.insets = new Insets(2,1,2,1);
    gbc.weightx = 1.0;
    customerPanel = new JPanel(new BorderLayout());
    inputPanel = new JPanel();
    inputPanel.setLayout(gridbag);
    id = new JTextField(20);
    name = new JTextField(20);
    address = new JTextField(20);
    phone = new JTextField(20);
    sex = new JTextField(20);
    dob = new JTextField(20);
    photo = new JTextField(20);
    audio = new JTextField(20);
    template = new JTextField(20);
    faceBrowse = new JButton("Browse Photo");
    faceBrowse.setBounds(210,150,25,25);
    // faceBrowse.addActionListener(this);
    voice = new JButton("Play Message");
    voice.setBounds(210,150,25,25);
    voiceBrowse = new JButton("Browse Voice");
    voiceBrowse.setBounds(210,150,25,25);
    // voiceBrowse.addActionListener(this);
//    faceBrowse.setPreferredSize(new Dimension(26, 26));
//    voiceBrowse.setPreferredSize(new Dimension(26, 26));
    // row 1
    gbc.anchor = gbc.EAST;
    inputPanel.add(new JLabel("CPR"), gbc);
    gbc.anchor = gbc.WEST;
    inputPanel.add(id, gbc);
    gbc.anchor = gbc.EAST;
    gbc.gridwidth = gbc.RELATIVE;
    inputPanel.add(new JLabel("Name"), gbc);
    gbc.anchor = gbc.WEST;
    gbc.gridwidth = gbc.REMAINDER;
    inputPanel.add(name, gbc);
    // row 2
    gbc.anchor = gbc.EAST;
    gbc.gridwidth = 1;
    inputPanel.add(new JLabel("Address"), gbc);
    gbc.anchor = gbc.WEST;
    inputPanel.add(address, gbc);
    gbc.anchor = gbc.EAST;
    gbc.gridwidth = gbc.RELATIVE;
    inputPanel.add(new JLabel("Phone"), gbc);
    gbc.anchor = gbc.WEST;
    gbc.gridwidth = gbc.REMAINDER;
    inputPanel.add(phone, gbc);
    // row 3
    gbc.anchor = gbc.EAST;
    gbc.gridwidth = 1;
    inputPanel.add(new JLabel("Sex"), gbc);
    gbc.anchor = gbc.WEST;
    inputPanel.add(sex, gbc);
    gbc.anchor = gbc.EAST;
    gbc.gridwidth = gbc.RELATIVE;
    inputPanel.add(new JLabel("Date Of Birth"), gbc);
    gbc.anchor = gbc.WEST;
    gbc.gridwidth = gbc.REMAINDER;
    inputPanel.add(dob, gbc);
    // row 4
    JPanel row4Panel = new JPanel(gridbag);
    gbc.anchor = gbc.EAST;
    gbc.gridwidth = 1;
    row4Panel.add(new JLabel("Voice ", JLabel.CENTER), gbc);
    gbc.anchor = gbc.WEST;
    row4Panel.add(audio, gbc);        // tf
    gbc.anchor = gbc.CENTER;
    row4Panel.add(voice, gbc);        // JButton
    gbc.anchor = gbc.EAST;
    row4Panel.add(new JLabel("Template", JLabel.CENTER), gbc);
    gbc.anchor = gbc.WEST;
    gbc.gridwidth = gbc.RELATIVE;
    row4Panel.add(template, gbc);     // tf
    gbc.anchor = gbc.CENTER;
    gbc.gridwidth = gbc.REMAINDER;
    row4Panel.add(voiceBrowse, gbc);  // JButton
    inputPanel.add(row4Panel, gbc);
    // row 5    **** how many components in this row? ****
    gbc.anchor = gbc.EAST;
    gbc.gridwidth = 1;
    inputPanel.add(new JLabel("Customer Photo "), gbc);
    gbc.anchor = gbc.WEST;
    gbc.gridwidth = gbc.RELATIVE;
    inputPanel.add(photo, gbc);
    gbc.gridwidth = gbc.REMAINDER;
    inputPanel.add(faceBrowse, gbc);
    customerPanel.add(inputPanel, BorderLayout.NORTH);
    //The buttons section:
    backPanel = new JPanel();
    middlePanel = new JPanel(new BorderLayout());
    buttonPanel1 = new JPanel();
    buttonPanel2 = new JPanel();
    search = new JButton("SEARCH");
    update = new JButton("UPDATE");
    clear = new JButton("CLEAR");
    add = new JButton("ADD");
    delete = new JButton("DELETE");
    close = new JButton("EXIT");
    audio1 =new JButton("Voice");
    // faceBrowse = new JButton("...");
    //voiceBrowse =new JButton("...");
    search.setPreferredSize(new Dimension(102, 26));
    update.setPreferredSize(new Dimension(102, 26));
    clear.setPreferredSize(new Dimension(102, 26));
    add.setPreferredSize(new Dimension(102, 26));
    delete.setPreferredSize(new Dimension(102, 26));
    close.setPreferredSize(new Dimension(102, 26));
    audio1.setPreferredSize(new Dimension(102, 26));
    ActionHandler aHandler=new ActionHandler();
    search.addActionListener(aHandler);
    update.addActionListener(aHandler);
    clear.addActionListener(aHandler);
    add .addActionListener(aHandler);
    delete.addActionListener(aHandler);
    close.addActionListener(aHandler);
    audio1.addActionListener(aHandler);
    faceBrowse .addActionListener(aHandler);
    voiceBrowse .addActionListener(aHandler);
    voice.addActionListener(aHandler);
    buttonPanel1.add(search);
    buttonPanel1.add(update);
    buttonPanel1.add(clear);
    buttonPanel2.add(add);
    buttonPanel2.add(delete);
    buttonPanel2.add(close);
    buttonPanel2.add(audio1);
    middlePanel.add(buttonPanel1, BorderLayout.NORTH);
    middlePanel.add(buttonPanel2, BorderLayout.CENTER);
    photoHolder = new JPanel();
    Icon curPhoto = new ImageIcon("images/T6.gif");
    Icon[] custPhotos = {curPhoto};
    JList photosList = new JList(custPhotos);
    photosList.setFixedCellHeight(100);
    photosList.setFixedCellWidth(80);
    photoHolder.add(photosList);
    backPanel.add(middlePanel);
    backPanel.add(photoHolder);
    customerPanel.add(backPanel, BorderLayout.CENTER);
    Container c=getContentPane();
//    c.setLayout(new BorderLayout());  // not needed, default layout for JFrame
    c.add( customerPanel);
//    setSize(700,500);
    pack();
    setVisible(true);  //show(); << deprecated (antique but still okay) method
  private class ActionHandler implements ActionListener {
    public void actionPerformed(ActionEvent e) {
  public static void main(String args[]) {
    Example application=new Example();
    application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  }//MAIN
}

Similar Messages

  • Layout Problem, Help Need

    I developed one custom Report, which will print on pre print stationary. Really Problem here is when i send to printer it will printer properly on 8/12 By 11 Page, but i don't what is the reason it is not printing on Page after 7 Inch, even i thought i increase layout width it dos't Print after 7 Inch on Page, can i know why it is doing like these, any clue, please let me know.
    Report Verions : 6i
    Main Section : Width => 8.5
    Height => 12.5
    Orientation => Portrait
    Report Width => 80
    Report Height => 90
    Your Help Rally appreicate in advance.
    Thanks,
    Praveen

    You may need to contact support and actually show them the report to really solve the problem, but here are a few things to check first:
    a) Check the report margins, make sure that they will allow the report body to display past 7".
    b) Check that the frames and repeating frames are set to horizontally variable, or expand so that they can grow if required.
    Hope this helps,
    Danny

  • Safari 5 screen layout problem: help

    Suddenly safari 5.0.3 showed many pages (incl. apple.com) in a strange layout. All frames below the other and messed up fonts. The page becomes unreadable.
    I reinstalled Safari 4.0.3 form my original Mac DVD (Snow Leopard) and the problem is gone.
    Updating safari to 5.0.3 (downloaded from internet) brings the same problem back.
    My other macbook and imac do not have this problem. Safari 5.0.3 runs perfectly fine on those.
    Any ideas, or am I suddenly stuck with the previous version of safari on my macbook pro?

    Thank you all for your replies. I have tried all your methods:
    Checking the fontbook for duplicates and resolving this (found duplicates and resolved those).
    Booting in safe mode and rebooting normally again.
    Undoing the fontbook (removing the com.apple.fontbook.plist).
    And I even resorted to reinstalling (with the help of Pacifist) the fonts from my OSX DVD.
    The result is that now I only have one series of conflict left in my fontbook: Helvetica Neue of which I now have both a dfont and a ttf version (I have the latest OS X version 10.6.6) and I don't know which to remove.
    The result for Safari 5 is however still the same. Firefox has no problems, Safari 4 series also not (when I revert to this using the original DVD for installation). Only Safari Version 5.0.3 (6533.19.4) has the problem.
    Do you have anymore ideas? I like Safari better than Firefox and I was actually quite happy with the latest version until the sudden problem (cause unknown) happened. I hope I can solve it somehow.

  • CSS Layout Problem?

    Can someone please help me with a layout problem.
    As far as I can tell the page looks as it should in Netscape,
    Firefox, etc., but IE6 and 7 refuse to work correctly.
    The page I am working on is:
    http://www.vmtampademo.com/localangler/testpage.html
    Most of the picture caption and headline of the middle column
    is behind the picture. I attempted to force the info with a
    seperating div which seems to work sometimes. I doubt that this is
    the correct solution. What am I doing wrong?
    Thank you for the help!

    It looks fine in Firefox 2.0.0.1, Opera 9.10, and IE 7.

  • Layout problem - multiple repeating frames

    Hi, I have a layout problem, pls help!
    Short report description:
    - Repeating Frame1 - gives 1 record, contains all other frames, variable vertical elasticity
    - - Frame2 - contains all frames beneath - variable vertical elasticity
    - - - Frame3 - variable vertical elasticity
    - - - - some boilerplates
    - - - - Repeating Frame 2 - various number of records, fixed vertical elasticity, height 100
    - - - - Repeating Frame 3 - various number of records, fixed vertical elasticity, height 30
    - - - - .. other repeating frames ..
    When reaching the bottom of a page, and there is not enough room to print a record for Repeating frame 2, a record from Repeating frame 3 is printed in the bottom.
    Next page starts with the remaining records from Repeating frame 2.. and then the remaining records from Repeating frame 3.
    For example:
    Page 1:
    Rep frame 2 - Record 1
    Rep frame 2 - Record 2
    Rep frame 2 - Record 3
    Rep frame 3 - Record 1 -- not enough space to print Record 4, so this record is printed
    Page 2:
    Rep frame 2 - Record 4
    Rep frame 2 - Record 5
    Rep frame 3 - Record 2
    How can i ensure that all records from Rep frame 2 is printed before records from Rep frame 3?

    Hi, thanks for helping me out!
    I tried to use anchors, but they had no effect when connecting top of 3 to bottom of 2, got the same layout.
    I then tried to create frames with vertical elasticity expand around both rep frame 2 and rep frame 3, and it seems to do the job.
    - Repeating Frame1 - gives 1 record, contains all other frames, variable vertical elasticity
    - - Frame2 - contains all frames beneath - variable vertical elasticity
    - - - Frame3 - variable vertical elasticity
    - - - - some boilerplates
    - - - - Frame 4 - vertical elasticity expand
    - - - - - - Repeating Frame 2 - various number of records, fixed vertical elasticity, height 100
    - - - - Frame 5 - vertical elasticity expand
    - - - - - - Repeating Frame 3 - various number of records, fixed vertical elasticity, height 30
    and so on..
    Thanks again

  • Div layout problem

    Hi - stuck on what I think should be a fairly basic layout problem:
    I have 2 divs, equal widths but varying heights, one floated to the left and one to the right so that they appear next to eachother on the page.  The one on the left contains varying amounts of text, the one on the right contains a flash player so never varies.
    Where the text for the left div is long, I want it to start off next to the player, but then flow beneath it rather than continuing downwards at the same width as the div.  If I remove the width of the left div, so that it reverts to the container width, the player div positions itself below it, so I can't work out how to get the effect.
    Can anyone help?

    Hi,
    hope I understood in the right way: I used (translated from German DW) "modify table" and so I got one more row and two columns in your Main_Content. In one of the new columns I copied the image and beneath I took the text (you now can replace with image and text of your choice), like this:
    If that's not a help for your question, please ask me again.
    What concerns the width of the pictures, I would format them with PS or a similar program in the same wide.
    Hans-G.

  • Layout Problems When Exporting to ePub

    Hi,
    When exporting my document to ePub, I always receive the following errors:
    Export Warning - Some style settings, including multiple columns, table styles, and character formatting, aren’t supported. Your document might look different.
    Export Warning - Headers and footers aren’t supported and were removed.
    First of all, how can I see these on the document? When I look at pages, the layout seems perfect.  Please note that I used Baskerville as the font everywhere, didnt use any multiple columns or tables. There are no footers but only some headers.
    The main problem I have is with the layout. Some chapters need to start on a new page but instead iBooks puts it at the end of the last page. Please check the picture below as what I mean.
    There also is a blank page on the ibooks which I dont know why. It is a single page and it is blank. There are no blank pages on my pages doc...
    Also on TOC, I dont see anything like ''Title Page'' on pages but when I export it to ibooks, on top there is this ''title page'' thing. My book will not be in English so is there any way to delete it from TOC?
    Thank you
    Note: I use Pages v4.3

    Most of us that usually answer questions in this forum don't create ePubs and will have problem helping you. If you don't get an answer here try this forum Creating ePubs. I hope it will help.

  • My daughter has just bought me an iPad 2 from Dubai and set it all up for me but unfortunately the iMessage function doesn't seem to work. We keep getting messages,when trying to activate it, that there is a network connection problem - help!

    My daughter has just bought me an iPad 2 from Dubai and set it all up for me but unfortunately the iMessage function doesn't seem to work. We keep getting messages,when trying to activate it, that there is a network connection problem - help!

    Thank you both for your responses but my daughter was reassured by the salesman in the iStyle store (official Apple store in the UAE) that iMessages would work but conceded that FaceTime wouldn't. My iTunes account is registered in the uk and my daughter's iPhone has iMessages even though she bought it (and uses it) in Dubai. Can anyone else throw any light on this?

  • I couldn't log into my apple account on my iPad, then i couldn't unlock it resulting in it being disabled, however it's the same as my iPhones password, I then called apple, i was hung up on twice and they said it will cost £70 to fix THEIR problem, help?

    I couldn't log into my apple account on my iPad, then i couldn't unlock it resulting in it being disabled, however it's the same as my iPhones password, I then called apple, i was hung up on twice and they said it will cost £70 to fix THEIR problem, help?

    If you cannot remember the passcode, you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and resync the data from the device (or restore from a backup).
    If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present.
    You may have to force iPad/iPod into Recovery Mode
    http://support.apple.com/kb/ht4097

  • IPad syncing problem - HELP!

    iPad sync problem - HELP!  I keep getting this message "...cannot be synced because there is not enough free space to hold all of the items in the iTunes library (additional ...space needed)"  and yet I seem to have plenty of space on the iPad.  This just started today.  I even tried deleting some things to make even more room, but it didn't help.  Any ideas??? 
    I was thinking of restoring, but I've never done it...  should I? 
    thank you!

    Hello florafromnv,
    Welcome to Apple Support Communities.
    The following article addresses how to resolve the issues related to this message:
    iOS: "Not enough free space" alert when trying to sync
    http://support.apple.com/kb/TS1503
    Regards,
    Jeff D.

  • Layout problem in PDF conversion

    Hi all,
    i am downloading spool data using the function module CONVERT_ABAPSPOOLJOB_2_PDF. But i am facing layout problem. e.g. RFBILA00(financial statement generation program) has written balancesheet data to the spool. This spool data has some 6 columns. but CONVERT_ABAPSPOOLJOB_2_PDF is writing only first 3 columns to the generated PDF file. i used 'GET_PRINT_PARAMETERS' function module also with values like layout as 'X_65_132' and 'X_90_120'. but no success. if anybody knows the answer, please let me know.
    Thanks in advance,
    Naveen

    Hi All,
    i am following the below approach to download the information from spool.
    program/spool output is an ALV List output data having 8 columns. but below approach is converting only first 5 columns in to PDF format. other 3 columns are getting truncated.
    FUNCTION /ngl/download_spoolinfo_as_pdf.
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(I_SPOOL_REQUEST) LIKE  TSP01-RQIDENT
    *"     REFERENCE(I_FILENAME) LIKE  RLGRAP-FILENAME
    *"  EXCEPTIONS
    *"      DOWNLOAD_ERROR
      TABLES tsp01.
      DATA: mtab_pdf LIKE tline OCCURS 0 WITH HEADER LINE,
            mc_filename LIKE rlgrap-filename.
      DATA: mstr_print_parms LIKE pri_params,
            mc_valid(1) TYPE c,
            mi_bytecount TYPE i.
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          copies                 = '1'
          cover_page             = space
          destination            = 'locl'
          expiration             = '1'
          immediately            = space
          mode                   = space
          new_list_id            = 'X'
          no_dialog              = 'X'
          user                   = sy-uname
          line_size              = 200
          line_count             = 65
         layout                 = 'X_65_200'
          layout                 = 'X_90_120'
          sap_cover_page         = 'X'
        IMPORTING
          out_parameters         = mstr_print_parms
          valid                  = mc_valid
        EXCEPTIONS
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          OTHERS                 = 4.
      IF sy-subrc EQ 0.
        CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
          EXPORTING
            src_spoolid              = i_spool_request
            no_dialog                = 'X'
            dst_device               = mstr_print_parms-pdest
          IMPORTING
            pdf_bytecount            = mi_bytecount
          TABLES
            pdf                      = mtab_pdf
          EXCEPTIONS
            err_no_abap_spooljob     = 1
            err_no_spooljob          = 2
            err_no_permission        = 3
            err_conv_not_possible    = 4
            err_bad_destdevice       = 5
            user_cancelled           = 6
            err_spoolerror           = 7
            err_temseerror           = 8
            err_btcjob_open_failed   = 9
            err_btcjob_submit_failed = 10
            err_btcjob_close_failed  = 11
            OTHERS                   = 12.
        IF sy-subrc EQ 0.
          mc_filename = i_filename.
          DATA: lv_filename TYPE string.
          lv_filename = i_filename.
          CALL FUNCTION 'GUI_DOWNLOAD'
            EXPORTING
              bin_filesize = mi_bytecount
              filename     = lv_filename
              filetype     = 'BIN'
            TABLES
              data_tab     = mtab_pdf
            EXCEPTIONS
              OTHERS       = 22.
          IF sy-subrc EQ 0.
            WRITE:/ mc_filename, 'CONVERTED TO PDF AND DOWNLOADED'.
          ELSE.
            WRITE:/ 'PROBLEM WITH DOWNLOAD'.
            RAISE download_error.
          ENDIF.
        ELSE.
          WRITE:/ 'PROBLEM WITH PDF CONVERSION'.
          RAISE download_error.
        ENDIF.
      ELSE.
        WRITE:/ 'PROBLEM GETTING PRINT PARAMETERS'.
        RAISE download_error.
      ENDIF.
    ENDFUNCTION.

  • MOVED: KT333 Ultra; fuzzy logic, 1.6xp overclocking problem help !!!!!

    This topic has been moved to Overclockers & Modding Corner.
    KT333 Ultra; fuzzy logic, 1.6xp overclocking problem help !!!!!

    Not that I am an expert o/c but here are some thoughts on the matter.
    My comments are based on my experiences of the KT3 Ultra2 which is basically the same as the Ultra version.
    This mobo does not have the ability to lock the PCI/AGP bus freely from the FSB. However, it does have dividers. At 133 a 1/4 divider kicks in. Above 152FSB the 1/5 divider works, so that at 166 the PCI & AGP buses will be back in sync. If you are o/c your cpu, don't go from 133 to 145, etc since you will be running the PCI/AGP buses further out of whack. Just go to either the mid 150's or to 166 in one jump. The other problem / issue relates to your cpu. From what you say you have one of the old Palominos which are not great o/c's. I would personally o/c your cpu from the BIOS rather than 'Fluffy Logic' which I would tend to stay away from. 
    With a 166FSB cpu a very stable o/c would be 175-177 beyond 180 gets decidedly tricky.
    Hope this helps

  • Itunes keeps closing as soon as i open it and states 'windows has detected a problem' HELP!!!!

    Help!! Itunes keeps closing straight away and message states 'windows has detected a problem' HELP ASAP PLEASE!!!!

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    If you've already tried a complete uninstall and reinstall try opening iTunes in safe mode (hold down CTRL+SHIFT as you start iTunes) then going to Edit > Preferences > Store and turning off Show iTunes in the Cloud purchases. You may find iTunes will now start normally.
    tt2

  • Layout Problem in swings

    I have an Layout problem. My Applications consists of a label and a panel in which some more labels are present.
    The panel should contain the scrollbar in order to view all the label that excced the size of the panel.This label and a panel should be adjacent to each other.
    My problem is, I am not getting the scroll bar to the panel when I am adding the label that excced the size of the panel, when I am adding the label adjacent to this label.

    Did you use JScrollPanel? If not, use it.

Maybe you are looking for