How to Convert swf which Contain Buttons to DVD?
Hi. I'm designing a multimedia application which contain buttons and animation and i wanted to convert it into DVD as DVD cannot support swf file. Do i use a converter to just convert it or is there any other solution to this?
Thank you.
If your target media is a Video-DVD that must be playable on standard NTSC/PAL devices, Flash is the wrong tool.
Use After Effects to create your animations and encore to author the Video-DVD
Similar Messages
-
How to Convert spool which is for smartform output to PDF?
how to Convert spool which is for smartform output to PDF?
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF' is not working for smartform output,
if i use this there will be error spool not contain list output?
than whats the function module or way to convert spool contain smartform output to pdg?
regards,<b>Procedure</b>
When we activate the Smartform the system generates a Function Module. The function module name we can get from Smartfrom screen from menubar
Environment => Function Module_Name . In a report we can get this Function module name by calling a Function Module standard SSF_FUNCTION_MODULE_NAME. This function module at runtime calls the FM generated by smartform, which in turn is then used to pass data from the report to Smartform. In the report given below the FM generated is /1BCDWB/SF00000152 . In this FM we can see CONTROL_PARAMETERS in import tab. This is of type SSFCTRLOP. We need to set the GETOTF of this to be X. Setting this field will activate the OTF field in smartform.
In export tab of the FM generated by smartform we can see a parameter JOB_OUTPUT_INFO which is of type SSFCRESCL. The SSFCRESCL is a structure of having one of fields as OTFDATA. OTFDATA in turn is a table of type ITCOO. ITCOO has two fields TDPRINTCOM and TDPRINTPAR. TDPRINTCOM represents command line of OTF format data and TDPRINTPAR contains command parameters of OTF format data.
In every Smartform output in OTF format, TDPRINTCOM begins and ends with //. EP represents the end-of-page value for TDPRINTCOM field.
In addition we need to set few fields at the place where we call this FM(generated by smartform) in our program. While calling this FM we should set control_parameters, output_options, user_settings and job_putput_info fields as shown in program.
Once these settings are done we can call Function Module CONVERT_OTF to convert the OTF data of smartfrom output to PDF data format. Once these are done we can call method cl_gui_fronted_services=>file_save_dialog to specify the directory path where we want to save the output PDF file. After this we can call Function Module GUI_DOWNLOAD to download the PDF file on our local system.
<b>Here is a sample code of program to perform the function.</b>
SAMPLE CODE
[code]*&---------------------------------------------------------------------*
*& Report ZAMIT_SMART_FORM_PDF *
REPORT ZAMIT_SMART_FORM_PDF .
data: carr_id type sbook-carrid,
cparam type ssfctrlop,
outop type ssfcompop,
fm_name type rs38l_fnam.
DATA: tab_otf_data TYPE ssfcrescl,
pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE,
tab_otf_final TYPE itcoo OCCURS 0 WITH HEADER LINE,
file_size TYPE i,
bin_filesize TYPE i,
FILE_NAME type string,
File_path type string,
FULL_PATH type string.
parameter: p_custid type scustom-id default 1.
select-options: s_carrid for carr_id default 'LH' to 'LH'.
parameter: p_form type tdsfname default 'ZAMIT_SMART_FORM'.
data: customer type scustom,
bookings type ty_bookings,
connections type ty_connections.
start-of-selection.
***************** suppressing the dialog box for print preview****************************
outop-tddest = 'LP01'.
cparam-no_dialog = 'X'.
cparam-preview = SPACE.
cparam-getotf = 'X'.
select single * from scustom into customer where id = p_custid.
check sy-subrc = 0.
select * from sbook into table bookings
where customid = p_custid
and carrid in s_carrid
order by primary key.
select * from spfli into table connections
for all entries in bookings
where carrid = bookings-carrid
and connid = bookings-connid
order by primary key.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting formname = p_form
* variant = ' '
* direct_call = ' '
importing fm_name = fm_name
exceptions no_form = 1
no_function_module = 2
others = 3.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
exit.
endif.
* calling the generated function module
call function fm_name
exporting
* archive_index =
* archive_parameters =
control_parameters = cparam
* mail_appl_obj =
* mail_recipient =
* mail_sender =
output_options = outop
user_settings = SPACE
bookings = bookings
customer = customer
connections = connections
importing
* document_output_info =
job_output_info = tab_otf_data
* job_output_options =
exceptions formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
if sy-subrc <> 0.
* error handling
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
tab_otf_final[] = tab_otf_data-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
* ARCHIVE_INDEX = ' '
* COPYNUMBER = 0
* ASCII_BIDI_VIS2LOG = ' '
IMPORTING
bin_filesize = bin_filesize
* BIN_FILE =
TABLES
otf = tab_otf_final
lines = pdf_tab
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD cl_gui_frontend_services=>file_save_dialog
* EXPORTING
* WINDOW_TITLE =
* DEFAULT_EXTENSION =
* DEFAULT_FILE_NAME =
* FILE_FILTER =
* INITIAL_DIRECTORY =
* WITH_ENCODING =
* PROMPT_ON_OVERWRITE = 'X'
CHANGING
filename = FILE_NAME
path = FILE_PATH
fullpath = FULL_PATH
* USER_ACTION =
* FILE_ENCODING =
* EXCEPTIONS
* CNTL_ERROR = 1
* ERROR_NO_GUI = 2
* NOT_SUPPORTED_BY_GUI = 3
* others = 4
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*************downloading the converted PDF data to your local PC********
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = bin_filesize
filename = FULL_PATH
filetype = 'BIN'
* APPEND = ' '
* WRITE_FIELD_SEPARATOR = ' '
* HEADER = '00'
* TRUNC_TRAILING_BLANKS = ' '
* WRITE_LF = 'X'
* COL_SELECT = ' '
* COL_SELECT_MASK = ' '
* DAT_MODE = ' '
* CONFIRM_OVERWRITE = ' '
* NO_AUTH_CHECK = ' '
* CODEPAGE = ' '
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* WRITE_BOM = ' '
* TRUNC_TRAILING_BLANKS_EOL = 'X'
IMPORTING
filelength = file_size
TABLES
data_tab = pdf_tab
* FIELDNAMES =
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22
IF sy-subrc <> 0.
ENDIF.
[/code]
Thanks and Regards,
Pavankumar -
How to convert amount which is in text to numeric..
Hi all,
Can anyone tell me how to convert amount which is in text to numeric..
i am having the value as ' three hundred '
it has to be converted to numeric as 300.
ofcourse its surprising ...but required
Any help will be greatful.
rgds,
rajhi Ravi,
Check out <b>PSSV_TEXT_INTO_FIELD_CURRENCY</b> FM
Regards,
Santosh -
How to convert Amount which is in figure to words
How to convert Amount which is in figure to words like :
Rs 1005.70 into 'Rupees One Thousand Five and 70 Paise'
Thanks
kumar nhiii
use FM
SPELL_AMOUNT
WA_AMOUNT = '10000'.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
AMOUNT = WA_AMOUNT
CURRENCY = PWAERS
FILLER = SPACE
LANGUAGE = 'E'
IMPORTING
IN_WORDS = WA_SPELL
EXCEPTIONS
NOT_FOUND = 1
TOO_LARGE = 2
OTHERS = 3.
regards
twinkal -
Please help me to how to convert swf format into the MP4!!!
Note that you use Adobe Media Encoder to create .mp4 files, not the After Effects render queue. You can add After Effects compositions to the Adobe Media Encoder encoding queue.
-
Need help - How to load data which contains \r\n
Hi All,
We have a requirement wherein we need to load the data from a .dat file, with fields separated by | symbol and the line separator specified as '\r\n'
INFILE '/scratch/xyz/abcd.dat' "STR '\r\n'"
FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '"'
Can you please help us load data which contains multiple lines in a single field to a database table field , keeping the line separator in ctl file as '\r\n' itself.
When we try bringing the '\r\n' within a text field enclosed in "" , the '\r\n' , sqlldr considers it as the end of that record and not as a data which needs to go into a column.
One option we have is to have the extraction process create the data in such a way that the fields with multiple lines , be brought in the .dat file enclosed in "" as
"Test
"|8989|abcd
where the new line in the first field is just '\n' .
Is there any other way in which the requirement can be addressed.
Version: SQL*Loader: Release 11.1.0.7.0
Thanks,
RohinIn addition, you would need to know the character set encoding of the csv files (e.g. the code page used).
Basically you need to have the facts about both client (csv file) and database character set.
As suggested, use the available documentation - it's there to help you!
http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm
http://download.oracle.com/docs/cd/B19306_01/server.102/b14225/ch2charset.htm -
How to convert swf to dvd which contain buttons
i've made an swf multimedia design and i want to convert it to a dvd in which buttons in my swf work is there any programme or solution to make it done
This is the Adobe Connect forum. Please post this to the proper Flash forum so the experts there can help you.
-
How to unload externally loaded swf which contains 3D Carousel?
Hello to all
I am learning AS3 and have been taking on various tutorials found on the net. While learning about AS3 I came across a lesson on http://tutorials.flashmymind.com/2009/05/vertical-3d-carousel-with-actionscript-3-and-xml/ titled "Vertical 3D Carousel with AS3 and XML".
I completed the tutorial and all worked fine so I then wanted to load the swf into a existing project. The loading of the swf goes fine and when I unload my loader it is removed but only visually as in my output panel in flash CS5 I get an error as follows
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at carousel_c_fla::MainTimeline/moveCarousel()
this error repeats over and over again slowing my swf movie.
So does this mean my main flash movie trying to still play / find my unloaded 3D Carousel?
If so how do I unload remove all the AS3 that is trying to run from the 3D Carousel?
I have included the AS3 below from the tutorial page and I understand that this is what I have to remove to "break free" from the 3D Carousel swf when it is unloaded. This is where I am stuck as my knowledge of AS3 is limited - Can you guys / girls help?
//Import TweenMax
import com.greensock.*;
//The path to the XML file (use your own here)
// old var from tutorial - var xmlPath:String = "http://tutorials.flashmymind.com/XML/carousel-menu.xml";
var xmlPath:String = "carousel-menu.xml";
//We'll store the loaded XML to this variable
var xml:XML;
//Create a loader and load the XML. Call the function "xmlLoaded" when done.
var loader = new URLLoader();
loader.load(new URLRequest(xmlPath));
loader.addEventListener(Event.COMPLETE, xmlLoaded);
//This function is called when the XML file is loaded
function xmlLoaded(e:Event):void {
//Make sure that we are not working with a null variable
if ((e.target as URLLoader) != null ) {
//Create a new XML object with the loaded XML data
xml = new XML(loader.data);
//Call the function that creates the menu
createMenu();
//We need to know how many items we have on the stage
var numberOfItems:uint = 0;
//This array will contain all the menu items
var menuItems:Array = new Array();
//Set the focal length
var focalLength:Number = 350;
//Set the vanishing point
var vanishingPointX:Number = stage.stageWidth / 2;
var vanishingPointY:Number = stage.stageHeight / 2;
//We calculate the angleSpeed in the ENTER_FRAME listener
var angleSpeed:Number = 0;
//Radius of the circle
var radius:Number = 128;
//This function creates the menu
function createMenu():void {
//Get the number of menu items we will have
numberOfItems = xml.items.item.length();
//Calculate the angle difference between the menu items (in radians)
var angleDifference:Number = Math.PI * (360 / numberOfItems) / 180;
//We use a counter so we know how many menu items have been created
var count:uint = 0;
//Loop through all the <button></button> nodes in the XML
for each (var item:XML in xml.items.item) {
//Create a new menu item
var menuItem:MenuItem = new MenuItem();
//Calculate the starting angle for the menu item
var startingAngle:Number = angleDifference * count;
//Set a "currentAngle" attribute for the menu item
menuItem.currentAngle = startingAngle;
//Position the menu item
menuItem.xpos3D = 0;
menuItem.ypos3D = radius * Math.sin(startingAngle);
menuItem.zpos3D = radius * Math.cos(startingAngle);
//Calculate the scale ratio for the menu item (the further the item -> the smaller the scale ratio)
var scaleRatio = focalLength/(focalLength + menuItem.zpos3D);
//Scale the menu item according to the scale ratio
menuItem.scaleX = menuItem.scaleY = scaleRatio;
//Position the menu item to the stage (from 3D to 2D coordinates)
menuItem.x = vanishingPointX + menuItem.xpos3D * scaleRatio;
menuItem.y = vanishingPointY + menuItem.ypos3D * scaleRatio;
//Add a text to the menu item
menuItem.menuText.text = item.label;
//Add a "linkTo" variable for the URL
menuItem.linkTo = item.linkTo;
//We don't want the text field to catch mouse events
menuItem.mouseChildren = false;
//Assign MOUSE_OVER, MOUSE_OUT and CLICK listeners for the menu item
menuItem.addEventListener(MouseEvent.MOUSE_OVER, mouseOverItem);
menuItem.addEventListener(MouseEvent.MOUSE_OUT, mouseOutItem);
menuItem.addEventListener(MouseEvent.CLICK, itemClicked);
//Add the menu item to the menu items array
menuItems.push(menuItem);
//Add the menu item to the stage
addChild(menuItem);
//Assign an initial alpha
menuItem.alpha = 0.3;
//Add some blur to the item
TweenMax.to(menuItem,0, {blurFilter:{blurX:1, blurY:1}});
//Update the count
count++;
//Add an ENTER_FRAME listener for the animation
addEventListener(Event.ENTER_FRAME, moveCarousel);
//This function is called in each frame
function moveCarousel(e:Event):void {
//Calculate the angle speed according to mouseY position
angleSpeed = (mouseY - stage.stageHeight / 2) * 0.0002;
//Loop through the menu items
for (var i:uint = 0; i < menuItems.length; i++) {
//Store the menu item to a local variable
var menuItem:MenuItem = menuItems[i] as MenuItem;
//Update the current angle of the item
menuItem.currentAngle += angleSpeed;
//Calculate a scale ratio
var scaleRatio = focalLength/(focalLength + menuItem.zpos3D);
//Scale the item according to the scale ratio
menuItem.scaleX=menuItem.scaleY=scaleRatio;
//Set new 3D coordinates
menuItem.xpos3D=0;
menuItem.ypos3D=radius*Math.sin(menuItem.currentAngle);
menuItem.zpos3D=radius*Math.cos(menuItem.currentAngle);
//Update the item's coordinates.
menuItem.x=vanishingPointX+menuItem.xpos3D*scaleRatio;
menuItem.y=vanishingPointY+menuItem.ypos3D*scaleRatio;
//Call the function that sorts the items so they overlap each other correctly
sortZ();
//This function sorts the items so they overlap each other correctly
function sortZ():void {
//Sort the array so that the item which has the highest
//z position (= furthest away) is first in the array
menuItems.sortOn("zpos3D", Array.NUMERIC | Array.DESCENDING);
//Set new child indexes for the item
for (var i:uint = 0; i < menuItems.length; i++) {
setChildIndex(menuItems[i], i);
//This function is called when a mouse is over an item
function mouseOverItem(e:Event):void {
//Tween the item's properties
TweenMax.to(e.target, 0.1, {alpha: 1, glowFilter:{color:0xffffff, alpha:1, blurX:60, blurY:60},blurFilter:{blurX:0, blurY:0}});
//This function is called when a mouse is out of an item
function mouseOutItem(e:Event):void {
//Tween the item's properties
TweenMax.to(e.target, 1, {alpha: 0.3, glowFilter:{color:0xffffff, alpha:1, blurX:0, blurY:0},blurFilter:{blurX:1, blurY:1}});
//This function is called when an item is clicked
function itemClicked(e:Event):void {
//Navigate to the URL that's assigned to the menu item
var urlRequest:URLRequest=new URLRequest(e.target.linkTo);
navigateToURL(urlRequest);Hi Ned thanks for the reply,
Ok so I have a button in my main movie that loads the external swf
stop();
var my_loader:Loader = new Loader();
var my_btn:Button = new Button();
var my_pb:ProgressBar = new ProgressBar();
my_pb.source = my_loader.contentLoaderInfo;
my_btn.addEventListener(MouseEvent.CLICK,startLoading);
function startLoading(e:MouseEvent):void{
my_loader.load(new URLRequest("carousel.swf"));
addChild(my_pb);
my_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, finishloading);
function finishloading(e:Event):void{
addChild(my_loader);
my_loader.addEventListener("killMe",
killLoadedClip);
removeChild(my_pb);
function killLoadedClip(e:Event):void {
my_loader.removeEventListener("killMe",
killLoadedClip);
my_loader.unloadAndStop();
removeChild(my_loader);
Then I have a button in my loaded swf that closes the loader
This is spread over 2 frames
Frame1
function closeIt(e:MouseEvent):void {
parent.dispatchEvent(newEvent("killMe"));
Frame 2
back_btn.addEventListener(MouseEvent.CLICK, closeIt);
Frame 2 also holds all the code for the carousel
Thanks for your time and help in advance people ; ) -
IDCS3 How to convert checkbox into form button in PDF?
I have an InDesign CS3 document that has lots of text checkboxes next to items in a list.
I would like to be able to export this doc as PDF and have those checkboxes turned into form buttons that the reader can toggle on or off to indicate items that the reader owns.
Then the reader could print the PDF and they would have a nice neat record of their items.
At present I don't need to have these PDF forms returned electronically or tallied or anything. The idea is just to use the PDF as a personal inventory.
So I'm hoping there's some easy way to globally replace my text-based checkboxes in IDCS3 with buttons that look the same but which will be recognized properly by Acrobat as interactive objects the state of which can be toggled with a click.
I've tried reading all the help files and searching these forums, but can't figure out how to do this. Any suggestions would be greatly appreciated. Thanks in advance!You cannot do this in InDesign.
However, you can export a PDF file and open it in Acrobat 8 Professional or Acrobat 9 Pro. Then you can use the Form Field Recognition feature (Forms menu) in Acrobat 8 or Start Form Wizard in Acrobat 9 Pro.
Head to the Acrobat User Community tutorials and eSeminars for more information:
http://www.acrobatusers.com -
Preview SWF which contains a Run Time Shared Library
All of our assets share fonts using a run time shared library (RSL) so that we dont need to embedd the fonts in each and every seperate swf. The swf looks for a sharedFonts.swf file one level/directory up from where it is currently at. Inside the assets' RSL the url is ../sharedFonts.swf.
So with a program like Adobe Bridge I just need to find out where Bridge is previewing the file from and then one directory up from that I need to place in the sharedFonts.swf. The place that I am viewing it from is already setup that way and works correctly if I simply open the swf without using some kind of program. So my guess is that Bridge takes the swf and places it somewhere within itself and then previews it or there is simply a bug with Bridge since currently it is just crashing.
I have some logs using windows event viewer and that shows me that the module that is failing is AdobeSWFL.dll which I am guessing is library to preview items.
Faulting application path: C:\Program Files (x86)\Adobe\Adobe Bridge CS5\Bridge.exe
Faulting module path: C:\Program Files (x86)\Common Files\Adobe\APE\3.1\AdobeSWFL.dll
Has anyone ran into something like this before? Any ideas on what to do here?
Thank you!I'm having the same problem. A coworker showed me how he uses Bridge to navigate all of his Photoshop and Illustrator files. As a Flash artist, I tried using Bridge to preview SWFs, and discovered the auto-crash feature.
Bridge crashes every time I click on a SWF that uses a runtime shared library. Frustrating!
Were it not for this bug, our studio's Flash artists would likely integrate Bridge into our pipeline. A fix, or directions on fixing the issue would be greatly appreciated. -
How to build packages which contains dependency loop
I'm building packages for sh4 CPU.
And I found these packages contains make dependency loop.
gobject-introspection
gdk-pixbuf2
librsvg
cairo
Any suggestion to solve this? Which one is the first I could build?
Last edited by dlin (2013-02-13 17:21:20)FS#33874 wrote:if PKGBUILD developers keep their build experience on such files will simplified try-and-error process.
I agree with this, but maybe this kind of info about ground-up building can go in a wiki.
I mentioned this dep cycle topic in #archlinux-arm:
2013-02-14 11:13:18 @WarheadsSE tdy, they will want to drop from deps, then rebuild w/ them back in
2013-02-14 11:14:03 tdy yea, that seems to be the easiest way.. e.g. build cairo w/o svg, build the chain, then rebuild cairo with svg
2013-02-14 11:14:12 @WarheadsSE yup
2013-02-14 11:14:31 @WarheadsSE thats a very simplified method of how we fix spaghetti monsters
Maybe you can check with them to see if they've kept some documentation about build orders or any tips in general.
Last edited by tdy (2013-02-15 16:54:36) -
How to make a JPanel containing buttons take up the width of the window?
I'm creating a GUI and I have a button group that I want to be the width of the window. I have another JPanel on the same window that doesn't have a button group in it and it takes up the width of the window. I don't think I'm doing anything differently creating the two, but I need consistency.
The best way I can explain this is with code, so I created an example of what I am doing here:
import java.awt.*;
import javax.swing.*;
public class test extends JFrame {
public test() {
JPanel win = new JPanel();
JPanel buttonsPanel = new JPanel();
JPanel statusPanel = new JPanel();
win.setLayout(new BoxLayout(win, BoxLayout.Y_AXIS));
buttonsPanel.setLayout(new BoxLayout(buttonsPanel, BoxLayout.Y_AXIS));
statusPanel.setLayout(new BoxLayout(statusPanel, BoxLayout.Y_AXIS));
// createRadioButtonsPanel
ButtonGroup buttons = new ButtonGroup();
JRadioButton currentMap = new JRadioButton("option1", true);
JRadioButton newMap = new JRadioButton("option2");
JRadioButton noMap = new JRadioButton("option3");
buttons.add(currentMap);
buttons.add(newMap);
buttons.add(noMap);
buttonsPanel.add(currentMap);
buttonsPanel.add(newMap);
buttonsPanel.add(noMap);
buttonsPanel.setBorder(
BorderFactory.createTitledBorder("Create: "));
// createStatusPanel
JLabel statusLabel = new JLabel("Loading...");
statusLabel.setBorder(BorderFactory.createLoweredBevelBorder());
statusLabel.setPreferredSize(new Dimension(400,20));
statusLabel.setMinimumSize(new Dimension(400,20));
statusLabel.setMaximumSize(new Dimension(400,20));
statusPanel.add(statusLabel);
JPanel statusButtons = new JPanel(new FlowLayout(FlowLayout.RIGHT));
JButton pauseSearch = new JButton("Pause");
JButton cancelSearch = new JButton("Cancel");
statusButtons.add(pauseSearch);
statusButtons.add(cancelSearch);
statusPanel.add(statusButtons);
statusPanel.setBorder(BorderFactory.createTitledBorder("Status: "));
win.add(buttonsPanel);
win.add(statusPanel);
getContentPane().add(win);
pack();
setVisible(true);
public static void main(String args[]) {
test s = new test();
}When I compile and run this class I get this window:
http://img136.imageshack.us/img136/1538/exampleek5.png
You see how on the bottom, "Status" JPanel takes up the entire width of the window? When the window is resized, the border is also resized. I would love to have the top "Create" JPanel have the same behavior. How do I do this?
Thanks in advance!It can get confusing when using the BoxLayout. The box layout takes into consideration the X alignment of the components as well as the minimum and maximum lengths.
So I suggest you read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/layout/box.html]How to Use Box Layout for examples and explanations on how these values are used in the layout process.
It may be easier to use a BorderLayout for the high level layout manger, since it will resize a components width when added to the NORTH, CENTER or SOUTH. -
How to compile package which contain class outside the package
I am writing a JDBC driver.
I have the following package structure in the folder:
MyDriver
|_manager.jar
|_com
|_ jdbc
|_ HXDriver
|_ HXConnection
|_ HXResultSet
|_ HXStatementIn manager.jar, there is a remote object Interaface(Manager.java) which I need to use inside HXConnection.
My question is how to compile(or/and how to set the classpath)so that I can compile the 4 classes inside jdbc package.
I tried this:
C:\MyDriver>javac -cp .;manager.jar com/hx/jdbc/*.java
However, this does not work, compiler says it cannot find Manager
Please help me.
CheersD:\380 Project\Driver>javac -cp .;manager.jar com\hx\jdbc\*.java
com\hx\jdbc\HXConnection.java:21: cannot find symbol
symbol : class Manager
location: class com.hx.jdbc.HXConnection
private Manager manager;
^
com\hx\jdbc\HXStatement.java:18: cannot find symbol
symbol : class Manager
location: class com.hx.jdbc.HXStatement
private Manager manager;
^
com\hx\jdbc\HXStatement.java:20: cannot find symbol
symbol : class Manager
location: class com.hx.jdbc.HXStatement
public HXStatement(Manager manager){
^
com\hx\jdbc\HXConnection.java:41: cannot find symbol
symbol : class Manager
location: class com.hx.jdbc.HXConnection
manager = (Manager)reg.lookup("manager");
^ -
How to convert date which is coming from a file
Hi All,
I am reading the content from the file in which date is also one field, but i am while inserting into the database i'm getting an exception because it is not able
to insert into the database because the database date format is different from the one which is coming from a file.
The datatype value of the database is Date.
Can anyone help me on this if anybody having an idea.
Regards,
CHHi,
Even if I'm using JavaEmbeddedActivity also i'm getting an error. Please have alook at the below code once
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
public class ConvertDateToStringExample {
public static void main(String args[]){
DateFormat dateFormat = new SimpleDateFormat("dd-nn-yyyy hh:mm:ss");
//to convert Date to String, use format method of SimpleDateFormat class.
String strDate = dateFormat.format(getVariableData('inputVariable','payload','/client:process/client:Date'));
System.out.println("Date converted to String: " + strDate);
Error Message:
Error(21,33): Failed to compile bpel generated classes.
failure to compile the generated BPEL classes for BPEL process "DateProcess" of composite "default/DateProcess!1.0"
The class path setting is incorrect.
Ensure that the class path is set correctly. If this happens on the server side, verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.
Well it's not at all allowing me to insert the format while passing the input arguments.
Regards,
CH -
It's been several years since I've done any design work at all. I recently got a job as a designer, and on my first day I had to create an ad in illustrator 5.5 (required to be in illustrator) for print in a black and white publication. There was even an ad template to use. I placed the photo and tried to use the "convert to grayscale" option but everything under the edit colors menu was grayed out. I know it's because of the photo. In the end I changed the photo to grayscale in photoshop and replaced the image, but I know there is another way around this. Can someone please help me figure out how to fix this issue?
Thank you so much in advance!If the placed image is linked, Edit Colors will not allow conversion to grayscale; however, an embedded image will work just fine. The flyout menu in the Links Panel allows you to embed the image.
Peter
Maybe you are looking for
-
Send Email from Alternate Address or at least Repl...
I'm coming from the world of blackberries, so pardon my frustration. I've tried to find a solution for this and am coming up empty. My situation: I have a work email, however, it is a Pop account (nothing I can do about that). I am out of the off
-
I am about to spend some more money and get a remote for my Vision:M. I am pretty sure this one is compatible with it, but I am not sure as no where does it mention that it is compatible with it. This one! I remember reading that the remote from the
-
Ok, I contacted the host, www.west.net, and got the form script from them, but i tried to use it, and this is what i have so far: www.sbyf.org/Templates/registration_page.htm is the registration page that i'm trying to get to workwhen i submit the fo
-
Hi, I've been thinking about buying a new 24" aluminum iMac for awhile. the only thing that has kept me from doing this is all the screen issues I hear about (gradient problems, etc). Does everyone have these screen issues or is it just a certain num
-
Why doesn't my imac like my fonts?
I am a graphic designer and as of late, using Adobe Indesign is a massive headache. It is almost totally unresponsive. Other programs freeze and have the spinning beachball too. It is impossible to work effectively. My programs freeze every couple of