Create code snippet with this code
I'm curious...
I can't create a code snippet with this code. (located in the first post)
http://forums.ni.com/t5/LabVIEW/Event-structure-with-value-changes/m-p/1937505#M646059
However, I can create snippets from its sub-sections.
Tried various versions of LabVIEW with the same result.
Can anyone create a snippet? Just curious.
I'm not stuck or anything... just curious.. Maybe I should have posted in Breakpoint..
Solved!
Go to Solution.
Spoiler (Highlight to read)
I cheated and used my own Snippet tool. Native tool dislike Event Structures.
I cheated and used my own Snippet tool. Native tool dislike Event Structures.
Similar Messages
-
How to create an app with this function?
Hi, people. Total beginner here.
How can I create an application that auto-generates instantly downloadable PDF files with contents based on whatever the user chooses to click on or type on the front-end interface. I saw such Flash app before on a Facebook Page so I kinda believe it's possible.
Any help would be appreciated. Thanks!you can try using an actionscript class like purePDF (http://www.sephiroth.it/weblog/archives/2010/02/purepdf_a_complete_actionscript_pdf_l.php) or use server-side code like fpdf (www.fpdf.org).
-
How do I create "Heroes" opening with this?
I just installed this program yesterday and with a little help from my brother I created "Earth rotation".
You can see it here:
I want to simulate "Heroes" opening title(on that video ^^ , I still have the project file), doesn't really have to be exact, just Sun popping out for a second, small lens flare no titles.
Original Heroes opening:There are tutorials for creating the Heroes title out there. A bit of Googling should find it for you.
Basically, you could just add a lens flare (Generate>Lens Flare). There are several tutorials out there for spicing up AE's built-in lens flare and some for creating your own. Also, you could get Optical Flares from Video Copilot or Knoll Light Factory Pro from Red Giant.
Since you're new to AE, I would highly recommend that you start here. AE is not a program that you can just start using without a good foundation in the basics otherwise you will get really frustrated. -
Is it possible to create recipe cards with this program
Do they have recipe card templates
Try using one of the graphics in PSE11.
The ones with the blue thumbnail corners need to be downloaded,
Click to view -
Create a list with associated workflow from a list template.
Hi,
I have a calendar list with two workflows and I saved it as list template. Also I have an event receiver which creates a list based in this list template I created, but I noticed that the list is created without workflows. If I create the list
using the list template using SharePoint it does it with the workflows but my event receiver does not.
Here is my code:
if
(list == null){
web.AllowUnsafeUpdates =
true;
var lstTemp = web.Site.GetCustomListTemplates(web);
var template = lstTemp[listTemplate];
var listId = web.Lists.Add(listName,
string.Empty, template);
list = web.Lists[listId];
list.Title = listName;
list.OnQuickLaunch =
false;
list.Update();
web.AllowUnsafeUpdates =
false;
Thanks anyway.Hi,
According to my understanding, you have a list template contains workflow, you can create a new list with this template from UI. However, when create a list with this
template in Event Receiver, the workflow is missing.
I tried to reproduce by creating a list template contains an OOTB Approval workflow, then use an Event Receiver to create a list with this template, it turned out
that the workflow is attached to the newly created list.
I would suggest that you create another Event Receiver with the code snippet below to see if it is an issue of Event Receiver:
public override void ItemAdded(SPItemEventProperties properties)
base.ItemAdded(properties);
createListWithTemplateWithWF(properties);
public static void createListWithTemplateWithWF(SPItemEventProperties properties)
using (SPSite site = properties.Site)
using (SPWeb web = site.RootWeb)
SPListTemplateCollection listTemplates = site.GetCustomListTemplates(web);
SPListTemplate listTemplate = listTemplates["ListTemplate_List001_withWF"];
web.Lists.Add("List005", "List005", listTemplate);
Feel free to reply with the test result or if there any questions about this.
Best regards,
Patrick
Patrick Liang
TechNet Community Support -
How to create a demo with time limit? (timebomb)
Hello,
I would like to create a demo of a game I made but want to limit the amount of time it will run once installed. (30 days).
Is there an xtra or a straightforward way to do this in lingo?there is no straightforward way to do it in any programming language. I'm currently developing a Director-specific trial version solution, but it's not ready yet for general/commercial use. Are you looking for a free solution or are you willing to pay?
Trial Versions are used so users can try out your software and then buy it if the software is something they want. So, there are two parts to trial software;
1. the code that handles the trial version
2. the code that handles the product serial and registration/licence keys
The code that handles the trial version needs to be able to do these things:
1. Keep track of the trial period. This involves recording the first run date/time and incrementing that date/time when the software is launched each subsequent time and comparing that against the trial period.
2. Protect against backdating - turning back the computer clock to get more trial time.
3. Protect against uninstall/reinstall.
Dealing with all three of these issues becomes complicated; let's look at a solution using a licence file. What about a licence file will solve all the issues listed above?
1. The licence file will contain the First Run Date (FRD), the Last Run Date (LRD), and other specific user and product info.
2. A licence file should be encrypted to ensure it cannot be tampered with.
3. A licence file should be moved to the user's AppData (or equivalent) folder by the installer software (such as NSIS). This ensures the first run date is only ever recorded once... what do I mean by this? If your app had to check first before opening and writing to the license file, then someone could easily circumvent the trial version by deleting the file at which point your application would be forced to move/write the licence file again and the user would be able to start the trial over again. Well, the installer only ever runs once. So, if it copies over the licence file during the installation process then our application, when it runs the first time, only has to check if the file is there; if not then the trial has been tampered with, if it's there then read the FRD, and if blank then we can be sure it's writing the FRD for the first and only time.
4. The file could be hidden to ensure that an un/reinstallation of your software wouldn't circumvent your trial security. Another method is to write to the registry some entry that's obscure or looks like some other info for your software... this is what's called security by obscurity which is frowned upon in the industry, in general, but there's really no way around it in the case of trial software methods.
5. A licence file can be used as a red-herring if you want to use an obscure/hidden registry entry to save the real trial version information. If that's the case, you should follow the same steps as above and have your installer write the initial registry entries so it cannot be as easily circumvented by your code checks.
Encryption is a big part of trial version security. If you're using MX2004 or above then you can find javascript ports of some strong encryption algorithms such as AES or RSA. RSA is an asymmetrical (ie public/private key) encryption algorithm whereas AES is a symmetrical (ie. private key) algorithm. The important things to look for in an implementation are ones that will encrypt a variable length string. These implementations use modes to encrypt fixed length chunks of the string, thus making the core encryption algorithm useful in practical situations such as encrypting variable length strings.
Creating a trial/registration .dir file (trial window) that gets published with the main application .dir file:
Below, I've outlined these steps so you can see what I mean. I've tested this process and it's solid, AFAIK. Here are the steps:
1. Create a project and name it movie1. Add a framescript with the 'go the frame' code on it.
2. Add a label named 'continue' on the frame just after the 'go the frame' framescript.
3. Add a button, and this code:
go to frame "continue"
4. Now, go into the Publish Settings options and go to the 'Files' tab and add any of your other .dir files you want under the 'Additional Files:' heading (the option to Play every movie in list will be checkmarked by default. Leave it like that).
5. Now, Publish your project and you will have ONE .exe called movie1.exe which contains two .dir files that have been published.
6. Open your User Temp folder and observe the folder that's created when you run movie1.exe... no temp .dir file is created when you run movie1.exe
7. Creating another .dir with this code:
go to frame "continue" of movie("movie1")
...does not work as it's looking for a .dir or .dxr or .dcr and will not work with an .exe.
What this means is you can create a single executable that runs the trial window with all your trial version code and if everything checks out in the licence file then you can go to the main application movie. The trial window can be used to display the trial information, including a registration section, if you like. Google examples of trial version software to get ideas of what should be included in a trial version display.
Resources:
AES encryption written in Javascript: http://www.movable-type.co.uk/scripts/aes.html
DOUG Article I wrote on creating product keys: http://director-online.com/forums/read.php?2,22279,22303#msg-22303
Block Cipher Modes: http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Counter_.28CTR.29
AES - Wikipedia: http://en.wikipedia.org/wiki/Advanced_Encryption_Standard
RSA - http://en.wikipedia.org/wiki/RSA
Pseudocode for recording and comparing dates
FRD = First Run Date
LRD = Last Run Date -- this one would get updated every time the app was run.
CRD = the systemDate
NumDays = 30 -- the number of days for trial version
dateGood = False
If LRD > CRD Then
-- the system clock was rolled back
dateGood = False
Else If (the systemDate) > (NumDays + FRD) Then
-- trial version has expired
dateGood = False
Else If CRD > LRD Then
-- everything is ok, so write a new LRD date in registry or wherever else
dateGood = True
Else If CRD = (_movie.systemDate) Then
-- the dates are both good
dateGood = True
Else
dateGood = False
End If
Typical Place to Write Application data to the Registry:
HKCU\Software\<AppName>\<version>\
eg. HKCU\Software\TRiShield\1.0\ -
Agency Business : Creating a VBD with Posting block manual condition
Dear developers,
I have a question regarding Agency Business.
First of all I would like to introduce my problem :
1. Posting block option set for my payment type;
2. Created a VBD with a manual condition which creates a balance when releasing to accounting;
My question is :
Should the system behave in the same way and releases the document to accounting on both scenarios below?
Scenario 1
1. Run transaction WZR2
2. Inform the document number (without opening the document)
3. On the initial screen of transaction WZR2(without opening the document) click on button "Release to Accounting"
Scenario 2
1. Run transaction WZR2
2. Inform the document number
3. Press Enter to open the document
3. After have opened the document click on button save.Hi
I assume you have info record maintained for the vendor material plant combination form where PB00 price is picked.
I do not think you can add the manual condition during ME_PO_CREATE_1.
I assume that the manual condition will be given on the custom program selection screen which in turn call the PO create BAPI.
With this assumption, I would suggest to Post the PO create BAPI & then call the PO change BAPI to add the manual condition in the same custom program.
Hope this helps.
Thanx
PP -
Is clustering possible with this setup.
Is it possible to use
Windows Server 2012 Data Center
2 SuperMicro AS-2022G-URF4+ R with
RAID CARD SUPERMICRO|AOC-USAS2-L8i and SAS drives for a failover cluster for Hyper-V
At this moment using mirrored drives for operating system and 4 drives free for the cluster itself if possible with two slots open.Is it possible to create shared storage with this setup that will work with the cluster or do I need a SAN.
At least now you need to deploy a third-party software doing something similar to the picture below:
So basically you'll take a bunch of a locally attached disks and "mirror" them with a software
component. If you're already having all-SAS setup (something you really do) you can deploy
what's called "Clustered RAID Controllers" config replacing SAS HBAs you use now. See:
LSI Syncro
http://www.lsi.com/products/shared-das/pages/default.aspx
8i does not need SAS JBODs to create a fault tolerant config and 8e needs external enclosures.
P.S. I would not deploy any "magic hardware" as it's a vendor lock-in. You can change software vendor
easily but I'm not aware of anybody doing similar things to what LSI does.
StarWind VSAN [Virtual SAN] clusters Hyper-V without SAS, Fibre Channel, SMB 3.0 or iSCSI, uses Ethernet to mirror internally mounted SATA disks between hosts. -
Restrict this transaction code only to create sets starting with 'ZMR'
Hello,
I need to create custom transaction code for 'GS01' and restrict this transaction code only to create sets starting with 'ZMR' No other sets should be allowed to be created.
If anyone have done before with the same scenario. Please give me clear documentation on this .
Reagdrs
KiranYOu cannot find the call to the badi's by searching the main program.
The badi is called a t run time.
To find a badi attached to a main program, goto se38,
GIve the program name.
Goto->Object Directory Entry. Find the package.
Go to se18 transaction, Press f4.
give the package name in the popup.
you can get the badis associated with the main program.
Regards,
Ravi -
Need help in creating a view with Encryption for hiding the code used by the multiple users
Hi,
Can anyone help me out in creating view with encryption data to hide the stored procedure logic with other users.
I have create a stored procedure with encryted view but while running this manually temporary views are getting created, therefore the problem is if there are 500 entries then 500 temp views will get created.
Any solution to aviod creating temporary views, please refer my code below
USE [etl_validation]
GO
/****** Object: StoredProcedure [dbo].[Pr_DBAccess_mod] Script Date: 05/23/2014 12:53:22 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[Pr_DBAccess_mod](@ETL_CONFIG_ID INT)
AS
BEGIN
DECLARE @openquery NVARCHAR(MAX),
@DATABASENAME NVARCHAR(100),
@HIERNAME NVARCHAR(100),
@TABLENAME NVARCHAR(100),
@SERVERTYPE NVARCHAR(100),
@SERVERNAME NVARCHAR(100),
@USERNAME NVARCHAR(100),
@PASSWORD NVARCHAR(100),
@ETL_CONFIG_IDN NVARCHAR(100);
SET @ETL_CONFIG_IDN=CAST(@ETL_CONFIG_ID AS NVARCHAR);
SET @TABLENAME='Department';
SET @SERVERTYPE='SQL';
SET @SERVERNAME ='192.168.31.176';
SET @DATABASENAME='AdventureWorks2008R2';
SET @HIERNAME = 'HumanResources';
IF @SERVERTYPE='SQL'
BEGIN
/*SET @openquery= 'SELECT * INTO ##TestTable
FROM OPENROWSET(''SQLNCLI'',''server=192.168.31.176;Trusted_Connection=yes;'','''+@query+''')'
SET @openquery= 'CREATE VIEW '+@TABLENAME+@ETL_CONFIG_IDN+
' WITH ENCRYPTION AS SELECT * FROM OPENROWSET(''SQLNCLI'',''SERVER='+@SERVERNAME+';TRUSTED_CONNECTION=YES;'',''SELECT * FROM '+@DATABASENAME+'.'+@HIERNAME+'.'+@TABLENAME+''')'
SELECT @openquery
END
EXECUTE sp_executesql @openquery
ENDHi aa_rif,
According to your description and code message, you execute the sp_executesql statement in your stored procedure, it indeed create many views with a tablename and ETL_CONFIG_ID named. If you need not to use these temporary views, you can delete them when
it contains the tablename in one view name.
In addition, if you want to create view with encryption in SQL Server, you can use directly the ENCRYPTION option to encrypt the T-SQL of a view in create view commands, for more information, see:
http://learnsqlserver.in/4/Create-View-With-Encryption.aspx. if not, you can descript more detail about requriements, so that more forum members can involve into the thread and help you
out.
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support -
Can anyone help with this code
i am trying to create a html5 video gallery for my website I was wondering if anyone can help me with this code : Am i missing something got this from the adobe widget browser i can get the button fuctions but i can not seem to get the video to play or work..
This is the full page i am still working on it but the video code which i posted earlier is not working...
123456789101112131415
Home
Biography
To Be Lead
Gallery
Videos
Memorial Page
Wallpaper
Blog
Forum
Contact
Randy Savage Bio
Randy's Facts 101
His Early Career
Randy's Career in the WWF
Randy's Career in WCW
The Mega Powers
Mega powers Bio Mega Powers Facts 101
PM to fans and Elizabeth
Randy's Radio interview
His Death
Elizabeth Hulette
Elizabeth Bio Elizabeth Facts 101 Her Career in the WWF Her Career in WCW Later Life Farewell to a Princess Elizabeth's Radio Interview Elizabeth Death
Sherri Martel
Gorgeous George
Team Madness
Early Years
ICW Gallery
WWF Gallery
WCW Gallery
NWO Gallery
Memorial Page for Randy
Memorial Page for Elizabeth
Video of the Month
Site Disclaimer
Macho-madness is in no way in contact with World Wrestling Entertainment. All photos are copyright to World Wrestling Entertainment or their respective owners and is being used under the fair copyright of Law 107.
©macho-madness.net All right's Reserved.
Affiliates
Want to be an affiliate, elite, or partner site? Email: [email protected] with the list of things below.
Place in the subject of email: “Randy Savage Online Affiliation”.
Name:
Email:
Site Name:
Site URL:
When Will The Site Be Added?:
To see A List Click Here...
©macho-madness.net All right's Reserved.
Offical Links -
TS3694 what is error code 1015 trying to restore but keeps coming up with this code
what is error code 1015 trying to restore phone keeps saying in recovery but keeps coming up with this error code help please
Are you trying to downgrade your iPhone?
Errors related to downgrading iOS
The required resource cannot be found: This alert message occurs when your device has a newer version of iOS than what is available in iTunes. When troubleshooting a device that presents this alert message, go to Settings > General > About and check the version of iOS on the device. If it is newer than the latest released iOS version, the device may have a prerelease developer version of iOS installed. Installing an older version of iOS over a newer version is not supported.
Error 1015: This error is typically caused by attempts to downgrade the iPhone, iPad, or iPod touch's software. This can occur when you attempt to restore using an older .ipsw file. Downgrading to a previous version is not supported. To resolve this issue, attempt to restore with the latest iPhone, iPad, or iPod touch software available from Apple. This error can also occur when an unauthorized modification of the iOS has occurred and you are now trying to restore to an authorized, default state.
(from iTunes: Specific update-and-restore error messages and advanced troubleshooting)
If not, try to move or delete the IPSW file and let iTunes download it again.
Rename, move, or delete the iOS software file (.ipsw)
iTunes uses "ipsw" files to restore your device. If those files are unusable, then try deleting them, renaming them, or moving the file to a different directory. This will cause iTunes to download a new copy of the IPSW. When a restore issue is specific to a user, it is likely due to an unusable .ipsw file. If removing the .ipsw file does not resolve a user-specific restore issue, then the issue is caused by other user-specific security software settings or iTunes preferences. Creating a new user will also cause new .ipsw restore files to be downloaded in the new user. You can find the ".ipsw" files in these locations:
Mac OS X
iPhone
~/Library/iTunes/iPhone Software Updates
iPad
~/Library/iTunes/iPad Software Updates
iPod touch
~/Library/iTunes/iPod Software Updates
Note: The tilde "~" represents your Home directory.
Windows XP
iPhone
C:\Documents and Settings\[username]\Application Data\Apple Computer\iTunes\iPhone Software Updates
iPad
C:\Documents and Settings\[username]\Application Data\Apple Computer\iTunes\iPad Software Updates
iPod touch
C:\Documents and Settings\[username]\Application Data\Apple Computer\iTunes\iPod Software Updates
Note: To quickly access the Application Data folder, click Start, and then choose Run. Type %appdata% and click OK.
Windows 7 and Vista
iPhone
C:\Users\[username]\AppData\Roaming\Apple Computer\iTunes\iPhone Software Updates
iPad
C:\Users\[username]\AppData\Roaming\Apple Computer\iTunes\iPad Software Updates
iPod touch
C:\Users\[username]\AppData\Roaming\Apple Computer\iTunes\iPod Software Updates
Note: To quickly access the AppData folder, click Start, and then in the search bar type %appdata% and press the Return key. -
I need help with this code error "unreachable statement"
the error_
F:\Java\Projects\Tools.java:51: unreachable statement <-----------------------------------------------------------------------------------------------------------------THIS
int index;
^
F:\Java\Projects\Tools.java:71: missing return statement
}//end delete method
^
F:\Java\Projects\Tools.java:86: missing return statement
}//end getrecod
^
3 errors
import java.util.*;
import javax.swing.*;
import java.awt.*;
public class Tools//tool class
private int numberOfToolItems;
private ToolItems[] toolArray = new ToolItems[10];
public Tools()//array of tool
numberOfToolItems = 0;
for(int i = 0; i < toolArray.length; i++)//for loop to create the array tools
toolArray[i] = new ToolItems();
}//end for loop
}//end of array of tools
public int search(int id)//search mehtod
int index = 0;
while (index < numberOfToolItems)//while and if loop search
if(toolArray[index].getID() == id)
return index;
else
index ++;
}//en while and if loop
return -1;
}//end search method
public int insert(int id, int numberInStock, int quality, double basePrice, String nm)//insert method
if(numberOfToolItems >= toolArray.length)
return 0;
int index;
index = search(id); <-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------HERE
if (index == -1)
toolArray[index].assign(id,numberInStock, quality, basePrice,nm);
numberInStock ++;
return 1;
}//end if index
}//end if toolitem array
return -1;
}//end insert method
public int delete(/*int id*/)//delete method
}//end delete method
public void display()//display method
for(int i = 0; i < numberOfToolItems; i++)
//toolArray.display(g,y,x);
}//end display method
public String getRecord(int i)//get record method
// return toolArray[i].getName()+ "ID: "+toolArray[i].getID()
}//end getrecod
}//end class
Edited by: ladsoftware on Oct 9, 2009 6:08 AM
Edited by: ladsoftware on Oct 9, 2009 6:09 AM
Edited by: ladsoftware on Oct 9, 2009 6:10 AM
Edited by: ladsoftware on Oct 9, 2009 6:11 AMladsoftware wrote:
Subject: Re: I need help with this code error "unreachable statement"
F:\Java\Projects\Tools.java:51: unreachable statement <-----------------------------------------------------------------------------------------------------------------THIS
int index;
^
F:\Java\Projects\Tools.java:71: missing return statement
}//end delete method
^
F:\Java\Projects\Tools.java:86: missing return statement
}//end getrecod
^
3 errorsThe compiler is telling you exactly what the problems are:
public int insert(int id, int numberInStock, int quality, double basePrice, String nm)//insert method
if(numberOfToolItems >= toolArray.length)
return 0; // <<== HERE you return, so everyting in the if block after this is unreachable
int index;
index = search(id); //< -----------------------------------------------------------------------------------------------------------------HERE
if (index == -1)
toolArray[index].assign(id,numberInStock, quality, basePrice,nm);
numberInStock ++;
return 1;
}//end if index
}//end if toolitem array
return -1;
}//end insert method
public int delete(/*int id*/)//delete method
// <<== HERE where is the return statement?
}//end delete method
public String getRecord(int i)//get record method
// return toolArray.getName()+ "ID: "+toolArray[i].getID() <<== HERE you commented out the return statement
}//end getrecod
}//end class -
Please help with this code....
I create a button with ActionListner and a writeCd method. Now I want everytime i push the button, it will read the writeCd method. I dont' know how to make it work. Please help me out as soon as possible. Thanks a lot. Below are the codes of the button and writeCd method.
class findCD implements ActionListener
public void actionPerformed(ActionEvent event)
//what do I need to put here to make the button work
//with method writeCD() below
public void writeCd() throws Exception
String outputFileName;
PrintWriter outputFile;
outputFileName = "D:\\cdoutput.txt";
outputFile = new PrintWriter(new FileWriter(outputFileName,true));
int loopTest;
do
String numStr = JOptionPane.showInputDialog("Please enter Index number");
int number = Integer.parseInt(numStr);
cC.setIndexNumber(number);
numStr = JOptionPane.showInputDialog("Please enter cd name");
number = Integer.parseInt(numStr);
cC.setCdName(number);
String message = cC.toString() +
"\nYour input is: ";
JOptionPane.showMessageDialog(null, message);
outputFile.println(numStr + "");
loopTest = JOptionPane.showConfirmDialog(null,"Do another?","",0,1);
while (loopTest == 0);
outputFile.close();class findCD implements ActionListener
public void actionPerformed(ActionEvent event)
try
writeCd();
} catch(Exception e){
e.printStackTrace();
public void writeCd() throws Exception
String outputFileName;
PrintWriter outputFile;
outputFileName = "D:\\cdoutput.txt";
outputFile = new PrintWriter(new
(new FileWriter(outputFileName,true));
int loopTest;
do
String numStr =
umStr = JOptionPane.showInputDialog("Please enter
Index number");
int number = Integer.parseInt(numStr);
cC.setIndexNumber(number);
numStr = JOptionPane.showInputDialog("Please
"Please enter cd name");
number = Integer.parseInt(numStr);
cC.setCdName(number);
String message = cC.toString() +
"\nYour input is: ";
JOptionPane.showMessageDialog(null, message);
outputFile.println(numStr + "");
loopTest =
pTest = JOptionPane.showConfirmDialog(null,"Do
another?","",0,1);
while (loopTest == 0);
outputFile.close();
}That should work. This also assumes that the method writeCd is in the class findCD. -
Help me with this code..
need help with this code... i am new to java programming.. and having difficulties with the code below...
import java.awt.*;
import javax.swing.*;
import java.net.*;
public class DisplayImage extends JApplet
public void init()
int[] imageData = {0x47,0x49,0x46,0x38,0x39,0x61,0x38,0x00,0x12,0x00,0xF3,0x00,0x00,0xFB,0x0B,0x0E,0xFF,0x24,0x00,0xFF,0x3C,0x00,0xFF,0xFF,0xFF,0xFF,0x00,0x7B,0xFF,0x00,0x1E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x2C,0x00,0x00,0x00,0x00,0x38,0x00,0x12,0x00,0x00,0x04,0x68,0x10,0xC8,0x49,0xAB,0xBD,0x38,0xEB,0xCD,0xBB,0x0E,0x5E,0x26,0x84,0x64,0x69,0x9E,0xE6,0xA0,0x0E,0xD5,0xEA,0x4E,0xEE,0x4A,0xBD,0xA8,0x2A,0xD9,0x30,0xCB,0xE1,0x00,0xCE,0x93,0xBC,0x9F,0x6E,0x13,0x1C,0xF6,0x8C,0xA7,0x62,0x47,0x99,0x43,0xDD,0x8C,0x31,0x64,0x73,0xFA,0xAC,0xC9,0xA8,0x3F,0xEA,0x71,0x26,0x2D,0x65,0xB9,0x96,0xAC,0xEF,0x9B,0xEA,0x6E,0x5B,0xD2,0xA8,0x53,0x0B,0x6E,0x67,0xC8,0x44,0xA8,0x4E,0x88,0x14,0xCB,0x93,0xF3,0xFB,0xD9,0x3D,0x85,0x2F,0xAF,0x5C,0x64,0x82,0x80,0x6B,0x16,0x04,0x85,0x88,0x6B,0x05,0x89,0x12,0x11,0x00,0x3B};
ImageIcon icon = null;
try
icon = ImageIcon(ImageDate[]);
catch(IOException e)
System.out.println("Failed to create URL:\n" + e);
return;
loadImage(image);
int imageWidth = icon.getIconWidth(); // Get icon width
int imageHeight = icon.getIconHeight(); // and its height
resize(imageWidth,imageHeight); // Set applet size to fit the image
//Create panel a showing the image
ImagePanel imagePanel = new ImagePanel(icon.getImage());
getContentPane().add(imagePanel); // Add the panel to the content pane
// Class representing a panel displaying an image
class ImagePanel extends JPanel
public ImagePanel(Image image)
this.image = image;
public void paint(Graphics g)
g.drawImage(image, 0, 0, this); // Display the image
Image image; // The image
}Thanks in advance...
Uzairyeah true.... its not that i need someone to write the code.. just cos this code is giving me some problems thought i could get code from others...
i noticed the extra bracket ending the init().. but thats not what i have problem with....
It is with how to use ImageIcon(byte[])
it is something that i need to use this thing in particular... as i am asked to do....
Maybe you are looking for
-
Hi, Opening iWeb, I am now getting a template "start" page as if it's my first time, so somehow I've lost all of my preferences after juggling a recent upgrade (am I correct that this would be the "com.apple.iWeb.plist" file?). I'm wondering if there
-
Can I purchase apps in the mac app store using a iTunes card?
-
What is CRM 6.0 Business Rule concept and where can i find some details of the same some one please help me with this i couldnt find nething in google ?
-
Checking Image Size and Dimensions
How do I check the size of an image like a Signature or another image without having to save it and then checking it? Is there a way to check it in Safari?
-
I have a flash form embedded in a CF7 page. I have a pair of radio buttons along with a tab navigator on the form. I want to make it so that if the second radio button is clicked, the entire tab navigator control becomes disabled. I know I could do t