Fixed size panel in netbeans form editor
can i make a fixed size panel in netbeans form editor ?
Yes, use Absolute positioning. Refer to the NB Help screens for details.
NetBeans support is provided by the NB website (a mail list) and the Nabble forums. Please post NB questions there. These forums are for Java language topics, not IDE support questions.
Similar Messages
-
Hello
I have to design a User Interface with a lot of Text Fields and Combo Boxes and..........
So I decided to design it by using NetBeans Form Editor and just copy the code in my Program.
Do you know how to switch the Look And Feel to "Windows Look and feel" in that Form Editor
Just in the code it's easy, but do you know how to switch the Look and Feel in NetBeans Form Editor directly (by clicking anything???)
Thanks a lotUnfortunately, we're sort of stuck with the Form Editor at this point.
Reason being, when you design a screen using the form editor, it saves the form definition data as XML.
We then take that XML file and stick it on our server. While our applet is running, it goes out to the server and grabs the XML screen definitions for each screen of the UI as needed.
This has allowed us to keep the size of our applet very small. Making for fast download/launch times. -
NetBeans Form Editor/ Palette and Javabeans
Hi all!
Do you guys know if it is possible to use the NetBeans Form Editor and palette, without having to make all classes into javabeans? I am trying, but I can't see my components in the design window after I add them.
Is there a way around making javabeans?
Thanx :-)Bet you had errors during refactoring saying that the occurrence is in guarded section and can not be refactored.
Try to replace old references in *.from/*.java files outside the IDE. -
How can I put a fixed size JPanel to the center of an container (f.ex. JFrame) so that if the container is resized the size of the panel doesn't change but its location will be in the center of resized container. And if the container gets smaller than panel there will become scrollbars.
Have GridBagLayout for the frame.Use setPreferredSize on the Panel.So even if the frame resizes it will still be in the center and size won't change too since GridBagLayout respects component's preferredsizes.For scrolling you need to add the JPanel to a JScrollPane and add the JScrollPane to the Frame.
Ranga. -
Best way to create a fixed size centered Panel?
I'm trying to figure out what the best way is to create a fixed size Panel that stays positioned in the center of its parent component/panel, even as the frame is resized. Is there a way to do this with some layout or will I need to write some code to reposition my panel each time the frame is resized?
Thanks
JonathanThis approach seems good. One thing I'm wondering, why does the GridBagLayout draw my Panel based on the preferred size and not the bounds? If I want to do some sort of fancy painting with my panel, I'll probably have to set the bounds as well I'd think.
jonathan
Here's a way. I won't go so far as to say "best",
but it gets the
job done. You need to control the layout of the
parent in order for
any solution to work -- some layouts will ignore the
preferred,
maximum, and minimum sizes of their components.
import java.awt.*;
import javax.swing.*;
public class CenterTest {
public static void main(final String[] argv) {
final JPanel fixedPanel = new JPanel();
fixedPanel.setPreferredSize(new Dimension(100,
0, 100));
fixedPanel.setBackground(Color.BLUE);
final JPanel panel = new JPanel(new
ew GridBagLayout());
panel.setBackground(Color.CYAN);
panel.add(fixedPanel);
final JFrame frame = new JFrame("GridBagLayout");
frame.getContentPane().add(panel);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)
frame.setSize(200, 200);
frame.setVisible(true); -
How to change font size in HR Forms Editor
Hi Experts,
I am modifiying the pay slip which was created using HR Forms Editor, now i modified the form, is it possible to change the font size ? i am not able to find option to change the font size.
could any one please tell how to change the font size?
With Regards,
Thanesh*Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
-
Deatailed Navigation Panel Fixed size
Dear support,
I need to hide the Navigation Panael Header. In other words to have a fixed size navigation panel, equal to "SDN" Portal navigation panel.
How can I obtain that?
Thanks in Advance,
Best regards
NicolaHi Nicola,
To remove the detailed navigation header u need to edit the default frame workpage.
Open the Default frame work page
>>select the desktop inner page and open for editing
>>select the detailed navigation iview and open for editing
>> find the property 'Show Object Name in Tray' set that property to false.
>>Save and close
Thats all, the header will not be displayed any more.
Hope this Helps
gEorgE -
How to resize a jpg/gif file to a fix size using jimi ?
I have search from the web and didn't find any example on doing this.
Can any one give example on how to resize a jpg image. let say 120x240
to a fixed size 40x40 ?
thank youHi.
When you got that image in form of a file, just load it and invoke the image's getScaledInstance(...)-method.
Here's how it could work:
import java.awt.*;
public class Test {
public static void main(String[] argv) {
// define where the image comes from:
URL toImage = new URL("file:/C:/test.jpg"); // or the like
// get the image:
Image image = Toolkit.getDefaultToolkit().createImage(toImage);
// scale the image to target size (40x40 here):
Image smallImage = image.getScaledInstance(40, 40, Image.SCALE_DEFAULT);
// you might want to do other things like displaying it afterwards
}HTH & cheers,
kelysar -
How to set fixed size for inputfile text field
Hi all,
I am using inputfile component to test file uploading so I created a simple upload page. When I finished upload the file, the input text field will "shrink" its size and change the size to adjust the file name. Is there any way to set a fix size for input text field?
Here is some part of the code:
<af:form id="f1" usesUpload="true">
<af:panelHeader text="File Uploader" id="ph1">
<af:inputFile label="File to upload" id="if1" autoSubmit="true" valueChangeListener="#{fileBean.fileUpdate}"
value="#{fileBean.file}" partialTriggers="if1"
columns="50"/>
</af:panelHeader>
<af:commandButton text="Save" id="cb1"/>
FileBean:
public void fileUpdate(ValueChangeEvent valueChangeEvent) {
RichInputFile inputFileComponent = (RichInputFile)valueChangeEvent.getComponent();
UploadedFile newFile = (UploadedFile)valueChangeEvent.getNewValue();
UploadedFile oldFile = (UploadedFile)valueChangeEvent.getOldValue();
Thanks,
Jerryyou can set columns attribute in af:inputfile. Please see highlighted area i have inserted to you code
<af:form id="f1" usesUpload="true">
<af:panelHeader text="File Uploader" id="ph1" columns = "34" >
<af:inputFile label="File to upload" id="if1" autoSubmit="true" valueChangeListener="#{fileBean.fileUpdate}"
value="#{fileBean.file}" partialTriggers="if1"
columns="50"/>
</af:panelHeader>
<af:commandButton text="Save" id="cb1"/> -
Forte form editor wont work, missing *.form file
Hi,
I have a .java GUI file (subclass of a subclass of JDialog) that was generated with Forte, but the .form file that the form editor needs wasnt checked into CVS. So now I cant open the form editor in Forte (sun one). Is there a way to auto generate a new one based on the *.java code?
Thanks,
Chris
ps. I know this isnt a forte board, I coudlnt find the forte board.
pps. Sorry if this has been asked before, I searched for the answer and couldnt find one...
ppps. I tried a blank file, and I tried a minimal XML document, neither worked (the *.form file is XML).Thanks for the suggestion!
I searched their list, and found this post:
Essentially it is currently impossible, and the GUI must be recreated. dote!
http://www.netbeans.org/servlets/ReadMsg?msgId=87985&listName=nbusers
Richard,
currently it is not possible to generate .form file from java code - because
form editor is not "two-way" (that is why .form XML files are used to store
GUI information). However two-way editing is planned for the future - see
our proposal:
http://www.netbeans.org/www-nbusers/msg03322.html.
There was also a related discussion some time before (about "reverse
endineering"):
http://www.netbeans.org/www-nbusers/msg01590.html.
As for converting forms from old NetBeans X2: direct serialization was used
for saving forms sooner, which is not suitable for longer persistence -
because e.g. serialized Swing components might not be compatible between JDK
versions. (That's why we moved to more general XML storing time ago.) So -
to import older forms you should use at least the same JDK version you used
with old X2. I would also recommend you to import it using Forte 2.0, which
could be more "polite" to old form formats (is a bit older than NetBeans
3.1). Once you save form to XML .form file, you can use it in newest JDK and
NetBeans.
Hope this somehow helps,
Tomas Pavek
-----Original Message-----
From: Uschold, Richard J. [mailto:[email protected]]
Sent: Tuesday, January 30, 2001 5:22 PM
To: '[email protected]'
Subject: [nbusers] Converting a *.java file to a *.form or *.xml
Is there a way to start with a *.java file and convert / generate a *.form
file? (for NetBeans X2 2.1) Or maybe convert / generate a *.xml project
file for NetBeans 3.1?
I had a project in NetBeans X2 2.1 last year and I lost everything except
the *.java file.
Thanks
Rick Uschold -
Modify code generated by Form Editor
Hello,
I'm wondering how I can add the methode
setLocationRelativeTo()
to the code generated by the Form Editor in JDeveloper12.
Or what do I have to do, to create a Project with Swing GUI, using a visual editor, which let's me modify the code???
Maybe this is a very odd question, but I'm just a little bit confused. I'm quite sure, that I was able to modify my code using the Visual Editor in JDeveloper10. Or am I on the wrong way and have to write the code by totaly by myself, if I want to have the possibility of modification?
Thanks
chrissyHi Timo,
that's the way I think it should work, but all code for components created with visual GUI Editor is blocked. What also makes sense, because the Form Editor will overwrite it, everytime I change something with the GUI Editor.
My start up was to create a new Application (Java Desktop Application) with a project. I think it is just using NetBeans (with which I have never worked before). Creating now a JFrame Form is using the Form Editor for visual stuff. What's nice to have, because a lot of code is auto-generated, but I also need to do some modifications, like setting the window appear in the middle of the screen with setLocationRelativeTo(). Is there a chance to do it, or do I have to start up another way, i.e. just creating a Custom Application and writing all the code by myself and use no visual editor?
Thanks
chrissy -
How do we customize the default CKEditor for Web Form Editor in UCM 10gR3?
Our customers are using the Web Form Editor for some WYSIWYG changes. The form has too many options and they would like to limit what the users can do. We have attempted to make changes to the following files to customize the CKEditor for Web Form Editor and cannot see our changes reflected after saving/restarting Content Server.
Instance\weblayout\webform\ckeditor\config.js
Instance\weblayout\resources\wcm\3rdparty\fckeditor\fckconfig.js
Instance\custom\FCKEditor\webform\ckeditor\config.js
To test a simple change we tried adding the following to change the toolbar options.
CKEDITOR.editorConfig = function( config )
config.toolbar = 'MyToolbar';
config.toolbar_MyToolbar =
['NewPage','Preview'],
['Cut','Copy','Paste','PasteText','PasteFromWord','-','Scayt'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Image','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
['Styles','Format'],
['Bold','Italic','Strike'],
['NumberedList','BulletedList','-','Outdent','Indent'],
['Link','Unlink','Anchor'],
['Maximize','-','About']
There isn't much standard documentation on this out of the box feature and I've searched Oracle Support with no luck.
Content Server 10gR3 (10.1.3.5.1)
FCKEditor 2010_12_18 ($Rev: 90491 $) br-10g-10.1.3.5-release
CS10gR35UpdateBundle 2011_02_08 (build 93)
Thanks,
AngelaPosting the answer:
You need to make the changes to the webforms component inside the ~\custom\FormEditor\templates\fe_config.js file. Then propagate your changes using the Administration > Actions > Publish layout files page.
One more quick question - where do we limit the Styles, Fonts, Sizes, Colors?
in the same file we added lines similar to the following to limit the fonts,
styles....
CKEDITOR.config.font_names = 'Arial;Times New Roman;Verdana';
CKEDITOR.config.fontSize_sizes = '16/16px;24/24px;48/48px;'; -
Can you change the units used for size and position in layout editor?
Hello,
In Aperture 3.4, does anyone know if you can change the units used for size and position in layout editor? The page is set in inches, but the image size and position are given in centimetres and I would prefer to work all in inches to create custom layouts. I can't see any way to change this. If anyone knows how it would be much appreciated. Thanks!Aperture uses the unit settings defined in the System Preferences. Set the "Measurement Units" in the "Region" tab of the "Language & Text" preferences to "US"; the Aperture will display the Size & Position in inches, if it is the "Book" layout manager you are asking about.
Merry Christmas!
Léonie -
Fixed size regions in Apex 4.0
It is possible to create a fixed size regiion - that is only using half of the screen height to have a report (and having a bar to on the right to move up/down) ?
I'm going to use it for a 2+ master-detail report.
regards
MetteHi Mette,
what region template and which theme are you exactly using? For most region templates you can pass in additional style attributes with the "Region Attributes" property in the "Attributes" section of a region definition.
So for example you could use
style=\"height:500px;overflow-y:scroll\"(remove the \ out of the code example)
Regards
Patrick -
How to Change the Size of the Parameter Form in Report6i
hi
Does any one know how to change the size of the "PARAMETER FORM" in Report6i.Hi,
You can change it in the "Parameter Form Window" property of the Report Object.
In the object navigator, select the Report object and open its property palette. Under "Parameter Form Window" you can change the "width" and "height" properties.
Regards,
Siva B
Maybe you are looking for
-
Front-end functions cannot be executed in the background in SM37
Hi , I have developed a BDC program for Tcode HRUSER . The program is working fine in Frontend but when Executed in Background through SM37 gives a error -: "Front-end functions cannot be executed in the background". I am not using any function like
-
How should I organise my apple accounts?
Hi there We are struggling to work out how to organise our Apple accounts, and wondered if anyone could provide some guidance. We have a variety of devices (iPads, iPhones, MacBook) - but we are not coordinated at all across a family of 4. What we re
-
All my Windows 7 computers recognize the USB printer connected to my AirPort Extreme via Bonjour, but my new Windows 8 laptop cannot find it. Does anyone has the same issue? Does anyone has a solution? Thanks.
-
I need urgent help to remove unwanted adware from my iMac. Help!
I need urgent help to remove unwanted adware from my iMac. I have somehow got green underline in text ads, pop up ads that come in from the sides of the screen and ads that pop up selling similar products all over the page wherever I go. Its getting
-
Oracle 10g - Database Benchmark
Hi All, I would like to know is there any document available on Oracle Application Benchmark Suite..Like how to Install and step by step information to get the statistics and various way for tuning. If any one has experience on this please guide me.