i have three JFrames, i want to close one of them without influence to another.
what can i do to get it ?
thanks Peter. I want to open two(or more) JFrames at the same time, and When I close one of them(use the default close button), others is still open.
How to convert a double into a floating-point string representation without scientific notation in C++.
"Small" samples (effective numbers may be of any size, such as 1.5E200 or 1e-200) :
0.0000000000000000000000000000000000000000000000000000000023897356978234562
Thank you.
how i can do this.
if user want to closed his window without saving then show a confirm error that "are you really want to closed the window".
how i can do this
I want to get the path of my app like: "\\ProgramFiles\\myApp", I try to use the following code:
string path = System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase;
But it returns a path which has "\\myapp.exe" at the end.
I also tried:
string path = System.IO.Directory.GetCurrentDirectory();
But it throws an “NotSupportedException”.
Is there any way to get a path without .exe at the end?
If you put the aif code presented in onlisp in a package and try to use it in another you run in the problem that packagename:it is not external.
(in-package :packagename)
(defmacro aif (test-form then-form &optional else-form)
‘(let ((it ,test-form))
(if it ,then-form ,else-form)))
wanted call syntax
(in-package :otherpackage)
(aif (do-stuff)
(FORMAT t "~a~%" it)
(FORMAT t "just got nil~%"))
How can I fix this behavior in code, without making the variable it external in the package declaration and beeing able to access it just by it instead of packagename:it?
Can we access the integer type variables in classB which are declared in classA by not using extern?
For objects I used ClassA *obj1 = [[ClassA alloc]init]; And accessed the objects of classA into class B.
But, I am not able to do them with the int , float, NSTimeInterval. How can we do for them without using extern ?
Thank You.
i want to find the square root of a number without using the math module,as i need to call the function some 20k times and dont want to slow down the execution by linking to the math module each time the function is called
is there any faster and easier way for finding square root??
I have a following class:
class Foo:
CONSTANT = 1
def some_fn(self):
a = Foo.CONSTANT
# do something
How can I refer to Foo.CONSTANT without referring to Foo, or refer to Foo in a generic way? (I don't want to change all references to it when renaming a class)
I'd like to use redgreen (or similar) to colour the output of our tests, but I don't want to force it on everyone else. Is there a way for me to use it without changing our source code?
Is there a way to have an XDocument object save its content and keeps the hexadecimal references as they are without parsing them?
Thank you for any help.
I want to create a simple clock using Java. The code is so simple that I will give an example:
for(int i=0;i<=60;i++)
jLabel11.setText( Integer.toString(i) );
The problem is while I'm running my program the result didn't show each update in sequence.
It show only the 60 digit immediately, without showing the change from 1 to 2 to 3 ...
How can i fix this problem?
Hi,
I am using C# and I am having trouble loading large files into a binary field use byte arrays.
Basically, if I load a file that is too large, I get memory problems.
Is there a way to load a file into a binary field without using large amounts of ram, i.e. avoid loading the file into memory first?
If it helps, I am using Advantage Database Server and this is using a winforms app not a web app.
Regards
Want to check that my site map contains a page.
Could just iterate through SiteMap.RootNode.GetAllNodes() but is there a way to search for a page without iterating manually?
I can't run a debug sdk application because it requires both VC 8 and VC 9 versions of the CRT. But it only requires visual studio 2008 for plugin dev, which is what I need.
How do I install the debug runtimes from 2005 on to a Windows7 machine? I can't figure out how to make them run app local nor can I copy anything into the winSxS folder without a trusted installer.
I need to be able to display a money field as $XX,XXX.XX, but without converting to varchar using total_eval = '$' + CONVERT(varchar(19),total_eval.opvValueMoney,1)
My project uses sorting of the information after I pull this to sort the column and it doesn't sort correctly when the column is a varchar.
Is there anyway to do this?
My question is related to memory footprint in java for class without data member. Suppose in java I have a class which doesn't have data member and it only contains methods. So if I am creating instance of particular class then does it occupies memory in primary memory except object reference memory ?
Hi People,
I have an issue in Core java.
Consider the Employee class having an attribute called age.
class Employee{
private int age;
public void setAge(int age);
}
My question is how do i restrict/prevent setAge(int age) method such that it accepts only positive numbers and it should not allow negative numbers,
Note: This has to be done without using client side validation.how do i achieve it using Java/server side Validation only.The validation for age attribute should be handled such that no exception is thrown
I've got a UITableView that is sortable, but that's it. Right now, I have all the cells set to UITableViewCellEditingStyleNone, but this still moves the TextLabel of the cell over to the right by 40 pixels. Is there anyway to get edit mode, and the sort icon at the right, without shifting the TextLabel over?
I have to PC, one is server on Linux containing project files ( also build machine ) and another working desktop machine on WinXP. I want to create a project in Eclipse on my desktop machine without coping files to local machine, actually I want to be able to modify remote files and immediately run build, unlike modifying local files and synchronizing with remote project.Is it possible?
Thanks
Using JavaScript, is there a way to update window.location.hash without scrolling the web page?
I have clickable title elements that toggle the visibility of a div directly beneath them. I want the /foo#bar in the history when clicking titles but don't want the page scrolling about. So when navigating away from /foo#bar I'll be able to use the back button and have the div whose ID is in window.location.hash be visible upon return.
Is this behavior possible?
I have a pointer that points to an array and another pointer referencing the same array. How do i delete any one of those pointers without killing the array such that the second undeleted pointer still works?
for example:
int* pointer1 = new int [1000];
int* pointer2;
pointer2 = pointer1;
Now i want to get rid of pointer1, how would i do it such that i can continue to access the array normaly through pointer2?
Is it possible to update a directory to a specific revision without cloning the whole repository (local or on a central server) in Mercurial? This would be great, because to clone the whole repo first takes to much time for me. As example: default and the b2.3 branch from which I want to update.
Thanks in advance! :)