Questions tagged as 'java'

1
answer

How to increase the speed of commands in Android?

Hello everyone My problem: I am in the situation of being able to increase the speed of the commands on the android devices, because I have entered Root permissions and for this I must use the command terminal as Root to perform Root move...
asked by 06.03.2017 / 23:14
2
answers

Add actionListener to JButton dynamically

I have this code, which generates a window with a button. import javax.swing.*; import java.awt.*; import java.awt.event.*; public class PruebasGraficas { public static void main(String[] args) { JFrame Ventana1 = new JFrame();...
asked by 05.03.2017 / 21:35
1
answer

How to detect the right click on a JButton in java

I've been looking for the way but they all throw me a mistake, I'd like you to help me with this. I'm doing a minesweeper and I need to leave a caution flag when I right click. JButton boton = new JButton();     
asked by 05.03.2017 / 20:17
1
answer

Problem with Android Intent

You will see when I do this intent: case ImageFormat.RAW_SENSOR: { DngCreator dngCreator = new DngCreator(mCharacteristics, mCaptureResult); FileOutputStream output = null; try {...
asked by 05.03.2017 / 18:27
1
answer

Problems using getKeyCode ()

I'm starting to schedule events in java and I have a problem with getKeyCode (). In a JFrame of my program I added this.addKeyListener(lamina1); (lamina1 is an instance of a class that inherits from JPanel) this is the listener code: pu...
asked by 07.04.2017 / 02:52
1
answer

How to make a button change its image when it is clicked?

How can I make a button (button) made with Swing change its image when it is pressed? Or when you mouse over the button? Example: Normal button: ========  Button being pressed: = - = - = - = It's a bit of a silly example, but I guess th...
asked by 07.04.2017 / 01:38
1
answer

Android: TabLayout in another TabLayout (Conflicts)

I have a Tablayout that has the fragments of Menu, Entry, Saucer, Dessert and Drink, which have a Recyclerview and Viewpager that is filled with the respective meals, then I put everything in an Activity that has another TabLayout an...
asked by 20.04.2017 / 17:51
1
answer

I miss Android Studio [closed]

Yesterday android studio asked me for an update then I installed it and since then it does not want to work, when launching the application to the emulator the buttons or edit text are placed in the upper left together     
asked by 20.04.2017 / 19:40
2
answers

How to make a larger imageview by clicking on it

I have a gallery in my app, with a GridLayout and I want that when the user clicks on some image have this effect, how can I achieve that? If you could tell me what effect it would be that or a library that does it would be very helpf...
asked by 20.04.2017 / 03:25
3
answers

perform a division and show all the decimals in a String or in a StringBuffer

I'm doing a program that divides me and shows me all the decimals of the quotient, I already did it for bigDecimal but it does not show all the decimals I want and I'm trying all the ways but I could not do it as I could do it and show me n deci...
asked by 19.04.2017 / 06:19