Using box layout?
Hello,
I wondered if anyone could advise? In this code I was trying to display a column of buttons each the same size. And next to these buttons, a single button, and textfield.
Something like:
Button 1
Button 2
Button 3 "some space" SearchButton ////Text field ///
Button 4
Button 5
But when the textfield is displays it becomes the height of the 5 buttons, but the searchbutton did not. Is there any method to change the textfield to the height of the searchButton? Or could anyone possibly demonstrate a different layout manager?
Thank you
JButton button1, button2, button3, button4, button5;
JPanel panel = new JPanel(new GridLayout(0,1));
panel.add(button1 = new JButton("Button 1"));
castleGreen.addActionListener(this);
panel.add(button2 = new JButton("Button 2"));
runTown.addActionListener(this);
panel.add(button3 = new JButton("Button 3"));
highHill.addActionListener(this);
panel.add(button4 = new JButton("Button 4"));
luckNow.addActionListener(this);
panel.add(button5 = new JButton("Button 5"));
littleHaven.addActionListener(this);
Box leftCol = Box.createVerticalBox();
leftCol.add(panel);
Box rightCol = Box.createHorizontalBox();
rightCol.add(searchBt = new JButton("Search"));
searchBt.addActionListener(this);
rightCol.add(Box.createHorizontalStrut(10));
rightCol.add(searchTf = new JTextField(20));
Box topDisplay = Box.createHorizontalBox();
topDisplay.add(leftCol);
topDisplay.add(Box.createHorizontalStrut(40));
topDisplay.add(rightCol);
Thank you for replying.
In my version of the code the name shown on the left
buttons are all differenet sizes. When I built these
into a vertical box, the buttons were displayed
uneven. I resolve this by using a panel.By default the system sizes buttons according to the ammount of text in them.
>
I wondered to achieve this layout, would be easier to
use a gridbaglayout?Personally I've gone right off GridBagLayout. It's complicated to use and seems unstable in resizing.
I've got much more reliable results from BoxLayout.
Similar Messages
-
used BOX LAYOUT
I have two panels, one header having two labels
another panel inside scrollpane,
but first panel by default comes to center
so,
i set panelHeader.setAlignmentX(Component.LEFT);
now first panel comes slightly to left side but still not aligned with second panelJUst Add yout comp[onents on that panel ok
panel2 & panel 3
Panel2 is the left panel & panel3 is the right panel ok
Dear Bye
import javax.swing.*;
class layout
BoxLayout box;
JFrame frame;
JPanel panel1 , panel2 , panel3;
layout()
frame = new JFrame();
panel1 = new JPanel();
panel2 = new JPanel();
Panel3 = new JPanel();
box = new BoxLayout(panel1,BoxLayout.X_AXIS); // horizontal Layout And Y_AXIS For vertical
frame.getContentPane().add(panel1);
panel1.setLayout(box);
panel1.add(panel2);
panel1.add(panel3);
public static void main(String ss[])
layout ll = new layout();
} -
Box Layout, JTextFields, vertical glue, ect
How do you make it so that your text field on a graphics page dose not expand when you use Box Layout and maximise it?
thanks a lot it worked ^_^ my classmates thank you as well
-
Hi Team,
I am SharePoint 2013 developer. Before asking question I would like to explain the requirement in clarity.
We are developing one O365 SharePoint online site which is having 10 different page layouts with different and some common webparts and we are reusing these page layouts by deploying a sandboxed solution which is having page layouts. These page layouts contain
filter and query to display data using some condition and predefined values. By using these layouts we have to create 100+ pages. All pages will show data according to that page name and category (if it belongs any). We have not written any code to develop
the site, everything is OOB feature.
We have used below feature/list/lib of SP Online 2013:
- Document Library
- Survey
- Calendar
- Lists
- Discussion forum library
- OOB Search feature
Now, I would like to know whether this is the right approach to reuse the page layouts. Or can we add webparts directly where the logic resides in the webparts and add them to the pages instead of page layouts?
Also how to deploy page layouts/pages from one server to another? Currently we are deploying everything as a feature using sandbox solution.
Could you please let me know the right approach to follow. I am asking this question because we are facing below issues:
- Sometime page layouts gets corrupted, showing nothing.
- All written filters/logic disappear when we open layouts in Designer
- Deployment is pain using Sandbox solution
Waiting for your reply.
Thanks in Advance,
Shifa MittalInteresting question, to which i do not know a definitive answer.
Output Caching is used to increase performance and to reduce load on the box. However since you're in the MS Cloud you don't need to worry about the latter and MS do the worrying about the former. I wouldn't be surprised if MS have updated the behaviour
for O365 and not updated the documentation. That first office.com article is using 2010 screenshots which doesn't fill me with confidence about it's continuing relevance. Don't forget that SharePoint 2013 and O365 are technically different versions and have
very different behaviour in places.
Generally i'd say not to worry, but in this case if you do find any more information i'd love to see it. -
Can you alter, or create your own photo box layouts in iMovie 11. If so how, or where can you do this.
I can't find that option. I don't want to use the canned, preset photo layouts. Any options available?It has been happening to me, but it doesn't change the final video itself, if it is previewed in full screen mode, it will sometimes freeze, but to see the scene that freezes, just play it (in fullscreen mode) and click back a few seconds before it freezes and it should play normally.
You can also bring the mouse over the clip to preview it or:
Duplicate the whole project
2. Export it to Quicktime
Hope this helps -
Hello,
I am having difficulty with my box layouts in my form applet.
I have a JFrame with two panels. The left panel will allow the user to enter some parameters via text boxes, drop down menus, etc for a shape, which will appear on the right panel.
To arrange the form entry boxes on the left panel, I implemented a box layout. Here is where my trouble lies. I am not sure if I am using them correctly.
In the left panel, I added a box objectentitled entrySideBox, which has a createVerticalBox() orientation. I further added 7 boxes to this box layout, which had a createHorizontalBox() orientation. I have the form elements within the array of horizontal boxes. In summary, I hoped to create a box layout column with 7 horizontal rows to house the form entry elements.
Can I do this with the Box Layout? My form elements do not appear to be appearing as expected!
I have my code below. What is wrong?
//import the necessary java classes
import java.awt.*; //for the awt widgets
import javax.swing.*; //for the swing widgets
import java.awt.event.*; //for the event handler interfaces
public class DemoShape extends JFrame
//declare private data members of the DemoShape class
//requires seven control buttons
private JTextField xShapeText, yShapeText, messageText, fontSizeText;
private JComboBox shapeTypeDrop, shapeColorDrop, fontTypeDrop,fontColorDrop;
//declare the entry and display panel containers
private Panel entryPanel;
private Panel displayPanel;
//declare public data members of the DemoShape class
//constructor to initialize private data members
public DemoShape()
//call the superclass (JFrame) constructor with the name argument
//this must be done first (as in C++)
super("DemoShape Applet");
//arrays of string to be used later in combo boxes
//some are used more than once
String fonts[] = {"Dialog", "Dialog Input", "Monospaced",
"Serif", "Sans Serif"};
String shapes[] = {"Rectangle", "Round", "Oval"};
String colors[] = {"Black", "Blue", "Cyan", "Dark Gray",
"Gray", "Green", "Light Gray", "Magenta", "Orange",
"Pink", "Red", "White", "Yellow"};
//get the content pane of the class outside
Container entire = this.getContentPane();
entire.setLayout(new GridLayout(1,2));
//create the entry panel and add it to the entire pane
//this will be 7 rows, 1 column
//each row will have a panel with the form entry elements
entryPanel = new Panel(new FlowLayout());
entire.add(entryPanel);
//create the display panel and add it to the entire pane
//this will display the output
displayPanel = new Panel();
entire.add(displayPanel);
//entry panel code
//use a box layout to add the boxes in a row fashion on the entryPanel
Box boxes[] = new Box[7];
//create a main box for the entry side
Box entrySideBox = Box.createVerticalBox();
//iterively create a box layout for each row
for(int b = 0; b < boxes.length; b++)
{ boxes[b] = Box.createHorizontalBox(); }
//add the form elements to the boxes
//the first row should have the shape label
JLabel shapeHeader = new JLabel("Enter Shape Parameters:");
boxes[0].add(shapeHeader);
//second row should have the shape type and color
JLabel shapeTypeLabel = new JLabel("Select Shape:");
boxes[1].add(shapeTypeLabel);
shapeTypeDrop = new JComboBox(shapes);
boxes[1].add(shapeTypeDrop);
JLabel shapeColorLabel = new JLabel("Select Shape Color:");
boxes[1].add(shapeColorLabel);
shapeColorDrop = new JComboBox(colors);
boxes[1].add(shapeColorDrop);
//third row should have the x and y coords
JLabel xShapeLabel = new JLabel("Enter X:");
boxes[2].add(xShapeLabel);
xShapeText = new JTextField("200", 3);
boxes[2].add(xShapeText);
JLabel yShapeLabel = new JLabel("Enter Y:");
boxes[2].add(yShapeLabel);
yShapeText = new JTextField("200", 3);
boxes[2].add(yShapeText);
//fourth row should have the message label
JLabel messageHeader = new JLabel("Enter Message Parameters:");
boxes[3].add(messageHeader);
//the fifth row should have the message
JLabel messageLabel = new JLabel("Enter Message:");
boxes[4].add(messageLabel);
messageText = new JTextField(50);
boxes[4].add(messageText);
//the sixth row should have the font type and size
JLabel fontTypeLabel = new JLabel("Select Font:");
boxes[5].add(fontTypeLabel);
fontTypeDrop = new JComboBox(fonts);
boxes[5].add(fontTypeDrop);
JLabel fontSizeLabel = new JLabel("Enter Font Size:");
boxes[5].add(fontSizeLabel);
fontSizeText = new JTextField("12", 2);
boxes[5].add(fontSizeText);
//the seventh row should have font color
JLabel fontColorLabel = new JLabel("Select Font Color:");
boxes[6].add(fontColorLabel);
fontColorDrop = new JComboBox(colors);
boxes[6].add(fontColorDrop);
//add the boxes to the entrySideBox
for(int e = 0; e < boxes.length; e++)
{ entrySideBox.add(boxes[e]); }
//add the entrySideBox to the entry panel
entryPanel.add(entrySideBox);
//display panel code
//debugging
JLabel test = new JLabel("Display Output Here");
displayPanel.add(test);
//set the size of the entire window and show the entire applet
this.setSize(800,600);
this.show();
} //end the DemoShape constructor
//call the main class
public static void main(String args[])
//create an instance of the DemoShape class
DemoShape DemoShapeRun = new DemoShape();
//add the window listener to the applet
DemoShapeRun.addWindowListener(
new WindowAdapter()
public void windowClosing(WindowEvent e)
System.exit(0);
} //end main
} //end DemoShape classThe problem with GridLayout is the form elements sizes
change relative to the size of the panel. I want the
form elements to remain in a consistent state.
Should I quit using the box layout?Ok, try to set the layout of the upper content pane to BorderLayout and place the left panel with your components in the WEST part of it (the panel for the drawings goes to CENTER). I don't know if this will produce the result that you want, but it's an idea.
You should use a GridLayout for this panel and only
specify 2 columns (don't specify the number of rowsor
the number of columns will be ignored, see theclass
documentation for further details).
Hope this helps,
Pierre2 Columns? For what?The first column is for the labels (e.g. "Select Font Color") and the second is for the input component (e.g. textarea). -
Java- Problem in tabbing order using Border layout
Though i have added components in particular order to borderlayout Panel,Order of tabbing is not in the order of components added?can any one say why is happens because the tabbing occurs naturally in the order the components are added to the panel . how to solve this problem ? Please.
ArunI think that the border layout defines it's own tab order.
I think the grid bag layout does, also.
You could, however, try to duplicate the border layout using :
a) A box layout
b) A spring layout
Or, you could take a look at Focus Managers. That will allow you to set an arbitrary tab order independent of the component order or the default tab orders of the layouts. -
i know how to use a box layout on panels but i am having a problem applying box layout on jframe,
what i do basicaly is extends jframe first and then in the constructor i put setLayout(new BoxLayout(this,BoxLayout.X_AXIS));
it gives an error that box layout cant be shared...this method works with all other layouts...
please help me and please dont tell me to go read the sun online tutorials...To speak truely. All the j2se default layout manager will be replaced by the default layoutmanager in NetBeans ---group layout manager.
I suggest you download a NetBeans IDE and start working with the new layout manager. -
How to have a box layout on a JDialog, with an image set as background
Hi,
I need to have a JDialog in which there is a background image set (I already did this part, but only with the default layout). I further need to add text to the lower part of the JDialog. (For this, I guess I need to have a box layout.). I am not able to do so, because if I do so, I wont be able to set image background to the entire JDialog. Please help me out with how to solve this issue?
Thanks,
JobyHi jduprez,
Thanks for the reply. I checked Rob Camick's blog. It gives a nice way to add an image to a panel (*master panel*) and to use it.
I still have my problem open. The above solution gives panel that I can add to my JDialog. But on the bottom half of the image (as you said, BorderLayout.South), I need to add another structured set of components using a Border Layout again.!, ie, one more panel with a BorderLayout. So when I add
this panel, to the master panel containing the image, then the image gets cut off, at that point. I tried using component.setOpaque(false) on my sub-panel, still it does not work. Any idea, how to achieve this...?
Following is the code I have adapted.
public class BackgroundPanel extends JPanel
public static final int SCALED = 0;
public static final int TILED = 1;
public static final int ACTUAL = 2;
private Paint painter;
private Image image;
private int style = SCALED;
private float alignmentX = 0.5f;
private float alignmentY = 0.5f;
private boolean isTransparentAdd = true;
public static void main(String[] args) {
Image img = getImage("D:/imgs/Snowdrop.jpg");
BackgroundPanel panel = new BackgroundPanel(img);
JDialog dlg = new JDialog();
dlg.setLayout(new BorderLayout());
dlg.add(panel);
panel.setTransparentAdd(true);
Panel nPanel = new Panel();
nPanel.setLayout(new BorderLayout());
JLabel label = new JLabel();
//label.set
label.setText("<html>HI<br>This is another line<br><br><br><br><br><br><br><br><br><br></html>");
nPanel.add(label, BorderLayout.NORTH);
panel.add(nPanel/*label*/,BorderLayout.SOUTH);
dlg.setSize(600, 500);
dlg.setVisible(true);
private static Image getImage(String fileName){
File file = new File(fileName);
Image image = null;
try{
image = ImageIO.read(file);
catch(IOException ioe){
/*JOptionPane.showMessageDialog(dlg, "Error in loading image file",
"Error", JOptionPane.ERROR_MESSAGE, null);*/
return image;
* Set image as the background with the SCALED style
public BackgroundPanel(Image image)
this(image, SCALED);
* Set image as the background with the specified style
public BackgroundPanel(Image image, int style)
this(image,style,-1,-1);
* Set image as the backround with the specified style and alignment
public BackgroundPanel(Image image, int style, float alignmentX, float alignmentY)
setImage( image );
setStyle( style );
if (alignmentX > 0){
setImageAlignmentX( alignmentX );
if (alignmentY > 0){
setImageAlignmentY( alignmentY );
setLayout( new BorderLayout() );
* Use the Paint interface to paint a background
public BackgroundPanel(Paint painter)
setPaint( painter );
setLayout( new BorderLayout() );
* Set the image used as the background
public void setImage(Image image)
this.image = image;
repaint();
* Set the style used to paint the background image
public void setStyle(int style)
this.style = style;
repaint();
* Set the Paint object used to paint the background
public void setPaint(Paint painter)
this.painter = painter;
repaint();
* Specify the horizontal alignment of the image when using ACTUAL style
public void setImageAlignmentX(float alignmentX)
this.alignmentX = alignmentX > 1.0f ? 1.0f : alignmentX < 0.0f ? 0.0f : alignmentX;
repaint();
* Specify the horizontal alignment of the image when using ACTUAL style
public void setImageAlignmentY(float alignmentY)
this.alignmentY = alignmentY > 1.0f ? 1.0f : alignmentY < 0.0f ? 0.0f : alignmentY;
repaint();
* Override method so we can make the component transparent
public void add(JComponent component)
add(component, null);
* Override method so we can make the component transparent
public void add(JComponent component, Object constraints)
if (isTransparentAdd)
makeComponentTransparent(component);
super.add(component, constraints);
* Controls whether components added to this panel should automatically
* be made transparent. That is, setOpaque(false) will be invoked.
* The default is set to true.
public void setTransparentAdd(boolean isTransparentAdd)
this.isTransparentAdd = isTransparentAdd;
* Try to make the component transparent.
* For components that use renderers, like JTable, you will also need to
* change the renderer to be transparent. An easy way to do this it to
* set the background of the table to a Color using an alpha value of 0.
private void makeComponentTransparent(JComponent component)
component.setOpaque( false );
if (component instanceof JScrollPane)
JScrollPane scrollPane = (JScrollPane)component;
JViewport viewport = scrollPane.getViewport();
viewport.setOpaque( false );
Component c = viewport.getView();
if (c instanceof JComponent)
((JComponent)c).setOpaque( false );
* Add custom painting
protected void paintComponent(Graphics g)
super.paintComponent(g);
// Invoke the painter for the background
if (painter != null)
Dimension d = getSize();
Graphics2D g2 = (Graphics2D) g;
g2.setPaint(painter);
g2.fill( new Rectangle(0, 0, d.width, d.height) );
// Draw the image
if (image == null ) return;
switch (style)
case SCALED :
drawScaled(g);
break;
case TILED :
drawTiled(g);
break;
case ACTUAL :
drawActual(g);
break;
default:
drawScaled(g);
* Custom painting code for drawing a SCALED image as the background
private void drawScaled(Graphics g)
Dimension d = getSize();
g.drawImage(image, 0, 0, d.width, d.height, null);
* Custom painting code for drawing TILED images as the background
private void drawTiled(Graphics g)
Dimension d = getSize();
int width = image.getWidth( null );
int height = image.getHeight( null );
for (int x = 0; x < d.width; x += width)
for (int y = 0; y < d.height; y += height)
g.drawImage( image, x, y, null, null );
* Custom painting code for drawing the ACTUAL image as the background.
* The image is positioned in the panel based on the horizontal and
* vertical alignments specified.
private void drawActual(Graphics g)
Dimension d = getSize();
Insets insets = getInsets();
int width = d.width - insets.left - insets.right;
int height = d.height - insets.top - insets.left;
float x = (width - image.getWidth(null)) * alignmentX;
float y = (height - image.getHeight(null)) * alignmentY;
g.drawImage(image, (int)x + insets.left, (int)y + insets.top, this);
}Thanks,
Joby -
Is Responsive Design possible using Liquid Layouts?
Hi it is possible to use Liquid Layouts to automatically move content [instead of just scaling it] when the device is a different size. For example I may have 2 text boxes next to each other on an iPad layout but I want want them stacked on top of each other on the iPhone.
I know this type of responsive design is implemented in the latest version of dream weaver but i'm unsure how to do it in Indesign.
I have attached an image to better describe my question - http://bit.ly/16c82bD
Thanks@Luke – currently the answer is no.
I think in this regard the development team of InDesign has to go a really long way (if it will be ever implemented).
It means CSS rules for every part of formatting:
A new paradigm for layout composition (and text composition as well).
Uwe -
How do I use different Layouts?
I am trying to make a program that runs in a window like this:
http://www.exyt-web.com/Window.gif
The problem I'm having is with the layout.
How do I have more than one layout ?
For example - as you can see in the image (hyperlink above) I wish to have a border layout with a JFrame at the North position and then in the South position I want to have buttons laid out in a FlowLayout.
Also with my radio buttons I want these in a GridLayout(3, 0) layout.
I made up some example code to test using different layouts - but it seems one layout always overrides the other...
import java.awt.*;
import javax.swing.JFrame;
import javax.swing.JLabel;
public class LayoutTest extends JFrame
public LayoutTest()
setTitle("Hello World");
Container contents = getContentPane();
Container contents2 = getContentPane();
contents.setLayout(new FlowLayout());
contents.add(new JLabel("<FILTER [Type a th| ]>"));
contents.add(contents2);
contents.add(new JLabel("< Filter Button >"));
contents.add(new JLabel("< Add Button >"));
contents2.setLayout(new GridLayout());
contents2.add(new JLabel("< Button 1 >"));
contents2.add(new JLabel("< Button 2 >"));
contents2.add(new JLabel("< Button 3 >"));
contents2.add(new JLabel("< Button 4 >"));
setDefaultCloseOperation(EXIT_ON_CLOSE);
pack();
} // HelloWorld
public static void main(String [] args)
LayoutTest theLayoutTest = new LayoutTest();
theLayoutTest.show();
} // main
} // class HelloWorldI know this obviously doesn't work but I hoped it would show what I was trying to do.
I also tried creating a new 'contents2' and then adding it into 'contents'
e.g. contents.add(contents2); My current code for the window I'm trying to create so far is:
import java.awt.*;
import javax.swing.*;
public class Menus extends JFrame
public static void Menus()
// Creates a new JFrame, with the title specified in quotation marks.
JFrame frame = new JFrame("Film Database");
// Sets the default close operation of the frame.
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// Creates a new menu bar for the frame.
JMenuBar menuBar = new JMenuBar();
// Creates a new menu for the menu bar.
JMenu menu = new JMenu("File");
addFrameContents(frame, menuBar, menu);
// Sets the new menu bar on the frame
frame.setJMenuBar(menuBar);
frame.pack();
frame.setVisible(true);
} // HelloWorld
public static void addFrameContents(JFrame frame, JMenuBar menuBar, JMenu menu)
// Adds the menu to the menu bar.
menuBar.add(menu);
// Creates a new item for the menu with a small icon.
JMenuItem menuLoad = new JMenuItem("Load", new ImageIcon("C:/load.gif"));
// Adds the new item to the menu.
menu.add(menuLoad);
JMenuItem menuSave = new JMenuItem("Save", new ImageIcon("C:/save.gif"));
menu.add(menuSave);
JMenuItem menuQuit = new JMenuItem("Quit", new ImageIcon("C:/quit.gif"));
menu.add(menuQuit);
// Creates a new container.
Container contents = frame.getContentPane();
// Sets a new layout for contents, in this case FlowLayout.
contents.setLayout(new GridLayout(2, 0));
// Adds new JLabels to the container.
contents.add(new JLabel("< JLabel 1 >"));
contents.add(new JLabel("< JLabel 2 >"));
contents.add(new JLabel("< JLabel 3 >"));
contents.add(new JLabel("< JLabel 4 >"));
JLabel thisLabel = new JLabel("Hello");
thisLabel.setLayout(new FlowLayout());
JLabel thisLabel2 = new JLabel("Hello2");
thisLabel2.setLayout(new FlowLayout());
contents.add(thisLabel);
contents.add(thisLabel2);
public static void main(String [] args)
Menus();
} // main
} // class HelloWorldAny help on how I can use two separate layouts in the same frame would be great!
Regards,
Tomdoing this:
Container contents = getContentPane();
Container contents2 = getContentPane();
does not create 2 different containers. It's just creating 2 variables that refer to the same container. There is only 1 content pane in a window/frame. A container can only have 1 layout.
If you want to have 2 layouts, you create 2 panels with separate layouts and put what you want in each panel, and put both panels in the content page. -
Hello Friends
I have a quick question for you.What is the 'USES' checkbox for in the Transfer Structure on the far left side, right next to the CONVE box.What does teh 'Uses' box signify and what does a green check present or absent there mean.
Thanks.Hi Krish,
The column 'USES' identify whether the field is used in the communication structure or not.
To give you an example, lets say you have two fields KTOPL and HKONT in your extract structure of the data source and you have transferred these fields to the transfer structure, however you have mapped only KTOPL to an info-object where as HKONT is not mapped (in assign info-object section of transfer rules tab). That means KTOPL will only appear in the communication structure. If you check the USES column, you can see that it will be checked (a tick mark) for KTOPL where as "blank" for HKONT.
Hope it clarifes.
Thanks
Soumya -
Best Practice in using Tracking Layout
Can anyone tell me how best to use Tracking Layout and how to create the different new layout in tracking layout view.
Kindly let me know whether the layout as explained below can be shown:
Toplayout shows the list of projects and the bottom layout should show the list of resources and while selecting the resources should show either histogram or spreadsheet to show the resources based on the usage for all the projects. With that we need to find out which is oveallocated and which resource is free.
Thanks in advance.
Regards,
Olbyuser8410696,
Sounds like you need a simple resource loading histogram with a threshold limit displayed for each project. I don't know if you are layout saavy but layouts can be customized to fit your exact needs. Sometimes P6 cannot display exactly what you desire but most basic layouts can be tweaked to fit. I believe that you need a combo of resource profiles and columns.
I'll take some time today and do some tweeking on my end to see if I can modify one of my resource layouts to fit your needs. I'll let you know what I find out.
talk to you later, -
Because 'normal' and 'fit to page' layouts cut off left side of printed material I'm using 'borderless' layout but that doesn't give me the paper size option I need. Any hints on how to save the left side of paper and how to change paper size in borderless layout. Any hints in print preview wherein I can print just 'one or two' of multiple pages without having to return to the set-up page?
Hi vitaminsg,
You can set it so that "Fit to Page" printing is the default setting. To do this, use the following steps:
1. Click Start.
2. Click Control Panel.
3. Click Printers and other Hardware.
4. Click Printers and Faxes.
5. Right click the PIXMA MX432 and click Printing Preferences.
6. Click the Page Setup Tab.
7. Select Fit to Page under Page Layout, then press OK.
This should now be the default setting for all programs.
Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well. -
How to use box in Scripts?
Hi Guys,
can anybody tell me how to use Box and purpose of box?
My req is i have to display 5 columns ina Script thru printer but problem is i am not able to display the columns values in a vertical way i am getting in a jig jag way.so what shall i use ? is BOX ok ?
Thanks,
Gopi.Hi Kodandarami,
I had done like that only see here is the code below.here L1 L2 L3 and L4 are paragraph left Justified item's.
so do u think is ther anything wrong with the code Now my doubt is what shall i do to get the Columns Values in staright even if there is not value for some of their previous columns?
= -
L1 Itm,,Material,,Mat.Desc,, Batch,, SLoc,, Stor.bin
/* Stock type
L3 ,, Counted qty.,,Un
L -
= -
/E POS_BELZEILE2
/: PROTECT
/: BOX WIDTH '5.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 6
L4 &ISEG-ZEILI&,,&ISEG-MATNR+0(5)&,,&MABDR-MAKTX&,,&ISEG-CHARG&,,
= ,,&ISEG-LGORT&,,&MABDR-LGPBE&
/* ,&T064B-BTEXT&
L3 ,, _______________,,&ISEG-ERFME&
/: ENDPROTECT
/E POS_ENDPAGE
Thanks,
Gopi.
Maybe you are looking for
-
Drop down in a table not in ALV table but the normal table
Dear All, My question is regarding the drop down in a table. I am trying to put the drop down in a table and i am trying to fetch the data from the Data dictionary. Since my table contains more than 3 records all the columns are fetched accordingly b
-
Task list timings are not copied to the Productio order
Dear Frndz, I have created a task list for an item say FGA, where I have mentioned the SETUP Time as 15 Min, MACHINE time as 10 Min and LABOR time as 10 Min.But, when I create a production order for the same item these timing details are getting copi
-
How can I use XL report to extract data in Fixed Assets module?
Can user use XL Reporter to develop reports on Fixed Assets data such as FA Master Data? In another word, can XL Reporter be used on FA module? If so, how can this be done?
-
How to identify what are all the errors appears in process chain,
Hi all, i have a process chain running, but i want to find out what are all the errors that the process chain has thrown thanks pooja
-
Need example on Java Sections.....
Hi I need example senario on java sections and how we use both java sections and user defined funtions... can u give me any blog on that..... and i need information about packages used in java for sapxi.... and which class is used for what purpose...