Changing af:messages width and height
Hi gang
Does anybody have a suggestion how I can expand the default width and height of the af:messages popup under JDev 11.1.1.2.0? From what I can see there are no styles defined in the skin, no properties on the component, and the inline style width/height properties are ignored.
Your help appreciated.
Regards,
CM.
I have to agree with 9 of the 14 respondents Keyshia Cole's new nose is indeed natural looking :-)
The problem we're getting is two fold:
a) Occasionally our error messages have long words, the messages tag isn't hard wrapping, and this is resulting in a horizontal scroll bar.
b) Sometimes the number of messages displayed is greater than the vertical space, so we get a vertical scroll bar.
c) Sometimes both, which looks cr@p.
The combination can make the app less user friendly as the user has trouble assessing/reading the error messages.
While we can do some minor tweaking to minimize word length and number of error messages, the preferred method would be just to increase the size of the dialog.
CM.
Similar Messages
-
Changing video frame width and height...
In Adobe Premiere Pro CS 5 I cannot seem to produce (output) a video larger than frame width: 720 and frame height: 480. The video is recorded in full HD 1920 x 1080p but after editing and adding effects in Premiere Pro CS5, the video changes to only 720 x 480.
1) Where are the settings in Premiere Pro changed to produce a video size of frame width: 1280 and frame height: 720 or even frame width: 1920 and height: 1080?
2) Is it possible to produce a video at 1920 x 1080 or is 720 x 480 the max?
Your time is appreciated.John,
For now I will be using the videos for youtube promos and viewing on desktops but if I were, I would more likely output to DVD. From what I understand it doesnt matter if I output 720 x 480 or 1920 x 1080 if it's going on youtube, however I would like the best quality video possible given that these videos wont be very long. (Elaborate on this if you can clear some stuff up for me).
Also, I may have mislead readers with my thread title "Changing video frame width and height." I guess a more accurate title would be "How to Change frame width and height of Video Output." Don't get me wrong 720 x 480 looks great on my desktop, but I would also like to output one at 1280 x 720? -
Change the width and height of Landscape Layout for a report in 10G
Hi,
I'm new to reports and when i built the report in report builder 10g, the layout orientation was 'Landscape', hence I assumed that it'll be a landscape layout.
However, the width and height fields of the main section are 11 and 20 respectively. However, the height should ideally be 8.5. When i try to change it I get the following error message :
Layout canvas must remain large enough to fit layout objects.
Could you please tell me how to change the height of this landscape layout to 8.5 from 20.
The report has several main frames within a repeating frame, since the same report has to run multiple times.
Is it possible to have a repeating page across pages (crossing the horizontal margin) and hence have some of the main frames move down to the next page. I'm trying to do this to then be able to reduce the height of the main section of the report to 8.5. Its not working though because I'm getting the following error :
REP 1814 : Report cannot be formatted. Object "vertically" can never fit R_Main (the name of the repeating frame enclosing all objects)
Thanks,
PriyankaTo reduce the Hieght, first make the layout design fit into the new value..
-
Revision: 10085
Author: [email protected]
Date: 2009-09-09 07:39:54 -0700 (Wed, 09 Sep 2009)
Log Message:
Fixing video width and height getting reset when there's no true dimensional change reported by 'onMetaData'.
Modified Paths:
osmf/trunk/framework/MediaFramework/org/openvideoplayer/video/VideoElement.ashi their i have tried your last code but their is a problem with it on my pc that when i click the send video button it gives the error related to vector,
Vector deviceList = CaptureDeviceManager.getDeviceList()
di = (CaptureDeviceInfo)deviceList.firstElement();
returns zero.
please help my email address is [email protected]
kindly send me an email regarding the solution of my problem. i am using 'creative web cam' over XP windows. -
How to change the width and height of the visible part of the of the report
I have define a report with paper size 'Letter', orientation 'landscape' and 30 columns. Dynamically I am changing width of columns and suppressing many columns of the report.
Mostly using first 16-20 columns and others get suppressed.
Now problem is that when navigating the report thru crystal viewer, a huge blank spaces getting display on right of the report. When we take jump to some part of report thru navigation tree, the whole report gets shifted to left and only blank part is visible and it is required to scroll left.
Even printing is not working correctly.
Is there any way to change the width and height of the visible part of the report in the viewer thru .net classes? Setting the width and height of the report in Load event handler doesn't help.
Example: CrystalReportViewer1.Width = 200; - is not helping.
Is there any other solution?
Please let me know.
Thanks
Mahesh PatelHi Yogesh,
Your suggestion 'reportDocument.PrintOptions.PaperSize=PaperSize.PaperLedger;' along with 'PaperOrientation' setting as follow works fine. I tried to switch between Landscape and Portrait depending on report width.
reportDocument.PrintOptions.PaperOrientation = PaperOrientation.Landscape;
But problem with crystal viewer remain as it is.
While navigating report thru crystal viewer, when we take jump to some part of report thru navigation tree, the whole report gets shifted to left and it is required to scroll left.
Thanks for your very good suggestion.
Mahesh Patel -
How to automate the changing of Width and Height of the document
Hi,
I just want to know if anyone already automate the changing of width and height of document(eps file).
Thanks,
BuddyCheck out SetDocumentSetup from kAIDocumentSuite.
-
Hello, how can i change widht and hight on iWeb?
welcome to the forum, to change anything in iweb use the inspector panel. Choose page - layout to alter the width and height. The inspector panel is at the bottom of the page and the page set-up is the second icon along the top of the panel. Hope that makes sense and gets you up and running.
-
Camera Image Display - changing width and height.
Ok, so I wrote this simple program, but for some reason i cant control the offsets, width and height (attributes related to the image display on front panel). When i go to MAX, i am able to change these attributes, why cant i do it in labview? Any ideas?
You need to put the width and height controls inside your loop to adjust while running.
From the image you provided, the width and height are set once outside the loop, and then you sit in the loop, so they can't be adjusted again. -
Change width and height in a rich symbol
Hi!
I'm trying to build a rich symbol in fw cs4 so I can use it in multiple projects and I'd need some boxes to scale to certain sizes I would assign through the properties panel.
Is it possible? I've seen in former versions that both width and height are read-only but I can't find anything for current version.
Also, if possible, can I set the x and y position?
What I've been trying is:
box.height = height;
box.width = width;
where box is an element (I've changed other properties and it works) and height and width are values (which also work)
Thanks a lotI need to know if this is possible, too!
Hopefully this is working somehow.
Thanks -
How do I save the width and height of a photo for repeated use?
How do I save the width and height of a picture for repeated use, rather than having to enter it each time in the 'new file' box?
Thanks, Ed Jackson.It could be that I'm older and have forgotten. I'm now 73 and will admit I have forgotten many things over the years. I have been using Photoshop since Photoshop version 3. And can not really recall which features or changes were made in ever version of Photoshop I have installed. Adobe has added many features over the years. The number of bugs introduce has also greatly increased after CS3. "New Doc Sizes.psp" in your user id preferences is edited using the two buttons in the new document dialog.
As for guide lines in new documents Photoshop CS6 or CC seem to add some for video file presets with guide lines. I do not know how to edit or add guide line to new doc presets. Guide line actions are easy to create. I have also seem some guideline in new documents when I did not expect any perhaps a new bug. Photoshop like most software has bugs. If you do not see Adobe new presets perhaps you copied an old "New Doc Sizes.psp" over Adobe's newer default file or Adobe migrared you presets and wand wiped their presets out. There are bugs. Close Photoshop down and rename your current "New Doc Sizes.psp" in you user id Photoshop cc preferences folder and start Photoshop it will add a dedault "New Doc Sizes.psp" file see if you see Adobe new presets in the new doc pull down when you select video and film... -
Revision: 3580
Author: [email protected]
Date: 2008-10-10 16:24:50 -0700 (Fri, 10 Oct 2008)
Log Message:
MXMLG-243 - Path does not draw in the correct location when width and height are set
Fixed MatrixUtil.transformBounds to offset the four bound points by the origin
Bug: MXMLG-243
QA: Yes
Doc: No
Review: Evtim
Ticket Links:
http://bugs.adobe.com/jira/browse/MXMLG-243
http://bugs.adobe.com/jira/browse/MXMLG-243
Modified Paths:
flex/sdk/trunk/frameworks/projects/flex4/src/mx/utils/MatrixUtil.asHi,
For web application problem, please post your thread in
ASP.NET forum.
Best Wishes!
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and
makes it easier for other visitors to find the resolution later. -
Nested canvas in GridLayout can't get its width and height
Hello,
I have a class entitled DisplayCanvas, which will accept some parameters from an invocation in another class including a shape and message parameters. These parameters must be centered in the instance of DisplayCanvas.
For some reason, when I use this.getWidth() and this.getHeight() within my DisplayCanvas class, I get 0 and 0! I need the width and height in order to center the parameters the user will enter.
Why does the width and height result at 0? What can I do to get the width and height?
In my DisplayCanvas class notice the lines:
canWidth = this.getWidth();
canHeight = this.getHeight();
For some reason the result is 0 for each!
Here is my code for the DisplayCanvas class:
//import the necessary clases
import java.awt.*;
import java.applet.*;
import javax.swing.*;
//begin the DisplayCanvas
public class DisplayCanvas extends Canvas
//declare private data members to house the width and height of the canvas
private int canWidth;
private int canHeight;
//declare private data members for the shape and message
private String message;
private String shape;
private Color sColor;
private int sWidth;
private int sHeight;
private String font;
private Color ftColor;
private int ftSize;
//declare public data members
//constructor of DisplayCanvas
public DisplayCanvas()
//set the width and height
canWidth = this.getWidth();
canHeight = this.getHeight();
//set all data members to defaults
message = "";
shape = "";
sColor = null;
sWidth = 0;
sHeight = 0;
font = "";
ftColor = null;
ftSize = 0;
} //end the constructor
//begin the setParams function
public void setParams(String m, String s, Color c, int w, int h,
String f, Color ftC, int ftS)
//set all private data members of DisplayShape to the arguments
//this function assumes error checking was done by DemoShape
message = m;
shape = s;
sColor = c;
sWidth = w;
sHeight = h;
font = f;
ftColor = ftC;
ftSize = ftS;
} //end the setParams function
//begin the public paint function of ShowShape
public void paint(Graphics g)
//set and output the shape according to the arguments
//determine the x and y of the shape
int x = (canWidth - sWidth) / 2;
int y = (canHeight - sHeight) / 2;
//set the color for the graphic object
g.setColor(sColor);
//output the shape
g.drawRect(x, y, sWidth, sHeight);
//set and output the message according to the arguments
//set the color and the font for the graphic object
g.setColor(ftColor);
g.setFont(new Font(font, Font.PLAIN, ftSize));
//determine the centering of the message
//output the message with the settings
g.drawString(canWidth + " " + canHeight, 10, 10);
} //end the paint function of ShowShape class
} //end the DisplayCanvas classHere is my form entry class using the nested DisplayCanvas instance entitled drawCanvas:
//import the necessary java packages
import java.awt.*; //for the awt widgets
import javax.swing.*; //for the swing widgets
import java.awt.event.*; //for the event handler interfaces
//no import is needed for the DisplayCanvas class
//if in the same directory as the DemoShape class
public class DemoShape extends JApplet
//declare private data members of the DemoShape class
//declare the entry and display panel containers
private Container entire; //houses entryPanel and displayCanvas
private JPanel entryPanel; //accepts the user entries into widgets
private DisplayCanvas drawCanvas; //displays the response of entries
//required control buttons for the entryPanel
private JTextField xShapeText, yShapeText, messageText, fontSizeText;
private ButtonGroup shapeRadio;
private JRadioButton rect, oval, roundRect;
private JComboBox shapeColorDrop, fontTypeDrop, fontColorDrop;
//declare public data members of the DemoShape class
//init method to initialize the applet objects
public void init()
//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 Rectangle", "Oval"};
String colors[] = {"Black", "Blue", "Cyan", "Dark Gray",
"Gray", "Green", "Light Gray", "Magenta", "Orange",
"Pink", "Red", "White", "Yellow"};
//declare variables to assist with the layout
//these are the left and right justified x coordinates
int ljX = 10; int rjX = 150;
//this is the y coordinates for the rows
int yRow1 = 10; //the shape rows
int yRow2 = 40;
int yRow3 = 60;
int yRow4 = 130;
int yRow5 = 150;
int yRow6 = 210; //the message rows
int yRow7 = 240;
int yRow8 = 260;
int yRow9 = 300;
int yRow10 = 320;
int yRow11 = 360;
int yRow12 = 380;
//these are the widths for the text boxes, drop downs
//message entry, big message entry and radio buttons
int tWidth = 30; int dWidth = 100;
int mWidth = 250; int bmWidth = 250;
int rWidth = 125;
//the height is universal, even for the messages!
int height = 25;
//set a content pane for the entire applet
//set the size of the entire window and show the entire applet
entire = this.getContentPane();
entire.setLayout(new GridLayout(1, 2));
//create the entry panel and add it to the entire pane
entryPanel = new JPanel();
entryPanel.setLayout(null);
entire.add(entryPanel);
//create the display canvas and add it to the entire pane
//this will display the output
drawCanvas = new DisplayCanvas();
entire.add(drawCanvas);
//entry panel code
//add the form elements in the form of rows
//the first row (label)
JLabel entryLabel = new JLabel("Enter Shape Parameters:");
entryPanel.add(entryLabel);
entryLabel.setBounds(ljX, yRow1, bmWidth, height);
//second row (labels)
JLabel shapeTypeLabel = new JLabel("Select Shape:");
shapeTypeLabel.setBounds(ljX, yRow2, mWidth, height);
entryPanel.add(shapeTypeLabel);
JLabel shapeColorLabel = new JLabel("Select Shape Color:");
shapeColorLabel.setBounds(rjX, yRow2, mWidth, height);
entryPanel.add(shapeColorLabel);
//third row (entry)
rect = new JRadioButton("Rectangle", true);
oval = new JRadioButton("Oval", false);
roundRect = new JRadioButton("Round Rectangle", false);
rect.setBounds(ljX, yRow3, rWidth, height);
oval.setBounds(ljX, yRow3 + 20, rWidth, height);
roundRect.setBounds(ljX, yRow3 + 40, rWidth, height);
shapeRadio = new ButtonGroup();
shapeRadio.add(rect);
shapeRadio.add(oval);
shapeRadio.add(roundRect);
entryPanel.add(rect);
entryPanel.add(oval);
entryPanel.add(roundRect);
shapeColorDrop = new JComboBox(colors);
shapeColorDrop.setBounds(rjX, yRow3, dWidth, height);
shapeColorDrop.addFocusListener(new focusListen());
entryPanel.add(shapeColorDrop);
//the fourth row (labels)
JLabel xShapeLabel = new JLabel("Enter Width:");
xShapeLabel.setBounds(ljX, yRow4, mWidth, height);
entryPanel.add(xShapeLabel);
JLabel yShapeLabel = new JLabel("Enter Height:");
yShapeLabel.setBounds(rjX, yRow4, mWidth, height);
entryPanel.add(yShapeLabel);
//the fifth row (entry)
xShapeText = new JTextField("200", 3);
xShapeText.setBounds(ljX, yRow5, tWidth, height);
xShapeText.addFocusListener(new focusListen());
entryPanel.add(xShapeText);
yShapeText = new JTextField("200", 3);
yShapeText.setBounds(rjX, yRow5, tWidth, height);
yShapeText.addFocusListener(new focusListen());
entryPanel.add(yShapeText);
//the sixth row (label)
JLabel messageLabel = new JLabel("Enter Message Parameters:");
messageLabel.setBounds(ljX, yRow6, bmWidth, height);
entryPanel.add(messageLabel);
//the seventh row (labels)
JLabel messageEntryLabel= new JLabel("Enter Message:");
messageEntryLabel.setBounds(ljX, yRow7, mWidth, height);
entryPanel.add(messageEntryLabel);
//the eighth row (entry)
messageText = new JTextField("Enter your message here.");
messageText.setBounds(ljX, yRow8, mWidth, height);
messageText.addFocusListener(new focusListen());
entryPanel.add(messageText);
//the ninth row (label)
JLabel fontTypeLabel = new JLabel("Select Font:");
fontTypeLabel.setBounds(ljX, yRow9, mWidth, height);
entryPanel.add(fontTypeLabel);
JLabel fontColorLabel = new JLabel("Select Font Color:");
fontColorLabel.setBounds(rjX, yRow9, mWidth, height);
entryPanel.add(fontColorLabel);
//the tenth row (entry)
fontTypeDrop = new JComboBox(fonts);
fontTypeDrop.setBounds(ljX, yRow10, dWidth, height);
fontTypeDrop.addFocusListener(new focusListen());
entryPanel.add(fontTypeDrop);
fontColorDrop = new JComboBox(colors);
fontColorDrop.setBounds(rjX, yRow10, dWidth, height);
fontColorDrop.addFocusListener(new focusListen());
entryPanel.add(fontColorDrop);
//the eleventh row (label)
JLabel fontSizeLabel = new JLabel("Select Font Size:");
fontSizeLabel.setBounds(ljX, yRow11, mWidth, height);
entryPanel.add(fontSizeLabel);
//the final row (entry)
fontSizeText = new JTextField("12", 2);
fontSizeText.setBounds(ljX, yRow12, tWidth, height);
fontSizeText.addFocusListener(new focusListen());
entryPanel.add(fontSizeText);
//display panel code
//use test parameters
//these will later be retrieved from the entries
drawCanvas.setParams("Hello", "roundRect", Color.red,
100, 100, "Serif", Color.black, 12);
//set the applet to visible
//set to visible and display
entire.setSize(800, 600);
entire.setVisible(true);
} //end the init method
//declare an inner class to handle events
private class focusListen implements FocusListener
//supply the implementation of the actionPerformed method
//pass an event variable as the argument
public void focusLost(FocusEvent e)
{ JOptionPane.showMessageDialog(null, "Focus lost."); }
//declare an empty focus gained function
public void focusGained(FocusEvent e) {}
} //end testListen class
} //end DemoShape classSorry for glossing over your code sample, particularly as it looks like one of the best I've seen so far on the forums, but I'm pretty sure the answer you are looking for is as follows:
Java doesn't render a component until paint() is called so until then you are not going to have any size settings because the jvm simply doesn't know how big the visual component is. This makes sense when you think about what the jvm is doing. The layout manager controls the display of the components depending on the settings it is supplied. So until it knows how many components you want, where, what kind of spacing, etc, etc, etc, how can the size be determined.
The true cycle of events is therefore:
create an instance of DisplayCanvas,
add it to your container,
make the container visible (which renders the component),
get the size of the DisplayCanvas instance.
You are being hampered because your desired chain of events is:
create an instance of DisplayCanvas,
get the size of the DisplayCanvas instance,
add it to your container,
make the container visible.
This state of affairs is highly annoying and then leads to the next question "what do we do about that?". There is a cunning trick which is to get the jvm to render the component to an off-screen image, thus calculating the dimensions of the component so that you can do precisely the kind of enquiry on the object that you have been looking for. It should be noted that this may not be the visual size for all the reasons given above, but it is the "preferred size" for the component. Check the Swing tutorials and have a look at the section on Layout Managers for a run down on what that means.
Anyway, we can use this handy code sample to determine the preferred size for your component. Notice the call to "paint()" (normally you would never make a direct call to paint() in swing) and the "g.dispose()" to free resources:
package com.coda.swing.desktool.gui;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
public class PaintUtil
public PaintUtil()
super();
public static Component paintBuffer(Component comp)
Dimension size = comp.getPreferredSize();
comp.setSize(size);
BufferedImage img = new BufferedImage(size.width, size.height, BufferedImage.TYPE_INT_ARGB);
Graphics2D g2 = img.createGraphics();
comp.paint(g2);
g2.dispose();
return comp;
}Before you make a call to getWidth() or getHeight() put in a call to "PaintUtil.paintBuffer(this);" and see what happens.
By the way, I can't claim credit for this code ... and I really wish I could remember where I got it from myself so I can thank them :) -
How to set a minimum width and height for a stage or scene?
Hello,
Does anyone how to set a minimum width and height for a stage or scene?
I tried listening for width/height property value changes and then adjust the width/height if necessary, but that causes unpleasant flickering of the window.
In JavaFX 2.1 beta SDK for Mac OS, the Stage class has setMinWidth() and setMinHeight() functions which work very well.
I'm wondering what's the equivalent way to do that when using the FX SDK for Windows.
Any help is appreciated!
Thanks.I was wondering how to enforce a minimum stage size with JavaFX 2.0.3.The same flickering way you are currently doing it. See: http://javafx-jira.kenai.com/browse/RT-15200 "Need a way to set the minimum size of a window"
-
Specifying target width and height
I want to make one of my b to b links just a small pop-up
listing board members names which would open in front of the
current page. Do i create a separate html file to link to? If so,
how do I set width and height?
Is there some other way to do this?
TIA
GretchenDW has a native behavior called "Open Browser Window" which
will let you do
this.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"InwoodLady" <[email protected]> wrote in
message
news:gr0h1e$s39$[email protected]..
>I want to make one of my b to b links just a small pop-up
listing board
>members
> names which would open in front of the current page. Do
i create a
> separate
> html file to link to? If so, how do I set width and
height?
>
> Is there some other way to do this?
>
> TIA
> Gretchen
> -
There is a way to insert an image inside of the html code
with width and height already? I mean, now, if I want to insert an
image at the code, goes only <img src="images/test.gif" /> I
d like that if I insert an image it goes as: <img
src="images/canto_topo.gif" width="8" height="29" />
is possible in dreamwaver to do that?
Thanks!
VismonaIf you insert the image using the "Insert Image" function, DW
will
automatically insert the width and height.
Or, if you'd rather insert them the way you are, in the
Property Inspector
on the far left, click the dimensions next to the Image
field, and DW will
automatically add (or correct) the width and height.
Hope that helps,
Patty Ayers | www.WebDevBiz.com
Free Articles on the Business of Web Development
Web Design Contract, Estimate Request Form, Estimate
Worksheet
"Vismona" <[email protected]> wrote in
message
news:gc60ut$nmv$[email protected]..
> There is a way to insert an image inside of the html
code with width and
> height
> already? I mean, now, if I want to insert an image at
the code, goes only
> <img
> src="images/test.gif" /> I d like that if I insert an
image it goes as:
> <img
> src="images/canto_topo.gif" width="8" height="29" />
>
> is possible in dreamwaver to do that?
>
> Thanks!
> Vismona
>
Maybe you are looking for
-
***Balance sheet Report book got Disappeared from HFM Explorer***
Hi All, Actually one of my user is able to open the balance sheet report book from hfm workspace and run the report till last month. No one has removed any of his access.He is able to see all the other reports except Balance sheet report this month.A
-
what is the functional flow of SD ? what are the T-codes for the flow?
-
Windows 2008 R2 Multi-Site (geo) Cluster File Server
We need to come up with a new HA file server (user drive data) solution complete with DR. It needs to be 2008 R2, cater for about 25TB of data, and be suitable for 500 users (nothing high end on I/O). I don't want to rely on DFS for any form of resil
-
How to replace audio track in mpg file (3,4 Gb) by mp3 fies?
How to replace audio track in mpg file (3,4 Gb) by mp3 fies? Without loosing video quality?
-
When closing browser looses all my settings and goes back to default on reopening
I set what I want in options like do not remember history and font size and do not show download window when installed. every time I shut it down and restart it later everything goes back to default.