Posts by Gabriel • 404 points
12 posts
-
3
votes1
answer235
viewsQ: How to access hardware on Linux in C?
I am aware of the existence of the Microsoft Win32 API, which allows the programmer to manipulate low-level resources such as serial ports, memories, CPU, GPU, etc. However I work with Linux…
-
1
votes1
answer95
viewsA: Webview with GTK
Yes! Just use the Firefox web engine. You need to understand that the web engine would be like an interpreter. When we enter an address in a given browser, it first converts the DNS (page domain) to…
-
1
votes0
answers47
viewsQ: How to use dialogs in GTK+
I’ve been looking on the internet how to use dialogs in GTK+, and I ended up finding a handful of articles in English and none in Portuguese. Reading the articles in English, since I have an…
-
3
votes2
answers698
viewsQ: Python clock does not update
I am trying to create a clock in Pygtk. But it seems that there was some semantic error here: #!/usr/bin/env python2 # -*- coding: utf-8 -*- import pygtk pygtk.require('2.0') import gtk from…
-
3
votes2
answers3238
viewsQ: Formatting text in a Jtextpane
Hello, I have a Jtextpane and would like to format parts of its content. It is possible to do this? JTextPane areaDeTexto = new JTextPane(); areaDeTexto.setText = "Este texto está formatado em…
-
4
votes1
answer1542
viewsQ: Java Dictionary API
Hi, I’m looking for a dictionary API in Java to create the program in the following steps: User enters with a string, in this case a word; I print on the screen the invocation of a method of this…
-
0
votes1
answer654
views -
5
votes1
answer1813
viewsQ: How to read whole numbers with Scanner and handle invalid entries
I have the following program, where I need to read a whole, print it out for the System.out However in my code, I want that when the program receives an invalid value as a String, I report the error…
-
4
votes2
answers312
viewsQ: Programming for Android with multiple screens
When I program for Android, I think of portability with the most diverse devices on the market. Seeing the layout of my Activity principal, I noticed that in devices with small screen (I did the…
-
1
votes1
answer212
viewsQ: A little problem in Eclipse
There was, yesterday, asked a question right here on the website regarding a problem in my Eclipse ADT. I heartily thank the lucky, whose name I don’t remember, for helping me! The way was to…
-
-1
votes1
answer511
viewsQ: Eclipse ADT does not work
[2015-05-23 11:29:54 - Jokenpo] /home/gabriel/Área de Trabalho/Jokenpo/res/values/styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name…
-
9
votes1
answer27206
viewsQ: Database connection - Mysql and Java
I already have a local server on my machine (localhost) with Mysql running normally. From there, I would like to connect my database with Java, but... how do I do that? Is there any Swing component…