Posts by Forsaiken • 344 points
12 posts
-
5
votes1
answer67
viewsQ: Is it possible not to allow duplicity in a combination of 2 columns or more?
I know that SQL Server has the Primary Keys and start not to allow duplicate records, but it is possible to do this through 2 columns or more? As an example, I have a table with column, house and…
-
9
votes3
answers170
viewsQ: How to change property access level in an inheritance?
I have a class that when inherited I want one of its public attributes to become private, so that the user does not have access to the use of this variable in this class, but I do not know how to do…
-
0
votes1
answer45
viewsA: Synchronous plugin
The Sincrono Plugin performs its operation on the main thread of the Entity, that is, while it is not done, the other plugins or executions are not performed until this plugin is finished, it…
-
0
votes1
answer82
viewsQ: How to change dll from Reference with running application?
I have a project where I need to use a reference with different versions in a single execution, example: Switch System.Drawing version 2.0.0 to System.Drawing version 1.0.0 It’s possible to do that?…
-
1
votes0
answers113
viewsQ: How to make a Gradient Map (2 colors) in an Image?
I need a solution to turn the color of an image into black and white. There are 3 ways to do this, using Grayscale that technically plays white to gray, making the saturation stay -100 and through…
-
0
votes0
answers50
viewsQ: Why does Jframe have different sizes between window mode and full screen mode?
Well, I was doing the setLocation so that the Graphics are compatible with any game resolution. Then I realized a certain problem when I tried to make a frame.getHeight - figura.getHeight (The…
-
0
votes1
answer92
viewsA: I’m a beginner in C, I need help on a task!
if(i=1){ maior=salario; menor=salario; } When you put in a condition i = 1, every time your code gets to it, it will assign the value 1 in i, ie your for never Aira of the 1, the correct would be if…
-
3
votes1
answer599
viewsA: How to change the value of variables every time you repeat the def function?
def funcao (x=0, y=0, z=1): while x < 3: s = sum(s[y] + s[z]) z += 1 x += 1 if s == 8: print(f'Os números {s[y]} e {s[z]} somados dão 8. ') elif s > 8: print(f'Os números {s[y]} e {s[z]}…
python-3.xanswered Forsaiken 344 -
1
votes0
answers210
viewsQ: How to thread to wait for another class to be completed and continue the code?
As well as described in the code I need a solution to give a pause in main until it waits for some call to continue the code of the class main. I know this will be solved with thread, but so far I…
-
0
votes1
answer175
viewsA: How to make a class to manipulate Graphics2d in Paint?
I solved the problem by making the draw() command receive the Graphics g and after that I did the g2d variable again, as I did at the Sprite initiation. public void draw(Graphics g) g2d =…
-
-1
votes1
answer175
viewsQ: How to make a class to manipulate Graphics2d in Paint?
In the following code I tried to create a Sprite class to manipulate the drawings, its function would be to transform the sprites into Graphics2d and use it in the Paint. But the only way I could…
-
1
votes1
answer185
viewsQ: My Jlabel does not appear
I’ve used several commands to make this label appear, but I can’t, in this object I’m using Paint and ActionPerformed, but no Drawing this overlapping this label and even then it does not appear,…