Wanted Main window only on Task bar ...Need help as soon as possible
Hello All,
We are creating one application.
We have main window(JFrame) with four subwindows.
By clicking buttons on main window the subwindows will be opened.
By using Iconified method we are able to minimise all the subwindows when main window is minimised.
But on the task bar all the windows are showed.
But we want to show main window only on the task bar while minimising
That means all the sub windows should come under main window.
Will Deiconified satifies this condition while maximisation.
Need some ones help.
Thank You All.
Rajiv.V
Use show() and hide() on your subwindows instead of iconifying and deiconifying them. Minimizing a window should produce exactly the behavior you're seeing. Using the right tool will get you the right result.
Similar Messages
-
Hey Hi ! I brought iPhone 5 in Kuwait and now I'm in India now.I noticed my FaceTime option is missing. No option no settings and no data related to FaceTime . I'm very much worried about it. Need help as soon as possible.
Someone could have stolen it in Kuwait...happens all the time .
Seriously...FaceTime is banned there...there is no way to add it back to your phone...if you wanted FaceTime, you should not have purchased your phone there.
BTW: You don't have any warranty or support for this phone in India.
You live & you learn -
BW Archiving- Need help as soon as possible
Hi,
Can Archiving on ODS be implemented using an ABAP program? If the data is loaded on to flat files and if it is required to reload it back to ODS is ABAP a better choice. If any one has worked on this issue earlier please provide me the information as soon as possible. Any input on this issue will be of great help.
Thanks,
SPHi sudheer,
I have gone through few of your requests to SDN network . and found out thta you have worked on "sap bw archiving ". So, I need a small help from you . need to clear out some of my doubts with sap bw archiving issues . So could you please send me your e-mail id . so that i can be in contact with you . As i am new to SDN .
Thanking you in advance . I would appreciate your help .
or Anyone who have experience with "SAP BW archiving " could you please send me your mail id . Thanks for your help .
Cheers,
shailu. -
Alert window only for new session, need help...
Heya,
So I created a confirm() popup that tells the user they need
to download Flash, but I need this to only appear once per session.
I've never written this before so is there anyone that can point me
to a tutorial, example or snippet? Thanks!Spencer Hill wrote:
> Heya,
> So I created a confirm() popup that tells the user they
need to download
> Flash, but I need this to only appear once per session.
I've never written this
> before so is there anyone that can point me to a
tutorial, example or snippet?
> Thanks!
>
more info please, and a link to the page. This does not make
sense.
seb ( [email protected])
http://webtrans1.com | high-end web
design
An Ingenious WebSite Builder:
http://sitelander.com -
I need help as soon as possible please hs to with arrays.
import java.util.Random;
public class AviarySimulator
// Instance variables
private Aviary aviary;
private int numberOfDays = 0;
private Random r;
public void simulateDay(int amtFeed)
//a new Day
numberOfDays++;
System.out.println("**************************");
System.out.println ("Day : " + numberOfDays);
if(!aviary.isEmpty())
// Ask the cage to supply its budgie object
Budgie theBudgie = aviary.getBudgie();
/* Check there really is a Bird in the cage. null means that there is no
* bird object assigned to the myBudgie variable in class cage.
if(theBudgie != null)
// Code moved from below. PR
// Budgie gets older because a day has gone by.
theBudgie.incAge();
// Budgie exercises every day PR
theBudgie.exercise(DAILY_EXERCISE);
// Feed the budgie
// To avoid feeding nothing, check that food is given PR
// Also rejects negative feed!
if(amtFeed > 0)
theBudgie.eat(amtFeed);
System.out.println("Just been fed " + amtFeed + " grams of bird seed");
// Check if the budgie is still alive
if(theBudgie.isDead())
System.out.println(theBudgie.getName() + " just died...sob");
System.out.println("Here lies " + theBudgie.getName() + " this budgie was much loved by its " +
theBudgie.getNumEggsLaid() + " eggy ofspring");
aviary.removeBudgie();
// If alive is it overweight?
else if(theBudgie.isObese())
System.out.println(theBudgie.getName() + " is obese it needs some exercise");
theBudgie.exercise(10);
else // Budgie is alive and not overweight
System.out.println(theBudgie.toString());
// The budgie gets a day older
// theBudgie.incAge(); // Moved to above PR
// The budgie may lay an egg
if(theBudgie.layEgg(r))
System.out.println(theBudgie.getName() + " has just laid an egg ");
System.out.println("The egg has been removed from the cage for artificial incubation \n"
+ "and will be adopted out after hatching");
else // No budgie in the cage
System.out.println("The cage is empty");
* Simulate several days without food.
* @param numDays, the length of the simulation
public void simulateDays(int numDays)
for(int i = 0; i < numDays; i++)
simulateDay(0); // PR
* Simulate several days with food.
* @param numDays, the length of the simulation
* @param amtFeed, the amount of budgie food in grammes
public void simulateDays(int numDays, int gmsSeed)
for(int i = 0; i < numDays; i++)
simulateDay(gmsSeed);
}This code is supposed to be compatible with this code:
public Budgie(String name, boolean female) // Added gender PR
// Initialise instance variables
age = 0;
colour = "green"; // Default colour
canTalk = false; // Cannot talk yet, can only go "cheep"
// Quotes removed PR
budgiesWords = "cheep";
weight = 25; // In healthy weight range
bIsFemale = female; // PR
water = 10;
// Record supplied name
this.name = name;
* Teaches a budgie to talk
* @param phrase - what the budgie can say
public void teachToTalk(String phrase)
// Ignore an empty string
if(phrase != "")
// Budgie can now talk
canTalk = true;
budgiesWords = phrase;
* Increments a budgie's age by a day
public void incAge()
age++;
* The budgie is dead if it is too old or too fat or starved or too thirsty.
public boolean isDead()
return (diedOfOldAge() || diedFromOverFeeding() || isStarved() || diedOfThirst());
* The budgie is too old if it is older than the budgie's maximum age.
public boolean diedOfOldAge()
return (age > MAX_AGE);
* The budgie is too thirsty if it is has less than 10mls of water.
public boolean diedOfThirst()
return (water < MIN_DRINK);
* The budgie is too heavy to live if it is more than double a
* budgie's sensible weight limit.
public boolean diedFromOverFeeding()
return (weight >= TOO_FAT*2);
* The budgie is obese if it is more than a budgie's sensible
* weight limit.
public boolean isObese()
return (weight >= TOO_FAT);
* The budgie is starved if it is less than a budgie's sensible
* minimum weight.
public boolean isStarved()
return (weight <= TOO_THIN);
* The budgie has been fed. It will put on weight.
* @param gmsOfBirdFeed, the amount of food eaten in grammes
public void eat(int gmsOfBirdFeed)
// Convert to gms fat
double fat = gmsOfBirdFeed/10.0;
weight = weight + fat;
* The budgie has drunk.
* @param mlsofwater, the amount of water drunk in mls
public void drink(int mlsOfWater)
water = mlsOfWater;
* The budgie has done some exercise. It will lose weight.
* @param minutesOfExercise, the time of the exercise
public void exercise(int minutesOfExercise)
double weightLoss = minutesOfExercise * 0.1; // For each minute lose 0.1 gms fat
weight -= weightLoss;
System.out.println("Budgie exercising for " + minutesOfExercise + " minutes, has lost " + weightLoss + " grammes in weight." );
* The budgie may lay an egg. Only adults can lay eggs.
* @param rnd, a random object
public boolean layEgg(Random rnd)
boolean bLaying = false; // default
// Only hens can lay eggs // PR
if(bIsFemale)
int probability = rnd.nextInt(10);
// Random chance that it will lay
// Added that cannot lay if last egg laid yesterday PR
if((probability >= 5) && (age > ADULT_AGE ) && (age - lastEgg != 1))
// Can only lay eggs if a grown-up
numEggsLaid++;
bLaying = true;
lastEgg = age; // Laid an egg today PR
return bLaying;
* The budgie talks - display its words.
public void talk()
System.out.println(budgiesWords);
* Change the colour of the budgie.
* @param newColour, new value of budgie's colour
public void setColor(String newColour)
colour = newColour;
* Return the colour of the budgie.
* @return budgie's colour
public String getColour()
return colour;
* Output the budgie's details.
* @return A string containing all details of the budgie
public String toString()
String msg = "Budgie " + name + " ";
if(canTalk)
msg += "can talk it says ";
else
msg += "can not talk it just makes the sound ";
msg += "'" + budgiesWords + "'";
msg += "\n";
msg += " Its colour is : " + colour;
msg += "\n Its age is : " + age + " days.";
return msg;
* Return the number of eggs the budgie has laid.
* @return eggs laid by budgie
public int getNumEggsLaid()
return numEggsLaid;
* Return the budgie's age.
* @return age of budgie
public int getAge()
return age;
* Return the budgie's name.
* @return name of budgie
public String getName()
return name;
* Return the budgie's gender.
* @return true if budgie is female
public boolean isFemale()
return bIsFemale;
But everytime I try to compile it highlight this bit in the simulator:Budgie theBudgie = aviary.getBudgie();With an error message:
getBudgie in Aviary cannot be applied to ()
Im sorry for the long post please help would be most apreciated.NO prob man thank for such a quick response
import java.util.ArrayList;
* A Aviary for budgies to live in.
* A maximum of one budgie can live in aviary
* @author (Jacqui Whalley)
* Modified by Phil Robbins
* @version (v0.2)
* 9-3-2006 Fixed bugs from stage 1.
* Added stage 2 code
public class Aviary
// Instance variables
private ArrayList budgies; // The budgies that live in the aviary
// private boolean empty; // Removed PR
* Constructor for objects of class aviary.
public Aviary()
//empty = true; // removed PR
budgies = new ArrayList(); // Semi colon added PR
* Add a budgie to the aviary.
* @param bird, the budgie to add to the aviary.
public void addBudgie(Budgie bird)
// Can only have one budgie
budgies.add(bird);
* Remove the budgie - eg if it has died.
public void removeBudgie(int index)
if (index <= budgies.size() && index > 0)
// Can only remove if there is a budgie there
budgies.remove(index);
else
System.out.println("Error");
* Returns the Aviary's budgie (which my be null).
* @return The budgie that lives in the Aviary
public void getBudgie(int index)
if (index <= budgies.size() && index > 0)
// Can only remove if there is a budgie there
System.out.println(budgies.get(index));
else
System.out.println("Error");
* Returns true if the cage is Aviary.
* @return the emptiness of the Aviary
public boolean isEmpty()
//return empty; // Removed PR
return budgies.size() == 0;
* List budgies and there details
public void listBudgieDetails()
for(int i = 0;i < budgies.size();i++)
System.out.println(budgies.get(i));
} -
So I have this composition that I want to render. Some of the layers in that composition has bicubic interpolation enabled. When I rendered that composition, the layers with bicubic interpolation enabled went back to default, seen in the image file attached.
For more information, I'm importing this into a premiere which I will then render again for YouTube. Would this happen again when I render from adobe premiere?The layers highlighted are the ones with bicubic interpolation enabled. It looks fine in the preview window and in premiere, since this whole after effects comp is a dynamicly linked comp between AE and Premiere. The problem is, when I render this comp in After Effects, those highlighted layers become blurry. Also, if you're wondering why I'm rendering this comp even though it's dynamically linked with premiere, it's because I do it to reduce time in rendering when I color correct/grade in premiere.
-
I need help as soon as possible. statement wont execute the if statement
I can not seen to make my "if statement work" can someone guide me in the right direction.
import java.util.Scanner;
import java.lang.Math;
public class bm
* main
public static void main(String[] args) throws Exception
Scanner scanner1,scanner2,scanner3;
String sGradeType,sGrade="",sUGrade;
char cGrade;
double dGrade;
long drGrade;
int iGrade=0;
System.out.println("Type of Entry (Chars(C)/Digits(D)");
scanner1 = new Scanner(System.in);
scanner2 = new Scanner(System.in);
sGradeType = scanner1.next();
sGradeType = "D";
if (sGradeType == "D")
System.out.println("Enter Grade number");
scanner2 = new Scanner(System.in);
dGrade = scanner2.nextDouble();
drGrade = Math.round(dGrade);
iGrade = (int)dGrade;
switch (iGrade)
case 75 :
sGrade = "A" ;
break ;
case 60 :
sGrade = "B";
break ;
case 50 :
sGrade = "C";
break ;
case 40 :
sGrade = "D";
break ;
default :
System.out.print("illegal Grade !") ;
System.out.printf("Grade Value, %8.3f. Grade %s", dGrade, sGrade);
} else if (sGradeType == "C")
System.out.println("Enter Grade Letter");
scanner3 = new Scanner(System.in);
sGrade = scanner3.next();
sUGrade = sGrade.toUpperCase();
cGrade = sUGrade.charAt(0);
switch (cGrade)
case 'A' :
iGrade = 75 ;
break ;
case 'B' :
iGrade = 60;
break ;
case 'C' :
iGrade = 50;
break ;
case 'D' :
iGrade = 40;
break ;
default :
System.out.print("illegal Grade !") ;
System.out.printf("Grade Value, %d, Grade %s", iGrade, sGrade);
} // end of method main
}Oops! Hit the wrong button.
OK.
First up - welcome to the Sun forums.
A few points.
>
I can not seen to make my "if statement work" can someone guide me in the right direction.>1) Maybe the if statement is just a little tired. Give it a good night's rest and it will probably do twice the work tomorrow.
Or to put that a less funny way..
Please describe what it was supposed to do, why you thought it would do that, and what it actually did.
2) Which 'if' statement? There are two if statements in that code.
3) String comparison should not be done using '==', instead use string1.equals(string2)
4) Please use the code formatting tags when posting code, and indent code using the common conventions.
This is what I mean..
import java.util.Scanner;
import java.lang.Math;
public class bm
* main
public static void main(String[] args) throws Exception
Scanner scanner1,scanner2,scanner3;
String sGradeType,sGrade="",sUGrade;
char cGrade;
double dGrade;
long drGrade;
int iGrade=0;
System.out.println("Type of Entry (Chars(C)/Digits(D)");
scanner1 = new Scanner(System.in);
scanner2 = new Scanner(System.in);
sGradeType = scanner1.next();
sGradeType = "D";
if (sGradeType == "D")
System.out.println("Enter Grade number");
scanner2 = new Scanner(System.in);
dGrade = scanner2.nextDouble();
drGrade = Math.round(dGrade);
iGrade = (int)dGrade;
switch (iGrade)
case 75 :
sGrade = "A" ;
break ;
case 60 :
sGrade = "B";
break ;
case 50 :
sGrade = "C";
break ;
case 40 :
sGrade = "D";
break ;
default :
System.out.print("illegal Grade !") ;
System.out.printf("Grade Value, %8.3f. Grade %s", dGrade, sGrade);
} else if (sGradeType == "C")
System.out.println("Enter Grade Letter");
scanner3 = new Scanner(System.in);
sGrade = scanner3.next();
sUGrade = sGrade.toUpperCase();
cGrade = sUGrade.charAt(0);
switch (cGrade)
case 'A' :
iGrade = 75 ;
break ;
case 'B' :
iGrade = 60;
break ;
case 'C' :
iGrade = 50;
break ;
case 'D' :
iGrade = 40;
break ;
default :
System.out.print("illegal Grade !") ;
System.out.printf("Grade Value, %d, Grade %s", iGrade, sGrade);
} // end of method main
} Edited by: AndrewThompson64 on Apr 12, 2009 10:47 PM -
I need help as soon as possible
Can anyone please help me and explain how can I do this white effect on dark background? Can I do this in Illustrator or I must use Photoshop?
Thank you.1. Use a black rectangle to make your black background.
2. Create your mountain shape using the pen tool.
3. Make a ellipse in the shape of your white glow. Set its stacking order to be behind your mountain, but in front of your background (or use different layers).
4 Set the fill of your ellipse to be a radial gradient from white to black.
5. Select your ellipse and go to Effect > Texture > Grain. Play with the sliders until you achieve the desired effect. You may need to bounce back and forth between your gradient settings and the texture settings to get it right.
Tip* You can access the settings of the texture effect again after you apply them by going to your appearance palette and selecting it. -
NEED HELP AS SOON AS POSSIBLE!
my computer crashed just recently and i got my account back for itunes, but my library is empty. so i plugged my ipod in to put my songs from my ipod to my library, but it wont work. i went to my account page and it says "one machine is authorized to play music purchased with this account". how do i authorize another computer to play music?
With iTunes open, look at the very top of the screen, just a bit to the left of center.
-
.save problem, need help as soon as possible !
function dataGrabbed(event:Event):void
var dataText = input_txt.text
saver.addEventListener(Event.COMPLETE, dataSaved);
saver.save("saver.php","data.xml",dataText);
the above code is a code I am trying to use, but dataText as you can se is just a var, how do I tell ActionScript3 to put dataText into dataXML.options.info.uid ?
saver.php content:
<?php
$content = $_POST['content'];
$file = $_POST['fileName'];
$content = stripslashes($content);
$writeFile = fopen($file, "w");
if(fwrite($writeFile, $content))
echo $content;
else
echo "Error writing to file";
fclose($writeFile);
?>use:
var urlR:URLRequest = new URLRequest("saver.php");
var ldr:URLLoader= new URLLoader();
ldr.dataFormat = URLLoaderDataFormat.VARIABLES;
var urlV:URLVariables = new URLVariables();
urlV.content = input_txt.text;
urlV.fileName = "data.xml";
urlR.data = urlV;
urlR.method = URLRequestMethod.POST;
ldr.addEventListener(Event.COMPLETE, completeF);
ldr.addEventListener(IOErrorEvent.IO_ERROR, IOErrorF);
ldr.load(urlR);
function completeF(e:Event):void {
function IOErrorF(e:IOErrorEvent):void { -
How to output particular text in main window only in first page
Hi experts how to ouput particular text in main window only in first page after that actual transaction data will be continued.....any ideas....Answers will be rewarded.....
Hi,
Try this.
/: IF &PAGE& = '1'
/: ENDIF
Thanks,
Naren -
How to add the window icon to task bar
hai,
i am display one window using jwindow.how can i place that in
window(os)task bar.plz help me.
thnks in advance.
kishoreOnly JFrames in the taskbar. If you are using 1.4, you can use a JFrame and use setUndecorated(). It looks a lot like a JWindow.
-
when i open a link in a new window all my windows on the task bar pop up, how do I stop that happening?
Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.org/kb/Safe+Mode
You may have switched on caret browsing.
*http://kb.mozillazine.org/accessibility.browsewithcaret
You can press press F7 (on Mac: fn + F7) to toggle caret browsing on/off.
*Tools > Options > Advanced : General: Accessibility: [ ] "Always use the cursor keys to navigate within pages"
*http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
*http://kb.mozillazine.org/Accessibility_features_of_Firefox -
Can not turn suggestions on in main window box, works on bar only
down loaded new FF - changed Yahoo page for blank - set FF as new home page - now suggestions only work on search bar only - can not find out how to turn suggestions on in main window search box - online help windows show 2 blue f boxes in tool bar which I no longer have on my tool bar - they disappeared when I switched out the Yahoo home page. Can I not have FF with suggestions as my home page or do I have to run it the way it was down loaded?
The about:home page with a Google search bar doesn't and can't show suggestions.<br />
You will have to set the home page instead to the Google website (https://www.google.com).
*https://support.mozilla.org/kb/How+to+set+the+home+page
*Tools > Options > General > Startup: Home page -
One button for Firefox window on the Task Bar instead of many
I want to see just one button in the Task bar of my computer for Firefox window and not multiple, each window for each open tab. How can I do that?
There is a setting for whether to inform Windows about each individual tab or only the active tab in each separate window. Here's where you can check and adjust that:
"3-bar" menu button (or Tools menu) > Options > Tabs panel
It's the last item: "Show tab previews in the Windows taskbar". If that is checked, you get ALL tabs in ALL windows on the Taskbar, and if it's unchecked, you only get the active tab in each window.
Is that what you're looking for?
Maybe you are looking for
-
Hello ! I'm from Germany but currently working in the US for a few months. I wanted to buy me a mac mini (unibody) here, for work etc. My question now is, am I able to use my Mac mini in Germany, too ? I ask because in Germany we have the 220V standa
-
Win 7 Home Edition to Win XP Pro Sharing
I'm trying to send files to my Win XP Pro from my Win 7 Home Edition to repair the Win XP files,I have a cross-over cable connection,I got the XP to ping the Home Ed. Now can I or do I ping or just start sharing from Win 7 to Win XP? Please answer
-
Message Mapping: Douplicate Nodes of source XML
Hi, I do some message mapping in the design. I've loaded a test XML into the test tab to actually see what's going on in my mapping. A piece of it looks like the following snippet (the REFERENCE element is also embedded in a whole bunch of other elem
-
Need to start process without SAP_BPM_SuperAdmin
We would like to give a class of users the ability to launch BPM processes without giving them SAP_BPM_SuperAdmin. The problem with doing that, is that they could access NWA and change the process repository, if they found there way there. Is there a
-
How to improve speed of laptop
how to increase speed of laptop