How to set minimum atribute of validateDateTimeRange
hi,
i want to set the minimum and maximum value of the artribute of validateDateTimeRange through table how can i do it.for example max value i would shoud be sysdate and minimum value be from table.
thanks in advance
One posible solution is to add a ComponentListener to the
JFrame that implements ... (struggles to remember) ...
componentResized().
Inside componentResized(), check the size of your JFrame,
and if it is smaller than your preferred minimal dimension,
resize it up to your minimum.
// in the constructor, perhaps, or initialization routine
addComponentListener(
newComponentAdapter()
public void componentMoved(ComponentEvent e)
Dimension size = e.getComponent().getSize();
size.width = Math.max(size.width, myMinimalWidth);
size.height = Math.max(size.height, myMinimalHeight);
e.getComponent.setSize(size);
}); Pity there's no setMinimumSize() like the JComponent class.
Best of luck !
Eric
Similar Messages
-
How to set Minimum size of JFrame?
Hi,
I want to set minimum size of my JFrame. How can i set it?
I want to maintain a minimum size while resizing the JFrame. The user should not resize beyond the minimum size of JFrame.
Any body knows solution, please post it.
Thanks in Advance.One posible solution is to add a ComponentListener to the
JFrame that implements ... (struggles to remember) ...
componentResized().
Inside componentResized(), check the size of your JFrame,
and if it is smaller than your preferred minimal dimension,
resize it up to your minimum.
// in the constructor, perhaps, or initialization routine
addComponentListener(
newComponentAdapter()
public void componentMoved(ComponentEvent e)
Dimension size = e.getComponent().getSize();
size.width = Math.max(size.width, myMinimalWidth);
size.height = Math.max(size.height, myMinimalHeight);
e.getComponent.setSize(size);
}); Pity there's no setMinimumSize() like the JComponent class.
Best of luck !
Eric -
How to set minimum font size in mail app?
How can I set a minimum font size in mail app? I have received mails that have a font size that seems to be smaller than 9pt which results being nearly unreadable. Sure its possible to increase the font size by pressing cmd + "+" but this setting isn't remembered for the next time I open these mails. Prior to Mavericks there was a solution to write the minimum font size to the defaults. Anything similar for Yosemite?
No, this only applies to the font size for the header displayed above the mail content and the font type and size of the Rich Text mails your are composing. With this setting you cannot modify the font size or type of received messages.
-
SGA_MAX_SIZE and SGA_TARGET how to set minimum for pools
Hello, we are on 10.2.0.4, Solaris 5.10. We are using ASMM, so SGA_TARGET and SGA_TARGET size are set. Hence, buffer cache, shared pool, large pool and java pool are automatically sized. However, we do not have any minimum values for those. How do I determine what this minimum value should be?
thank you!HI,
Yes you need size the minimum value for shared pool, buffer cahce tec... else it will start consuming wholeThe documentaion
states:
You need not set the size of any of these components explicitly. By default the parameters for these components will appear to have values of zero. Whenever a component needs memory, it can request that it be transferred from another component by way of the internal automatic tuning mechanism. This transfer of memory occurs transparently, without user intervention.Can you please explain how would it start consuming the entire SGA? -
How to set minimum and maximum X scale in the XY graph if i have a X scale time format ?
Hi,
i choose in the picture enclosed, a time format for the X scale of the XY Graph.
The problem is that i am not able to set the minimum and maximum of the X scale: In fact the property nodes of the minimum and maxinum X scales ask for double as input.
But i need to set my minimum and maximum X scale to be a time (because I already set the X scale format to a time)
Could u help me please ?
Samer,
Attachments:
scale.JPG 8 KBplease i have another problem:
i put the XY Graph in a while loop with maximum and minimum Xscale as property nodes inputs.
The problem is that when i make a zoom i can just see the zoom for a little while and then (because of the while loop) the Xscale is updated.
is there a method so that the Xscale be updated just when i change its value ?
or Could u tell me how could i zoom properly ?
Samer,
Attachments:
zoom.JPG 11 KB -
How to set minimum size for the 'location' box in toolbars?
I reorganized my toolbars by merging the location and tabs bar. I have the location on the left hand side and the tabs *next* to it, like this:
[ (<)(>) [LOCATION] /tab\/tab\/tab\ ]
Unfortunately when the number of tabs increases, the location box becomes so small that I cannot even see the url of the site I'm in...
Is there a way to force a minimum width for the location box? I couldn't find a setting in about:config for it (I imagine that this would be a browser.urlbar setting)You rock! The combination of fixed width tabs with the stylish Add-on, and the single line of script below just made my day!
#main-window[sizemode="maximized"] #TabsToolbar, #TabsToolbar > #urlbar-container { min-width: 350px; }
Many thanks! -
How to set minimum size for PieChart wedge?
The following chart has one wedge that is very thin. I know it is because the data value for that wedge is very small (262) compared to the other wedge data values, but I'd like to be able to set a minimum wedge size.
Any ideas?
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script><![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var expenses:ArrayCollection = new ArrayCollection([
{Expense:"Jan", Amount:2200000},
{Expense:"Feb", Amount:4700000},
{Expense:"Mar", Amount:2300000},
{Expense:"Jul", Amount:262}
]]></mx:Script>
<mx:Panel title="Pie Chart">
<mx:PieChart id="myChart"
dataProvider="{expenses}"
showDataTips="true"
>
<mx:series>
<mx:PieSeries
field="Amount"
nameField="Expense"
labelPosition="callout"
/>
</mx:series>
</mx:PieChart>
</mx:Panel>
</mx:Application>This might be close enough to what you're looking for:
The FB 4 code is shown below:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
minWidth="955" minHeight="600">
<fx:Script>
<![CDATA[
import mx.charts.HitData;
import mx.collections.ArrayCollection;
import mx.controls.Alert;
import mx.utils.ObjectUtil;
[Bindable] private var Amount:String = "";
[Bindable] private var minAmount:String = "";
[Bindable]
public var expenses:ArrayCollection = new ArrayCollection([
{Expense:"Jan", Amount:2200000, minAmount:2200000},
{Expense:"Feb", Amount:4700000, minAmount:4700000},
{Expense:"Mar", Amount:2300000, minAmount:2300000},
{Expense:"Jul", Amount:262, minAmount:50000}
private function getDataTips(hitData:HitData):String {
// add percent when the user gets the DataTip
var percentValue:Number = (hitData.item.Amount / 9200262) * 100;
var f:int = 3;
if (percentValue > 1) {
f = 1;
return hitData.item.Expense + ": " + percentValue.toFixed(f) + " % (" + hitData.item.Amount + ")";
private function getData(series:PieSeries, item:Object, fieldName:String):Object {
if (item.minAmount != 50000) {
return item.Amount;
psExpenses.setStyle("labelPosition", "callout");
} else {
return item.minAmount
psExpenses.setStyle("labelPosition", "none");
]]>
</fx:Script>
<mx:Panel title="Pie Chart">
<mx:PieChart id="myChart"
dataProvider="{expenses}" dataTipFunction="getDataTips"
showDataTips="true">
<mx:series>
<mx:PieSeries id="psExpenses" nameField="Expense" dataFunction="getData"/>
</mx:series>
</mx:PieChart>
</mx:Panel>
</s:Application> -
How to set minimum height size for an empty XML Form iview
Hi,
I'm trying to configure the minimum height size of an XML Form iview without sucess. Even when there is no content to show, iview height size is around 80 pixels. When there is content the automatic configuration works fine and the iview is resized properly.
The iview has automatic size and the minimum size for automatic is with 5 pixels...
Any ideas?
Thanks,
MarceloHi,
I'm trying to configure the minimum height size of an XML Form iview without sucess. Even when there is no content to show, iview height size is around 80 pixels. When there is content the automatic configuration works fine and the iview is resized properly.
The iview has automatic size and the minimum size for automatic is with 5 pixels...
Any ideas?
Thanks,
Marcelo -
How to maintain minimum price limit and maximum price limit for a condition
Hello Gurus,
Goodmorning,
How to set minimum price limit and maximum price limit for a pricing condition type where we will do this ?, is it possible to set in VK11 ?
Note- I can see minimum and maximum setting in condition type pricing - in SPRO but not seen anything in VK11 condition record maintaince . so how to maintain in condition record( VK11-Minimum limit price and Max limit price )
Looking for your inputs
Thanks in advance
Regards
Venkathi,
in VK12
select the condition record - goto blue ladder icon
there you can maintain scales
like lower limit and upper limit.
balajia -
How to set a minimum size of a JFrame
hi freinds,
i have written a swing application which starts like this ,
public class workerclass extends JFrame implements ActionListener {
blah blah blah ..
now can you please tell me how to set a minimum size for this application once it starts so that user cant minimize it more than that minimum size.....
when i tried
setDefaultLookAndFeelDecorated(true);
it did my job by setting it to a particular size which wasnt minimizable, but this default look and feel looked ugly.
so i used system look and feel
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
but with this how do i set the minimum size..
please do help
and one thing more , like
in my main Method when i say
new workerclass().setSize(500,500); or say(100,100) or say(300,300)
new workerclass().setVisible(true);
the size (***,***) , doesnt reflect when my application starts, it always starts with some damn fixed size , what can be the issue .
waiting.........
Thankshow do i set my Jrame to a minimum size so that
minimizing beyond that can be restrictedThis is what the code is all about
don't know your code but ..
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
public class workerclass extends JFrame implements
ActionListener,ComponentListener {
public void initcomponenet()
setJMenuBar();
pack();
addComponentListener(this);
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new myclass.setSize(500,500);
new myclass().setVisible(true);
public void componentShown(ComponentEvent e)
public void componentResized(ComponentEvent e)
if(getWidth()<200)//restrict width to minimum 200
setSize(200,getHeight());
if(getHeight()<100)//restrict Height to minimum
um 100
setSize(getWidth(),100);
public void componentMoved(ComponentEvent e)
public void componentHidden(ComponentEvent e)
Thanks kanad , your code is working ... you desere lot more than a duke dollar but for now i can only give that :-( , please accept it :-) -
How to set the minimum size of the JDialog.
Hi Could any one tell me ,
How to set the minimmum size of the JDailog.
I am using the JDialog's setMinimumSize(...)
But it is not working.....
Regards -
Vikas Kumar sahuThat's pretty much all there is, although you could always add a componentlistener and manually not let the size go below your minimum.
Or you could try overriding setSize... -
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"
-
Error while setting Minimum value to Input Number Spin Box..
Hai
I drag and drop a VO and created a table.In that table,i convert a column which contain an InputText field to Input Number Spin Box.At the time of page load ,the table fetches the datas from the DataBase and showing Number values in the SpinBox.After that,When i scroll the table through vertical scrollBar,the table showing *"fetching data"* and Error is throwing as *"The value must be Number"* .. In the VO,this attribute is Number.
THIS ERROR ONLY OCCURS when i set the Minimum value of spinBox ..The purpose of setting minimum value is that i only want user to select ve value only..How can i restrict the user for selecting only ve values..?(ie,*How can i set minimum value to SpinBox?)*Try changing the datatype of your attribute in the EO to be Double instead of Number.
-
How to set a fixed width for a box
Hi there,
Struggling here.... must admit.
I need a solution whereby I can set a fixed width for a box that is grouping two buttons. I suppose generally, I want to know how to set a fixed width for anything element.
See the picture below. I want the two buttons to stay the same distance apart, and I want the grouped buttons to stay the same distance from the right edge of the window, even as a user resizes the window.
This is what happens when you reduce the size of the window .....
I would like to stop this from happening.
I can't figure out how accomplish keeping the parent div a fixed width, and a fixed position from the right side of the window, so the buttons won't overlap.
Perhaps I'm doing the whole thing wrong.
I mean, is there a way to accomplish this without grouping the buttons? That is, make the buttons fixed width, fixed distance apart from each other, and fixed distance from the right side of the window, even as the user resizes the page?
I am trying to accomplish this using the Min/Max width settings, but given that there are so many different units to choose from, and the fact that when I place a button or box on the screen, it seems to be creating that button or box with a percentage-based width, I don't know how many pixels to set it to.... sigh....
Many thanks in advance for your help.
SamOkay after much futzing I figured out at least part of the solution I need, but if someone knows of a more efficent way to do this please let me know.
I set a fixed minimum width in pixels for both of the buttons at 156px.
I then made the left button float left and the right button float right.
I then made the parent div for the buttons float right.
That made the buttons stay the same size.
The only thing I need to figure out how to do now is make the parent div stay a consistent distance in pixels from the right. I tried setting a right margin but that didn't work. As you size the window down, the div gets closer to the edge, until it passes it. -
Setting Minimum RSSI threshold for client connections
Hi,
We are deploying a new wireless network for guest users of private lounges at airports, using a 5508 WLC and 3501 AP’s. The SSID uses open L2 authentication with a web auth passthrough login splash page.
We require preventing people outside these private areas to connect to the SSID, and we would like to do so by only allowing clients to connect if they exceeed the minimum RSSI guaranteed in the private areas (i.e. prevent connections below a certain level, such as -70dB). We tried to configure this by settings several parameters, for example the “Minimum RSSI” under “Client Roaming” without achieving the desired effect.
Can a minimum RSSI be set up so clients would not connect unless they receive the minimum specified signal level? If so, can anyone please advise how to set this up?
Many thanks in advance for your expert advise…
Regards
Luis AThis one is an idea (but costly): Faraday cage (aka Faraday mesh or Faraday shield)
If installed correctly, your wireless signal will be inside the four walls (don't know if you have those glass doors but if you do ...).
Out of curiousity, WHY did you purchase 3501 instead of 3502?
I mean 3501 means it only has 802.11b radio. And 802.11b is long range and high penetration rates compared to 802.11a radio.
Lower the PHY rate ... 1 meg PHY rates travel VERY far. If you disable 1,2,5,11,-- all the way up to 24 or so .. you will need to be right on top of the AP. 20 feet or so..
What about clients with old portable devices? That's a risk.
Maybe you are looking for
-
How can I get my .rx2 files to not be Unix Executables?
I've never had any trouble importing rex files into Sperctrasonix RMX until today, when I bought some loops for RMX.The problem seems to be that they are showing up as Unix Executable files even though the extension is .rx2 on each file. The icon is
-
Firewire / Thunderbolt cable (not adaptor!)
Does anyone know if there is a Firewire / Thunderbolt cable, i.e. plug to plug, not plug to socket? Seems ridiculous to have to buy an adpator and a Firewire cable to connect my audio interface...
-
hi there, i face problems downloading oracle dbase 11g from OTN using download accelerators. i have a 56kbs internet connection and OTN downloads seem not to resume. is there any other way or place were i can get tihs application? please someone help
-
Windows 2008 R2 folders greyed out
We have a windows 2008 r2 file server and some of our users are seeing some of the folders on our shares greyed out. We have their macbooks linked to the AD domain and the file shares mapped. This just started happening a few weeks ago. our users are
-
Hi friend, I created two sales orders with same SP, SH, shipping point and requested delivery date and i maintained texts in both sales orders. I created one delivery from two sales orders using the t.code VL10A. Now my client requirement is "text" m