Programming :: Why Components Are Not Visible On JFrame?
Jun 25, 2010
I've written a java class wich extends the JFrame class and i did the whole thing and i compiled it with no problems what so ever but when i run it the frame comes out with no components on it.I've created Jbuttons and JPanels and JPasswordFild and i made sure to make a container and I've surely added the components to the frame but IT IS STILL NOT WORKING!
I am learning some Java programming, and I've run into a problem. I am trying to set a background for JFrame, so that I can put text and buttons on it. I've tried searching the internet, and the only code that I found that was a full code (I lost it, and don't remember the link) had so much other stuff, such as text and buttons, that I couldn't find the part I needed.
show me code to make my JTextArea scrollable ? I used this code but it doesn't scroll just expand my JTextArea out of JFrame. Part of code I used(one that doesn't work):
I have a very bad attempt at hashing the components of an tcp session to assign/locate the session in a hash table bucket. I am pretty sure that it has a very high collision rate and when there are a very large number of tcp sessions my application is having to search a long linked list to find the session within the bucket.
All the hashing functions I have found take a single string input where I need to input several integers and hash them into a single result. My guess is that any real hashing function is going to produce better results than what I am currently doing.
This is an odd one. I have a C program that calls umount to unmount a volume. A simplified case looks like this:
Code: int main() { int rc = umount2("/v0", MNT_FORCE); if (rc != 0) { printf("Unable to unmount volume /v0, err='%s'", strerror(errno)); code....
I also discovered the reverse effect with calling mount() in code. When I make a call like Code: mount(drive, volume, "xfs", MS_NOATIME, NULL); the indicated drive is mounted since I can access the files as expected, but df doesn't show the drive has been mounted.
Why is my C code behaving this way? What do the mount/umount commands do when run from the command line that I'm not doing in my C code?
find the manuals of my PC is not an option. I would like to know if there's an app that told me what's inside my computer. I know some of the parts, but others like the MB I can't remember the exact model. I know there's lots and lots of dust as well .
I think ubuntu comes with one app like that preistalled but I should have deleted it because I just can't find it.
I would like to install Fedora 14 without any X11 components. I need it only like router/firewall, so I do not want to install any unnecessary modules. Also I do not want to download all DVD, but live media doesn't have any choices.
Is it possible to install Fedora without X11 desktop?
I just got a question from a customer(actually from a customer to my manager then to me) and he is asking the following question: What are the components that were installed with RHEL? It may sound like a silly question but to me it sounds vague. The main thing I am thinking about now is during install you can select three components: webserver software development and virtualisation.
I tried installing VLC through Synaptic. However, i got the reply "all components could not be installed". VLC does not appear in the menus. All four software repositories have been ticked.
i would like to set up a gpu computer for single-precision calculations (molecular dynamics) that may last many days. Thus, consumer components may be OK, though of high quality.it should be based on two/four GTX-470. ram requirements very modest: a few GB.OS must be GPU-Linux 64 bit (i am familiar with debian amd64). Software raid 1.I would appreciate advice on suitable motherboard, cpus, power source and cage for large-diameter propellers.
I have replaced my motherboard, cpu, ram with a retailed 'bundle' of components. When I power up, the cpu fans spins and i can feel my hard drive vibrating but There is no post beep. I could connect one of two four pin pwr2 leads to a motherboard; the first has yellow and black leads, the second, red purple black and yellow. Have you any ideas on my next move?
I just installed OpenVPN using apt, and it doesn't seem to have components which are distributed with the source, such as easy-rsa. Why would tools like this be excluded from the package? I prefer to use apt rather than compiling from source, to keep things neat and simple.
I've been compiling stuff with the usual ccmake . make and make install for a while now, but now I'm starting to compile suites of applications, such as Calligra (Koffice). Is there any easy way to have the compilation spit out several .debs for the various components?
Well I bought this book "Debian GNU/Linux 3.1 and it came with Debian installer. Thought this was too good to be true! Well, during the install I get a message that "cdrom not detecting install components". I ran the the diagnostic utility that was included in the disc and it did not report any issues.
I want to build a desktop computer. I will be running Linux Mint on it, probably the LXDE community edition. I use it for school (homework and studying), research on the net (general browsing and specific research on Linux stuff since I hope to one day open my own Linux computer store), and for listening to music and watching videos, things like that. I am not a power user, adn I don't plan to be one any time soon. But I am learning how to work in GNU/Linux, since I want to make a living that way.
Currently, though, I just need a good computer made out of new components, that will work correctly. So What kinds of components to get. I need a motherboard, a CPU (I prefer AMD), a hard drive (I will run SATA), and RAM. I have a DVD burner on my current computer, and I can use that in my new system. I plan to put my new computer together in the tower my current computer is using. I am just looking for some knowledgeable suggestions here for what to get to run my computer the best.
I'm installing LoL using Wine and I can't find where setup has put the files. When I type "wine lol.launcher" it says "wine: cannot find L"c:\windows\system32\lol.launcher". For that matter I can't find where the setup program has installed any of the LoL components
I tried to remove PackageKit from F15 the other day and it removed, amongst other things GDM. Kind of hosed and I re-installed. I want to remove two components in particular, the command-not-found one and the software updater, (the old add/remove programs). How do I determine what packages would be removed? I thought there was an option in yum, but it doesn't seem to be in the manual.
So I'm attempting to get my system to not require the root password while still requiring some form of authentication. My current issue is getting yast2 and its components to ask for the user's password and not the root's.
Is there a way to have these tools ask for user's password instead of root's?
I am working on a traffic surveillance project which performs various image processing tasks with a number of visual sensors and a computing platform. My basic task in the project is the power optimization/management. I am using a ZOTAC-IONITX computing platform (Intel ATOM CPU + NVIDIA ION GPU). The problems that I am currently facing are:
I am unable to model the power consumption of various components e.g., processor, GPU, hard drive, memory etc, since there seems to be no way to measure the power consumption of individual system components. Since I don't have a power consumption model, I cannot come up with a power optimization algorithm. I am currently working on Linux. Is there any way to measure/model the power consumption of individual system component?
I have already checked powertop. It doesn't tells the power (watts) consumed by a component (e.g., microprocessor). It just gives information about the power state the processor is in (However there is no way to change the power state by the user) and the processors that cause processor to wakeup.
So I was wondering if being relatively new to Ubuntu, and having no experience at all with servers, I would be able to set up a server (one server and a couple of computers), to use in a hostel. I took a good look at the Ubuntu Documentation Section:URl..and most of the things I don't even know what they are for (MySQU, Samba, Apache2).
Basically I need to have a couple of computers with internet access, allowing me to control their use, file sharing to a main HD in the server, also I would like to use the server computer as my personal desktop (office, internet, etc.) and that's about it..The question is, if I were to follow that guide, do you think I can set it up?Also, do you know a guide in which the hardware components are mentioned? Because I googled and the amount of trash coming out, mostly outdated, is extremely annoying.
to install But I am not able to find the Java EE components is there a another step that I should do get Enterprise components installed or is there a different command
actually during the installation of ns 3.6, with the following command ./waf -d debug configure i get some components not found specially pybindgen i have downloaded it but cant install it and bind it with ns
Been searching endlessly for a command line tool/utility that downloads all the components of a webpage, given a URL. As in,
[URL]
should fetch the base html and all the required components necessary for rendering the page, which includes all the images, css, js, advertisements etc. Essentially it should emulate the browser. The reason I'm looking for such a tool is to measure the response time of a website for a given URL from the command line. I know of several GUI tools like HTTPFox, Ethereal/Wireshark that serve the same purpose. But none in CLI.
There are wget and curl. But from what I understand they can just fetch the contents of the given URL and don't parse the html to download all other components. wget does do recursive download. But the problem is, it goes ahead and fetches all those <a href> pages too, which I don't want. Given a URL, the browser gets the html first, parses it, and then downloads each component (css, js, images) that it needs to render the page. Is there a command line tool/script that can accomplish the same task?
i have 2 laptops dell d410 whit slackware 13.7 on them .i had some problems with one (one pad) and i have changed some components from one laptop to another : some ram ,wireless, internal modem .now i don't have internet connection from slackware . if i boot slax it's all ok.
i used klamav to scan for virus. yes, klamav from the repository. the scan said it had found possible virus. ok so i removed them from /usr/lib. then i realized kalmav just removed important components to be able to boot 9.10 properly. my desktop is broke!! so what do i do? use klamav to scan another install of 9.10 and try to move the removed components from the new install to the broke?
I recently brought home an old Compaq server from work. I was told that it works fine. When I brought it home, I tried installing Ubuntu 9.10 server from a cd. While it's trying to install, I get the message "Installation step failed. An installation step failed. You can try to run the following item again from the menu, or skip it and choose something else. The failing step is: Load installer components from CD." I turned off the computer and tried it again several times. Each time the same message appears.