New to dreamweaver would likew some basic help
ok im rather familliar with both illustreater and photoshop so i feel i know adobe software somewhat --im trying to start a site fer a company im gonna start up ("miese en plac" something i learned in foods bascally everythings ready to go) i have a logo i think i know the domain name im gonna buy i have a ROUGH ideal what i want header and footer def think linnks on left side and on right side i wanna have a ssemi randomiser fer various images and such i dont yet know the colours or style outherwise that i wanna use i playied in cs3? dreamweaver i think
is the randoms possable? how would you do that? and is theere like a template that is "easyiest" to worjk with? i thought cs3 had some with like images and designs on it?
any/all help is GREATELY appriated
ok im rather familliar with both illustreater and photoshop so i feel i know adobe software
Illustrator and Photoshop are NOTHING like Dreamweaver. DW was made by Macromedia. Adobe only acquired it a few years ago and has not radically changed how the software works. DW is an advanced product for web design and development. It is not drag & drop like your graphics apps. It requires you to have some knowledge of code and be able to think more like a web person and less like a design person.
X/HTML and CSS are the 123's and ABC's of web design.
Start learning them here:
HTML & CSS Tutorials - http://w3schools.com/
CSS positioning in 10 steps
http://www.barelyfitz.com/screencast/html-training/css/positioning/
When you have the basics under your belt, s-l-o-w-l-y work through some of the tutorial links below to learn how the software works. Start on a simple project. Gradually increase difficutly level on your next 3 projects. By then you should be ready to build your business site.
Creating your first web site in DW CS4 -
http://www.adobe.com/devnet/dreamweaver/articles/first_cs4_website_pt1.html
Taking a Fireworks (or Photoshop) comp to a CSS based layout in DW
Part 1 --
http://www.adobe.com/devnet/fireworks/articles/web_standards_layouts_pt1.html
Part 2 --
http://www.adobe.com/devnet/fireworks/articles/web_standards_layouts_pt2.html
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb
http://alt-web.blogspot.com
Similar Messages
-
Hi all,
I have some basic problem regarding use of thread.I have a class A (with main method )which creates 5 instance of class B say b1,b2,b3,b4,b5.This class B extends thread.
Now within main of A i spawn 5 thread by calling b1.start(),b2.start(),b3.start(), b4.start(),b5.start().
Now contraint is at any time A can spawn only 5 threads.For this there is another class C that has private variable count and 3 synchronised method one which increments count , second one decrements count,third one returns count and same instance of this class is pass to each of the thread.
Before terminating each thread calls decrement method of this object .
After spawning 5 thread main thread sleeps for some defined time and whenever it wakes up it checks if count is less than 5 if yes then it spawns new thread and call increment method.
Now i want to avoid the logic of main thread sleeping for some defined time than waking up checking value of count and rather want a logic in which main thread sleeps and wakes up only when one of the thread terminates.Thus unnecessary checking of value of count is avoided.
There must be way for this because this is very common problem which many of you might have faced.I have simplified by problem because this is one of the concept on which design of my application depends.If any one has found some tutorial or code example which describes similar problem then kindly let me know.
Regards,
beginner83.Hi all,
I have some basic problem regarding use of thread.I
have a class A (with main method )which creates 5
instance of class B say b1,b2,b3,b4,b5.This class B
extends thread.Well, that's not a good start. It's generally not a good idea to extend Thread, instead the class with the Thread's execution run method should implement Runnable and be attatched to a Thread object when the Thread object is created.
Now within main of A i spawn 5 thread by calling
b1.start(),b2.start(),b3.start(),
b4.start(),b5.start().
Now contraint is at any time A can spawn only 5
threads.For this there is another class C that has
private variable count and 3 synchronised method one
which increments count , second one decrements
count,third one returns countSo how about a method to the class which causes the calling thread to wait while the thread count is five or more. Then your main method can include this in it's thread-starting loop.
See Object.wait and Object.notifyAll(). -
New to Breeze, would like some helpful info
I have a java web application built with structs. My clients
wants the ability to upload online exam and someone recommended me
look into 'Adobe Breeze' for this. I am totally new to Adobe
Breeze, I will do research, but can anyone with experience with
Breeze give me some info or feasibility on using this product with
my app?
Maybe some sites linking JAVA with Breeze?
Thanks so much,
CMeg-
I had to go out of town for a family emergency. I really want to get an iPod but the first 2 I had I broke and could never figure out how to get the songs on the iPod. it seems some songs I purchased fro iTunes will download and play but some will not I would like to know all the places I can get songs to play on my iPod (well, when I get one tat will work for me). I have a lot of CDs, should I get them on iTunes first. Do I look for other type of songs in various formats to install in the iPod like…oh, what are some of the formats that music can be downloaded in? mp4 all the various types I am sure you know what I am getting at.
I want the classic but I am nervous being an exerciser. I do not care for videos but if the classic allows one to play them that is OK.
I would like you to look at this ear plug store online that sell to artists for their recording, heavy duty iPod users, runners, etc. I need an awesome ear plug that will take the music to the next level but I have no idea what type will be best for me.
Let me see if I can find that website. It was something like earphone Solutions but it might not be the exact one. They have a lot of the same ear plugs.
But back to what iPod and where I can get the music. That is what I need help with ow. I do not want to pay for whole CDs, but songs that are good to workout to.
If you get a chance and look at tat ear plug website and give me your opinion on ear plugs. This is where I am lost but need a much better ear plug and one that will stay in my odd shaped ears.
Thanks for waiting. I am still with my pops in the hospital most of the time but I will get back to you.
Blessings -
Would Like Some Advice/Help on How to Start Backing-Up...
Hey-
I am getting a new MBP 17" for architecture/city planning grad school so I needed a lot that the 17" MBP had. I am not too excited carrying it around campus unless somebody rally turns me on t a nice bag to carry it in.
what I really am here for, because I have never backed up before, is to start learning about backing up. I do not want to pay $100/yr. for MobileMe and I think to use an external drive seems the most practical-except I am really hard on stuff so I would need a heavy duty case. Also, the FW 800 for the CAD program and other 3D programs (forget that, the school pays for those.)
I understand there are basically (minus the DVDs, CDs) 2 main ways to back up and they are archival and clonal. Anybody have any feeling on one way or the other? I am tending to go with the one that will not require another purchase of a program (the clonal system). But as you can tell I have very little experience with this backing up part. what happened to the ones that did not produce tapes which had many if any moving parts? The less moving part in this type of stuff think the better, but who am I you all are saying, hey?
Any help would be appreciated. I am looking for the top of the line headset for the MBP when I am trying to study I need or do better with some good jazz or Blues tune in the background and the speakers for the MBP will be mini ( I saw a small black pair in the Apple Store the other day) and a great ear phones for an iPod for exercise. I am looking at the iPod Classic but I hear it has a moving drive so if that is true, I better look for something else like the Touch. Anybody have trouble with the iPod Classic skipping when they were lifting weights, doing flexibility and some cardio like the Precore elliptical or something not too hard on the joints?
Any recommendations in these areas would be greatly appreciated.
FondlyHi One2Two,
For a backup drive I'd be looking at something like THESE in the 750 to 1.5 TB range with the "Quad" interface if you are going to be needing space for CAD files etc .
These are very good enclosures, run cool and quiet (no fan needed). I have several of the equivalent model sold in Australia (under a slightly different name) and they have proved faultless. Very well built, a little larger than some other options, but extremely reliable. I cart one or two of mine around on rough bush roads in the Australian outback fairly regularly (I'm an anthropologist) It is also easy to simply upgrade the internal drive at a later date.
For software, in the first instance, you can't go past SuperDuper - http://www.shirt-pocket.com/SuperDuper/
This lets you create a bootable clone of your HD and then easily update it either manually or through an automated schedule. Probably the most popular backup software amongst the "Level 4's" and "Level5's" on the Apple boards if recent discussions are anything to go by.
Many of us , though , complement it with an additional backup using Apple's own "Time Machine" (which will come free with your computer), either to a second drive, or , a little less safely, on a second partition of the same drive used for SuperDuper.
Time Machine essentially creates a quasi "archival" style backup - letting you revert to earlier versions of files etc over a period determined by your available disc space.
The combination of the two is pretty hard to beat.
The free version of SuperDuper will create your first clone, and you can continue to use it, but the "shareware" version is the one you want. It is not at all expensive and does a brilliant job.
Cheers
Rod -
Complete Novice Needs Some Basic Help
Hi!
I'm sorry to clutter up the discussion with such basic questions, but what I want to do is get something from a cassette tape to my iPod. I'm told I can do this through GarageBand, and I have an audio cable that the guy in the Apple store said I would need. I'm not even sure where to plug this cable in. So any help in where I plug this in, or what I do next would be tremendously appreciated. If someone could even tell me where to look for help that would be great (when I look in GarageBand help its saying something about MIDIs and I don't even know what that is). Eternal gratitude for any help....Oh man, this is frustrating and I might give up soon!
So in System Preferences, Sound I have 2 things,
Internal Microphone (port is Built-in) and Line In
(port is Audio line-in port). I can't seem to
select one or the other, they're just there.
Yeah, there is no "apply" or "OK" or anything like that. Just click on the Line-In so that it is highlighted and close the system preferences. That takes care of that. My PB G4 automatically detects when I plug in my line-in now that it is set up.
Then in GB preferences, I only have the option of
Built-in Audio, there is no other option.
Built-In audio is correct in GB prefs.
I also couldn't find where you were saying to
double-click...what's the track header? I've clicked
everything and can't find a monitor drop down menu
option.
The track header is the left-hand side of the track where there is a small speaker or instrument. For what you are doing, you need to create a new basic track. (Under "Track" in the menu bar, click "New Basic Track") You should have a new blue track that is labeled "No Effects." Double click on the speaker image and a dialog box will appear. Right in the middle of this box there are options for Input, Volume, and Monitor. You can turn on and off monitor abilities here.
On the plus side, the connector I have seems to
work...its male/male 1/8".
Perfect.
Thanks again and if you want to bail out, I
completely understand!
Hang in there. We were once all newbies to this digital recording stuff too. -
CSS11506 - Some basic help needed
Alright, I have a CSS11506 in the lab and I am trying to configure it into a reverse proxy config. So I would like to have all inbound http requests hit the CSS and then have it redirect to our web server on correct DMZ. Having never setup a CSS before I need some help.
- Is my service type proxy-cache, type redirect or type transparent cache ?
I know this should be fairly easy to do with the 11506. Can you also provide some docs explaining the config walkthru.
Any help would be appreciated.
Cheers
DaveThanks, that explains a few things.
So assuming the following, DMZ web server ip is 192.168.20.50 and VIP for CSS is 192.168.20.100, basically I would want to redirect all inbound http requests from 192.168.20.100 to the 192.168.20.50 using the following CSS config ?
service rprox1
ip address 192.168.20.50
protocol tcp
port 8080
active
owner clee
content redirect_rule
add service rprox1
vip address 192.168.20.100
protocol tcp
port 8080
url "/*"
Like I said, never configured one yet so this is my first attemtp.
Thanks again for the help
Cheers
Dave -
I'm a newbie and need some basic help...
I'm a newb trying to teach myself Director. I'm trying to
make a menu and I'm having some problems....
I have 3 main buttons. When you click one of the main
buttons, 3 sub buttons pop up next to the button pressed. When one
of those sub buttons is pressed, a box pops up to the right of the
sub buttons and has a list inside containing links to movies. When
one of the links is pressed i want the movie to take the place of
the links in the box. When the movie is done playing it will
disappear and show the links again.
I uploaded what I have done here...
http://www.lohrmandesign.com/uploads/Template.dir
If you look at it, could you tell me what I've done
correctly, and how I should go about implementing the rest of the
menu? I imagine you have to use director movies within the main
director movie, but I haven't figured out how to implement that. Or
possibly use the .visible command? Thanks for any help...Online
resources and examples are scarce for Director it seems.
And I'm not sure if i have to upload all the pics for you to
view my movie correctly, If I do, just let me know...quote:
Originally posted by:
Newsgroup User
I haven't looked at your Director file, but what you want to
do sounds
pretty simple. First of all, though, can you clarify what you
mean by
"movie," because Director's terminology makes it kind of
confusing. Are
you speaking of a Director movie, or digital video?
If you want to jump to a different Director movie, simply do
something
like this:
on mouseUp me
go to frame "StartMovie" of movie "Option1"
end
To get back to your menu, just use an exitFrame command at
the end of
the Director movie that takes you back there.
If you're referring to starting a digital video, just put
your video
somewhere in the same Director file your menu is in, label it
with a
marker, and simply jump to that marker. Like this:
on mouseUp me
go to frame "Video1"
end
To get back to your menu at the end of the video do something
like this:
on exitFrame me
if sprite(5).movieRate = 1 then
go to the frame
else
go to frame "Menu"
end if
end
Hope that helps.
Sorry, I should have clarified...When you click on a sub
category button, a Quicktime video will play, not a Director
"movie"...Thanks for the help! using the method you described, that
would make the menu disappear when the video is played, and reload
the menu when the movie is done, right? I want the menu to stay
visible while the movie is playing... -
Need some basic help with applets
Hey all, I've never made an applet before and I'm having a small problem. Basically, when I load my applet, the GUI comes up on a separate window (doesn't load within the applet window). Here's my code:
Here's the GUI class.
import java.awt.BorderLayout;
import java.io.File;
import java.util.Vector;
import javax.swing.DefaultComboBoxModel;
import javax.swing.DefaultListModel;
import javax.swing.JButton;
import javax.swing.JFileChooser;
import javax.swing.JList;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.JTextPane;
import javax.swing.ListModel;
import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
public class GUI extends javax.swing.JFrame {
//Set Look & Feel
try {
javax.swing.UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
} catch(Exception e) {
e.printStackTrace();
private JButton openB;
private JButton oddsB;
private JScrollPane jScrollPane1;
private JList jList1;
private JTextField fileText;
private Vector<String> jList1Objects;
* Auto-generated main method to display this JFrame
/*public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
GUI inst = new GUI();
inst.setLocationRelativeTo(null);
inst.setVisible(true);
public GUI() {
super();
initGUI();
private void initGUI() {
try {
setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
getContentPane().setLayout(null);
//Text field for file entry
fileText = new JTextField();
getContentPane().add(fileText);
fileText.setBounds(0, 0, 279, 25);
//Scroll Pane and jList1
jScrollPane1 = new JScrollPane();
getContentPane().add(jScrollPane1);
jScrollPane1.setBounds(0, 25, 150, 328);
jList1Objects = new Vector<String>();
jList1 = new JList(jList1Objects);
jScrollPane1.setViewportView(jList1);
//Open button and Odds button
openB = new JButton();
oddsB = new JButton();
getContentPane().add(oddsB);
getContentPane().add(openB);
oddsB.setText("Calculate Odds");
oddsB.setBounds(679, 109, 105, 353);
openB.setText("Open File");
openB.setBounds(279, 0, 99, 25);
//Open Button action
openB.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
//Opens up hand history file to be read in
JFileChooser fc = new JFileChooser();
fc.setCurrentDirectory(new File("C:\\Program Files\\Full Tilt Poker\\HandHistory"));
int returnVal = fc.showOpenDialog(getContentPane());
if(returnVal == JFileChooser.APPROVE_OPTION) {
//Display file in text box
fileText.setText(fc.getSelectedFile().toString());
//TODO: Write function to read in file and add all Hands to jList1
//Recompile jList1
jList1Objects = new Vector<String>();
jList1Objects.add(fc.getSelectedFile().toString());
jList1 = new JList(jList1Objects);
jScrollPane1.setViewportView(jList1);
pack();
setSize(800, 800);
} catch (Exception e) {
e.printStackTrace();
}Here's the class my HTML file calls:
import java.applet.Applet;
import javax.swing.JFrame;
public class Main extends Applet{
//Mainframe
//JFrame f = new JFrame();
public void init() {
GUI inst = new GUI();
inst.setLocationRelativeTo(null);
inst.setVisible(true);
//f.setContentPane(inst.getContentPane());
public void start() {
System.out.println("Starting...");
public void stop() {
System.out.println("Stopping...");
}// <applet code='Main' width='400' height='200' ></applet>
import javax.swing.*;
public class Main extends JApplet{
public void init() {
GUI inst = new GUI();
getContentPane().add(inst.getContentPane());
validate();
public void start() {
System.out.println("Starting...");
public void stop() {
System.out.println("Stopping...");
}Other notes:
- You try to set the PLAF to Windows. which will not work on Linux and Mac (and if it did, the users would be screaming at you).
- setLayout(null)/setBounds(int,int,int,int) is rubbish GUI development, it is fragile and will cause problems (especially if changing PLAFs)
- Why did you not code this as a hybrid application/app?
- The call to the JFileChooser will require a trusted applet, and it is pointing to the wrong place in seeking out the 'Program Files' directory, better to put configuration data/history data in a sub-dir or user.home.
- This app. is much better suited to being deployed using Java Web Start. Forget the applet and use the frame, persistence can be obtained through the PersistenceService and that will side step both the application needing 'trust' and trying to find a suitable path for storing results of past games. JWS can launch the app. directly off the net, and provides auto-update and many other slick features. -
Need some basic help -- my iTunes no longer plays all songs in my playlist
I've created a holiday playlist, and for some reason iTunes will only play one song and then the music stops. I must manually press play to get the next song to play. The music also stops when I try to fast forward to the next song or back up and play the previous song. In either case, I can get the music going again by pressing play, but again iTunes will only play that one song.
I've got checks next to every song in the list. I've been toggling repeat and shuffle on and off with no luck.
FYI...I'm having no trouble with my other playlists. This is especially frustrating since my parents aren't interested in listening to my other music -- only the holiday tunes.
Would appreciate anyone's suggestions for how to resolve.Solved it. Hold down option (alt) while launching iTunes, and it asks to locate the iTunes library. Point it at the file called "iTunes library". All is back where it belongs. Apparently pointing to it in the Advanced tab wasn't enough.
-
Started with a networks project,needed some basic help.. (Newbie)
Hi all,
Im planning on writing an app that will communicate with my server and a telecom gateway... Which will send and recieve data...
Im a beginner to java itself and have taken this up as a project.
I would like to know what needs to be learnt(Im familiar with OO concept and have done a bit on java for now, but not this extent.)
Primarily I will be dealing with mulit-threading and so on.
Could you please point me out to some details...
If this info is not sufficient ,I'll provide more.
RegardsYou will find that google is very useful if you are getting started.
[http://www.google.co.uk/search?q=java+tutorial+networking]
[http://www.google.co.uk/search?q=java+examples+networking]
[http://www.google.co.uk/search?q=java+tutorial+threading]
[http://www.google.co.uk/search?q=java+examples+threading]
If you have question, try searching for it as the question will have been asked before. -
I need some basic help with Email setup
Hello, I ve just been connected to infinity and I m trying to setup a few email addresses but the BT yahoo system is confusing me.
I managed to create a new email (sub account) for my wife but I m struggling with finding a way to have a couple more for myself. Do I really need to make a sub account for each email?
The default email has my name and surname in it which is not something I generally use for that purpose, I would only use that one for close friends and family, I would like to setup another one for general use and one for when there is a likelyhood it ll get a lot of spam.
The way to add extra emails is usually very simple (with previous isps) , login to "manage my account" and choose username and password then enter the details in outlook express.
With BT I m having to deal with the Yahoo thingy, which does a lot of more than just emails but at this time I have interest in it at all.
1 - I would simply like to setup a few emails to use with outlook express, what is the best way to achieve that ?
2 - The yahoo email seems to be part of a network like facebook, as I don t intend to use that side of it I would prefer not to have my personal details associated with a profile that I do not need . It seems to be for public viewing by default.
Can I set up and use my emails without having an online profile for yahoo?
How do i keep my details offline (not publicly viewable in yahoo)?
thanks.yes!
you get one prime email address. the one you agreed to and the one to set up your bt mail, it was in letter confirming bt set up. (order ref)
for more for yourself, or anybody else, its got to be sub. up to ten for INF2
I have set up 4 sub accounts with different names, etc. but use the same password for all 5 .
I then had them set up with outlook express, there is a bt prog to do this. look on site.
Then I use incredimail as my final mail client, this also has a prog to set up from outlook express.
so all my mail to and from me ends up in incredimail with my 4 sub accounts, using one as my prime.
my bt prime I do not use, as it is my full name.
so far so good, just a bit slow finding its way, like you my previous ISP (tesco) was less complicated, but slow copper wire.
good luck
Ronin22
In the end we will all be star dust.
Then start all over again. -
Would love some G3 help here.
I've been a long time user of Windows based computers, so this how "Big Cat" thing has got me in a tail spin. Don't know what came first, who's who, or what is what. But to the current situation. Just purchased two G3s from our local school for $20. Here's some info on at least one of them, hopefully they are both the same: 400MHz, 320MB Built in memory, OS 9.2.2 (I upgraded from 9.? when I first got it), Boot ROM v4.19f1, 20GB Hard Drive and 8MB video. Hopefully that is what info is needed to help you . . . help me. Trying to get these two computers upgraded for my two kids ages 3 and 5. Here's the problem, it has Internet Explorer v 5.0 as it's web browser. It keeps hanging up when goin out on the web. Can maybe tool around for about 2-5 mins before it hangs up and I have to shut the computer off as it completely locks up the computer. What should I be running on this computer without any hardware upgrades? As far as what is the best browser for this computer at the current state it is in and if I can upgrade the OS cheaply (free) what OS should I be running. Thanks for your time and patiences with this Mac newbie.
IE 5.1.7 was the last version for Mac OS 9. There was no IE 6.x for either Mac OS 9 or Mac OS X.
Another browser to consider is iCab
http://www.icab.de/
Using Mac OS 9, you may have to use different browsers for different sites, so having IE 5.1.7, iCab, and Classilla available is better than deciding on just one. Back when I used Mac OS 9 regularly, I rarely used IE or iCab once I started using WaMCom (the predecessor of Classilla), but they were available to be tried if WaMCom did not work on a particular site. And some current web sites will simply not work properly with Mac OS 9.
This comes up when I search VersionTracker for Mac "Classic" educational downloads
http://www.versiontracker.com/macos/educational/
This online store has old educational software at low cost, and a lot of it is Mac OS 9 compatible. OS requirements are in the description.
http://softwareblowouts.com/education.html -
Ok, this is just a little weird - would like some comments/help please
Ok, I've had some of the same problems with my imac system and the premature ejecting of my external drives (for whatever reason), and I managed to solve that by setting up the system to put them in "Sleep Mode" when possible. Now however, just this morning, I received the same message along the lines of "A disk has been ejected improperly" yada, yada, yada. The drives were no longer visible on the Desktop and at that time I was busy doing something else, so I put OFF going through the normal unplugging of the firewire cable....etc., then I went on with my business at hand, and within 5 mins, I hear the drives power up and low and behold, the icons reappear on my desktop and everything is fine, and this is without me doing anything. So I'm just wondering that if my original problem, and possibly others' original problem, stemmed from something within OS X? Comments and/or suggestions as to what this may be, what may be causing it, how I can stop it, would be greatly appreciated. Thanks
Thanks for the reply...however, I had no problems with these drives AT ALL until the 2nd to the most recent update to Mac OS X Snow Leopard. As mentioned in one of my posts here on this thread, I've had this iMac for about 4 years now (the drives I've had longer) and have used these same drives with this same Mac for all of those years, and I've had no problems at all until such time as described above...so I'm not sure what to think about the problem that has developed except that there has maybe been a change in OS X on the way things are handled with external drives. At least this is the way it looks to me now, I'm not trying to state it as FACT, just my observations over the last 4 years has led me to think this way.
-
New to multithreading, would like some advice
Hi guys, I currently have a project which runs in single thread mode but im thinking of implementing multi threading and im wondering if its actually worth doing. Within the project i have a group of objects held in a hash map, when any of the objects are due for an update, an update request calls a single thread which retrieves the object from the hashmap and modifies it. My plan is to create a thread pool which will handle all the update requests independently.
So assume i have three objects in my hashmap A, B and C (in reality this could be 20-50 objects), and update request comes in for object A, A is retrieved from the hashmap and modified. Whilst A is being updated no other update request can access A but update requests for B and C should be executed. Assuming i may have hundreds of update requests every 10 seconds for example would i benefit alot from multithreading? and if so what type of collection would you recomend?Ninet wrote:
Hi guys, I currently have a project which runs in single thread mode but im thinking of implementing multi threading and im wondering if its actually worth doing. That is a good question.
Within the project i have a group of objects held in a hash map, when any of the objects are due for an update, an update request calls a single thread which retrieves the object from the hashmap and modifies it. My plan is to create a thread pool which will handle all the update requests independently. In which case you may need a thread pool and a ConcurrentHashMap.
So assume i have three objects in my hashmap A, B and C (in reality this could be 20-50 objects), and update request comes in for object A, A is retrieved from the hashmap and modified. Whilst A is being updated no other update request can access A but update requests for B and C should be executed. Assuming i may have hundreds of update requests every 10 seconds for example would i benefit alot from multithreading? Provided there is not much contention it sounds ideal.
and if so what type of collection would you recomend?ConcurrentHashMap. However it sounds like it would be simplest if the values are not replaced you can use this as your lock as well. -
Some Basic Help Needed...
Alrighty, I don't know why this is being difficult. All I want to do is create an application that opens a window, puts a panel in it, and paints an image on the panel.
Here is what I have:
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Arena
static JFrame ArenaWindow;
static JPanel Battlefield;
static Toolkit toolkit = Toolkit.getDefaultToolkit();
static Image image1 = toolkit.getImage("C:\\j2sdk1.4.1\\bin\\coll.jpg");
public static void main(String[] args)
ArenaWindow = new JFrame("Arena - The Game!");
Battlefield = new JPanel();
Battlefield.getGraphics().drawImage(image1,0,0,Battlefield);
ArenaWindow.getContentPane().setLayout(new GridLayout(1, 1));
ArenaWindow.getContentPane().add(Battlefield);
ArenaWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
ArenaWindow.pack();
ArenaWindow.setVisible(true);
}This compiles fine, but generates a NullPointerException during runtime. I'm almost certain it's because I'm using the wrong syntax to paint the image. Can anyone lend a hand and show me where I'm going wrong?Get Graphics will return null as it has not yet been displayed to a screen.
Plus you have put the drawing of the image in the paint(Graphics) of the JPanel, else it will not redraw when the window is hidden.
Finally, placing images in the jdk bin folder is not recomemened, place it in the same folder as the .class file, and use this.getClass().getResource("pictureName.pic");
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Arena
static JFrame ArenaWindow;
static JPanel Battlefield = new JPanel() {
public void paint(Graphics g) {
g.drawImage(image1,0,0,Battlefield);
static Toolkit toolkit = Toolkit.getDefaultToolkit();
static Image image1 = toolkit.getImage("C:\\j2sdk1.4.1\\bin\\coll.jpg");
public static void main(String[] args)
ArenaWindow = new JFrame("Arena - The Game!");
if(Battlefield.getGraphics() == null)
System.out.println("See, getGraphics returns null.");
ArenaWindow.getContentPane().setLayout(new GridLayout(1, 1));
ArenaWindow.getContentPane().add(Battlefield);
ArenaWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
ArenaWindow.pack();
ArenaWindow.setVisible(true);
}
Maybe you are looking for
-
How-to consolidate bookmarks from 2 different Windows users
I have a few user names on my Desktop PC. I am running Windows 7 Home. And would like to consolidate my bookmarks lists. In other words so each user gets the same bookmarks listing containing the sites of every one of the users put together in an ama
-
How to separate datafiles from database software files on different disks
Hi, i had 6 drives which i configured as RAID and now i have three RAID 1 logical volumes as LV0, LV1, LV2 i used LV0 for installing LINUX enterprise version 4 operating system. now i want to install the oracle software and database 10.2.0 i want to
-
Just completed the redemption process. Where's the download and installation files?
Just completed the redemption process. Where's the download and installation files?
-
Summarizing content of web page
Right now i am doing my final project which is summarizing the content of web page. After summarize, the system can read aloud the summary text. Anyone have any idea how to summarize text? Can you give me some source code or reference? Please... HELP
-
can anyone help... I recently had my pc stolen amongst other items from my house....fortunately my mini ipod was in my car at the time and this wasn't nicked... can anyone tell me how to transfer the songs i have on my mini to a brand new Dell laptop