Modifiers are keywords that you add to those definitions to change their meanings.
Questions tagged [modifiers]
74 questions
0
votes
1 answer
How can I append to Java KeyEvent modifiers?
I have a KeyEvent whose modifiers I want to change to include the shift key. My current approach is to create a new KeyEvent using information from the old, attempting to add the shift key to the modifiers. However, it doesn't seem to be working.
Is…

tM --
- 207
- 1
- 13
0
votes
2 answers
JList containing JCheckBox and a String, with non ctrl click selection?
Been a while since I posted on here, and now I am at a point where I find myself stuck yet again.
For my assignment at uni, we have been asked to create an address book application. It is going well, and it's nearly completed, however one part of…

Relequestual
- 11,631
- 6
- 47
- 83
0
votes
2 answers
java interface fields compiled undesirable modifiers
I declared the following interface:
public interface SQLSyncAble
{
boolean modified = true;
long id = -1;
static HashMap SQLModifiers = new HashMap();
static Field[] SQL_Object_Fields = null;
…

Dankó Dávid
- 302
- 3
- 17
0
votes
2 answers
Comparing modifiers in Java
In java you can use reflection to get an integer representing all the modifiers on a class. For example:
public final class Foo{}
Foo.getClass().getModifiers();//returns 17 because public=1 and final=16
My question is, what is the best way to…

David says Reinstate Monica
- 19,209
- 22
- 79
- 122
0
votes
2 answers
C# Locking, Properties & Permissions
I've been using lock on value type properties when multi-threaded access is required. Also, I've been meaning to become more diligent about applying proper access modifiers, especially in my library code that is starting to become useful in…

Nate
- 5,237
- 7
- 42
- 52
0
votes
1 answer
Bind an action to a combination of 3 or more keys using Key Bindings
I understand how to use Modifiers with Key Bindings like CTRL_DOWN_MASK + some key but I want to be able to bind a specific action to when Control, some letter (i.e. 'W'), and the up arrow are all being pressed. Something like CTRL_DOWN_MASK + some…

Alex
- 21
- 2
0
votes
1 answer
What does %~dp0 mean
Possible Duplicate:
What does %~dp0 mean, and how does it work?
i had to modify a bat file in my work a few days ago.
when i read the file,i found i didn't know what the string "%~dp0" means.
i got the explanation of it on the microsoft web…

user1039304
- 365
- 5
- 10
0
votes
1 answer
what modifiers should I give a variable in this code example?
what modifiers should I give the variable, label, in this code example below?
I am new to Java, but the first thing I wanted to do was break out all the classes I can use in swing like JLabel and make it so I can call them dynamically. I hope I did…

JoJo
- 4,643
- 9
- 42
- 65
-1
votes
1 answer
Link 2 variables together
I wanted to know how to match a string between the column. For ex:
A. B. C. D. E. F.
1. 2. 3. 4. 5. 6
In above example let Alphabet be column name and digits are considered as values in the column.
So, i…

Shre
- 1
-2
votes
1 answer
Why aren't all Java methods static?
I am just checking my reasoning here, because I think I already know the answer. Someone asked me: No matter how many instances I might have of a particular class, a given method will surely have the same operation in each of those objects. So why…

Rowan
- 91
- 3
-2
votes
4 answers
Variable inaccessible?
In the code below the variable 'id' is inaccessible in the class Horse, is this an inheritance issue? An access modifiers issue? Any help is greatly appreciated.
class Animal
{
private:
int id;
};
class Horse : public Animal
{
public:
…

Emmett
- 357
- 2
- 4
- 15
-4
votes
2 answers
What are the maximum number of modifiers, a java method can contain?
There are several modifiers used before declaring a java method such as public, static, synchronized etc.
I just want to know the maximum numbers of modifiers or all the combination of modifiers a java method can contain.

MRHMisu
- 31
- 6
-4
votes
1 answer
What java modifier let's me use a boolean in any class and method
I have a Boolean large small and medium in classB. ClassA wants to use it, as well as classB. If I try putting the Boolean in classA it changes to static and fails. Can someone tell me what I should use? I don't know what abstract does yet.

Mr.CodeIt
- 17
- 1
- 5
-6
votes
2 answers
Why can I not type in my numbers?
Hi guys so Whenever I run the code, I asks me to put in my name, number of hours worked and hourly wages. That's correct however when it does the calculations, the program uses the values in the default constructor and not the values I type…

manmeet singh
- 21
- 2